Skip to content

feat(tui): animate interrupt confirmation - #42602

Merged
kitlangton merged 1 commit into
v2from
interrupt-hint-motion
Aug 14, 2026
Merged

feat(tui): animate interrupt confirmation#42602
kitlangton merged 1 commit into
v2from
interrupt-hint-motion

Conversation

@kitlangton

@kitlangton kitlangton commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

What

Flash the interrupt hint when the first Escape press arms confirmation. The copy changes immediately to esc again to interrupt, then settles to the theme's warning color after 220 ms.

How

  • Uses the existing TUI animation clock for an interruptible one-shot tint.
  • Derives the flash from text.feedback.warning.default with theme.decrease(..., 2), with no hard-coded hue.
  • Skips directly to the settled warning color when animations are disabled.

Scope

Interrupt behavior, keybindings, and theme tokens are unchanged.

Testing

  • bun typecheck in packages/tui
  • bun run test test/cli/tui/prompt-interrupt-status.test.tsx in packages/tui
  • bunx prettier --check packages/tui/src/component/prompt/index.tsx packages/tui/test/cli/tui/prompt-interrupt-status.test.tsx
  • Push hook: full workspace bun turbo typecheck --concurrency=3
  • Real PTY verification of replay, disabled animations, theme changes, and clean exit

Demo

Production component rendered through a temporary local fixture.

interrupt-pr-demo-tight.mp4

@kitlangton
kitlangton force-pushed the interrupt-hint-motion branch from ef90b04 to 1063120 Compare August 14, 2026 16:18
@kitlangton
kitlangton enabled auto-merge (squash) August 14, 2026 16:18
@kitlangton
kitlangton merged commit e79f3e8 into v2 Aug 14, 2026
11 of 12 checks passed
@kitlangton
kitlangton deleted the interrupt-hint-motion branch August 14, 2026 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant