Skip to content

fix(tui): erase cancelled prompt instead of showing strikethrough#61

Merged
christso merged 1 commit intomainfrom
fix/60-cancel-strikethrough
Feb 3, 2026
Merged

fix(tui): erase cancelled prompt instead of showing strikethrough#61
christso merged 1 commit intomainfrom
fix/60-cancel-strikethrough

Conversation

@christso
Copy link
Copy Markdown
Contributor

@christso christso commented Feb 3, 2026

Summary

  • When pressing ESC in TUI menus, @clack/prompts renders the selected item with strikethrough styling, misleading users into thinking the item was removed
  • Added src/cli/tui/prompts.ts with wrapper functions (select, multiselect, text, confirm) that detect cancellation and erase the cancelled prompt output using ANSI escape sequences
  • ESC still functions as cancel (industry standard per fzf, bubbletea, clack) but the confusing strikethrough is replaced with a clean return to the parent menu
  • Migrated all TUI prompt calls to use the wrappers

Test plan

  • Unit tests for all 4 wrapper functions (cancel and non-cancel paths)
  • Manual: run allagents, navigate to "Manage marketplaces", press ESC — should return cleanly without strikethrough
  • Manual: run allagents, navigate to "Manage plugins", press ESC — same clean behavior

Closes #60

🤖 Generated with Claude Code

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Feb 3, 2026

Deploying allagents with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6ddf316
Status: ✅  Deploy successful!
Preview URL: https://bb6c1196.allagents.pages.dev
Branch Preview URL: https://fix-60-cancel-strikethrough.allagents.pages.dev

View logs

@christso christso force-pushed the fix/60-cancel-strikethrough branch from d5b58fd to b24afce Compare February 3, 2026 09:21
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>
@christso christso force-pushed the fix/60-cancel-strikethrough branch from b24afce to 6ddf316 Compare February 3, 2026 09:28
@christso christso merged commit 0e7c62b into main Feb 3, 2026
1 check passed
@christso christso deleted the fix/60-cancel-strikethrough branch February 3, 2026 09:56
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.

bug: cancelling selection in TUI shows crossed out item

1 participant