Repository navigation
fix(tui): q during the cold-start fill shows a status line; second press quits immediately (#1143) - #1144
Merged
Conversation
…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.
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).