fix(tui): filter typing, rune-safe backspace, refresh stacking (v0.14.6 prep) - #82
Conversation
…tacking - typing q in filter mode now appends to the query; ctrl+c/ctrl+d still quit - backspace removes one rune instead of one byte, keeping CJK/emoji queries valid UTF-8 - startRefresh guards m.refreshing so slow refreshes no longer stack goroutines - date the v0.14.6 changelog section for release
|
Codex review: needs real behavior proof before merge. Reviewed August 6, 2026, 7:43 PM ET / 23:43 UTC. ClawSweeper reviewWhat this changesThe PR fixes filter-mode q input, rune-safe filter backspace, and overlapping refresh starts in the shared terminal archive browser, with regression tests and release-preparation notes. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 3 items remain Keep open pending real terminal behavior proof. The source patch correctly repairs three current shared-TUI defects and has focused regression coverage. Priority: P2 Review scores
Verification
How this fits togetherThe shared TUI receives keyboard and refresh-timer events from downstream crawl applications, maintains filter and reload state for archive rows, and renders the interactive terminal browser. flowchart LR
A[Keyboard and refresh timer] --> B[Shared terminal browser]
B --> C[Filter query state]
B --> D[Refresh in-flight check]
C --> E[Filtered archive rows]
D --> F[Archive reload]
F --> E
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the focused shared-TUI repair and add redacted terminal evidence showing q filtering, Unicode backspace, and the already-in-progress refresh result. Do we have a high-confidence way to reproduce the issue? Yes—source provides a high-confidence path: enter filter mode and type q, backspace a multi-byte query, or issue a refresh tick while a slow refresh is pending. Is this the best way to solve the issue? Yes—the changes are narrow, preserve the generic shared TUI boundary, and use the repository’s documented release-preparation pattern for the changelog date. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 171b8328fc36. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Release preparation for v0.14.6: three TUI fixes hit downstream crawl apps that wrap crawlkit/tui.
Regression tests cover all three; the stale test asserting the old quit behavior was updated. Changelog section v0.14.6 is dated for release.
Proof: GOWORK=off go vet ./..., GOWORK=off go test -count=1 ./..., make check, actionlint - all green. Codex autoreview clean.