Keep headless sessions out of route-feedback votes (#1370) #600
<!-- hitchwiki-maps-coverage-report -->
Coverage overview
| Suite | Status | Lines | Branches | Functions |
| --- | --- | ---: | ---: | ---: |
| Python (hitch/) | ✅ Passing | 51.90% | 42.42% | — |
| JavaScript unit tests | ✅ Passing | 92.83% | 93.11% | 91.42% |
Coverage is collected from the deterministic pull-request suite. Live Nostr
relay checks remain excluded so a third-party outage cannot make a PR flaky.
<a href="#"><img alt="P2" src="https://greptile-static-assets.s3.amazonaws.com/badges/p2.svg?v=9" align="top"></a> Lost flags escape these tests
The new test builds rows by hand, so it still passes if the server drops auto or the logger stops saving it. Automated votes could then silently count as human feedback.
Add a test that posts automated and human feedback, reads the saved CSV, and checks the summary. Include an existing seven-column file to cover appending rows to an old log.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
greptile-apps[bot]
knyttes-bot
Beacon now sends an auto flag (same test as base.html); server stores it as a trailing CSV column; summary counts auto rows as excluded_auto and leaves them out of votes/texts. Old 7-column rows read as human.
🤖 Generated with Claude Code
<!-- greptile_comment -->
<!-- greptile_summary -->
<h2><a href="https://app.greptile.com/api/retrigger?id=102586352&sig=a88296f4de6d850a29ceca4068cb75116cb38928f173d705c34412c687cc5507"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/RetriggerDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2"><img alt="Retrigger" src="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2" align="right"></picture></a><a href="https://app.greptile.com/-/switch-tenant?tenant=hitchwiki&next=%2FHitchwiki%2Fmaps.hitchwiki.org%2Fpull%2F600&utm_source=greptile_review&utm_medium=github&utm_campaign=view_in_greptile"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptileDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2"><img alt="View in Greptile" src="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2" align="right"></picture></a>Confidence Score: 4/5</h2>
<!-- greptile-risk -->
The PR appears safe to merge, with a non-blocking gap in tests for saving and reading the automation flag.
<h2>Findings</h2>
1. <img alt="P2" src="https://greptile-static-assets.s3.amazonaws.com/badges/p2.svg?v=9" align="top"> Lost flags escape these tests <a href="https://github.com/Hitchwiki/maps.hitchwiki.org/pull/600#discussion_r4532134654">▶</a>
<h3>Summary</h3>
Adds an
autoflag to route-feedback requests and saves it as a trailing CSV column.<!-- greptile_confidence_score:4 -->
<sub>Reviews (1) · Last reviewed commit: "Fix line length (ruff)" · Reviewed by Greptile</sub>
<!-- /greptile_comment -->