fix(tui): resolve escape loop and stale input in search flow#16
Merged
Alan-TheGentleman merged 1 commit intoGentleman-Programming:mainfrom Feb 25, 2026
Conversation
Pressing escape from search results left PrevScreen pointing back to results, so escaping the search input bounced right back instead of returning to the dashboard. Reset PrevScreen to ScreenDashboard on escape. Also clear the search input when entering search from the dashboard so previous queries don't persist.
Alan-TheGentleman
added a commit
that referenced
this pull request
Feb 25, 2026
Esc from SearchInput and Search view now always returns to Dashboard instead of using PrevScreen, which could point to SearchResults and cause an infinite loop. Added PrevScreen reset on SearchResults escape and search input clear when entering search from dashboard. Co-authored fixes from PR #16 that were lost during merge conflict.
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.
Summary
PrevScreentoScreenDashboard, so escaping the search input returns to the dashboard instead of bouncing back to resultsTest plan