fix(tui): erase cancelled prompt instead of showing strikethrough#61
Merged
fix(tui): erase cancelled prompt instead of showing strikethrough#61
Conversation
Deploying allagents with
|
| Latest commit: |
6ddf316
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://bb6c1196.allagents.pages.dev |
| Branch Preview URL: | https://fix-60-cancel-strikethrough.allagents.pages.dev |
d5b58fd to
b24afce
Compare
When pressing ESC in TUI selection menus, @clack/prompts renders the selected item with strikethrough styling, misleading users into thinking the item was removed. Add prompt wrappers that detect cancellation and erase the cancelled output using ANSI escape sequences, so ESC cleanly returns to the previous menu. ESC still functions as cancel (industry standard per fzf, bubbletea, clack), but the confusing strikethrough visual is replaced with a clean return to the parent menu. Closes #60 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
b24afce to
6ddf316
Compare
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
src/cli/tui/prompts.tswith wrapper functions (select,multiselect,text,confirm) that detect cancellation and erase the cancelled prompt output using ANSI escape sequencesTest plan
allagents, navigate to "Manage marketplaces", press ESC — should return cleanly without strikethroughallagents, navigate to "Manage plugins", press ESC — same clean behaviorCloses #60
🤖 Generated with Claude Code