Skip to content

fix(tui): q during the cold-start fill shows a status line; second press quits immediately (#1143) - #1144

Merged
iamtoruk merged 2 commits into
mainfrom
fix/1143-quit-feedback-b
Aug 25, 2026
Merged

iamtoruk merged 2 commits into
mainfrom
fix/1143-quit-feedback-b

Conversation

@iamtoruk

Copy link
Copy Markdown
Member

Completes the #1141 story for 0.9.22. First q during an active background fill arms a footer-styled confirmation ("Finishing background index so the next launch starts warm - press q or Ctrl+C again to quit now") and continues the graceful drain; a second q or Ctrl+C exits immediately through the #1109 kill-safe abrupt path. q with no fill active exits instantly with a pinned no-flicker test (unmount frame flushed before the assertion). Ctrl+C semantics unchanged. Status line renders only while quitArmed AND indexing, matching the existing StatusBar styling exactly. Suite 3712 green, tsc clean. Twin-built, verifier-compared (two verifier findings upheld and fixed, one refuted against the pre-existing StatusBar style).

…he second q (#1143)

Follow-up to #1142. With the input fix in place, q pressed during the
post-paint background index landed instantly but the exit path drained the
fill first - a deterministic ~16.5s silent wait on a 21k-file corpus.

The first q while the fill is active now arms a confirmation and renders
'Finishing background index so the next launch starts warm - press q or
Ctrl+C again to quit now' in the footer area, styled to match the
StatusBar (DIM border, ORANGE accent on the action key). The second q
takes the abrupt path, which #1109 already proved kill-safe (nothing
marked seen without being parsed, resume converges). Ctrl+C is unchanged:
it always exits through the abrupt path, whether or not the confirmation
is armed. q with no fill active exits immediately as before, with no
status-line flicker. The confirmation auto-clears the moment the fill
lands so a stale flag can never trap a later q.

The fill's indexing signal already flows to the dashboard (the #1109
banner reuses it), so no new global state was introduced. Pinning tests
added to tests/dashboard-exit.test.ts.

BREAKING NOTE FOR 0.9.22: ships in 0.9.22, not Unreleased.
@iamtoruk

Copy link
Copy Markdown
Member Author

nsis failure was the version-parity manifest guard (root 0.9.22 vs app 0.9.21), not this change - versions aligned on main. Re-running.

@iamtoruk
iamtoruk merged commit 518e0e2 into main Aug 25, 2026
16 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant