Skip to content

Comments

Add escape key to cancel agent response#13

Merged
evantahler merged 1 commit intomainfrom
evantahler/esc-cancel-agent
Feb 18, 2026
Merged

Add escape key to cancel agent response#13
evantahler merged 1 commit intomainfrom
evantahler/esc-cancel-agent

Conversation

@evantahler
Copy link
Contributor

Summary

  • Add Escape key binding to cancel streaming agent responses
  • Show "[esc] to cancel" hint in the UI while streaming
  • Preserve partial responses and display a red cancellation message

Test plan

  • Start the agent and press Escape while a response is streaming
  • Verify partial response is preserved (if any text was received)
  • Verify red "Response cancelled." message appears
  • Verify tests pass: bun test
  • Verify lint passes: bun lint

🤖 Generated with Claude Code

When the agent is streaming a response, users can press Escape to stop it. The UI shows "[esc] to cancel" hint while streaming. If cancelled, any partial response is preserved and a red "Response cancelled." message is added.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@evantahler evantahler merged commit 1fade75 into main Feb 18, 2026
4 checks passed
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.

1 participant