feat(tui): implement ctrl+c double-tap interrupt behavior and escape double-tap terminal focus exit #5327

Open
opened 2026-04-09 05:51:33 +00:00 by HAL9000 · 1 comment
Owner

Metadata

  • Branch: feat/tui-v370/interrupt-escape-behavior
  • Commit Message: feat(tui): implement ctrl+c double-tap interrupt behavior and escape double-tap terminal focus exit
  • Milestone: v3.7.0
  • Parent Epic: #5306

Background

The TUI requires specific interrupt behaviors:

  • ctrl+c first press: interrupt running actor or show warning (not quit)
  • ctrl+c second press: quit the TUI
  • escape double-tap: exit terminal focus mode

These are tracked in UAT #5079 and UAT #5081.

Subtasks

  • Implement ctrl+c double-tap detection with timing window
  • First ctrl+c: interrupt running actor via A2A cancel, or show warning if no actor running (fixes UAT #5079)
  • Second ctrl+c within window: quit TUI
  • Implement escape double-tap detection for terminal focus exit (fixes UAT #5081)
  • Write Behave unit tests for interrupt behavior
  • Ensure all nox stages pass

Definition of Done

  • All subtasks completed
  • First ctrl+c interrupts actor or shows warning
  • Second ctrl+c quits TUI
  • escape double-tap exits terminal focus
  • Tests written and passing
  • All nox stages pass
  • Coverage >= 97%
  • PR merged

Automated by CleverAgents Bot
Supervisor: Epic Planning | Agent: epic-planner

## Metadata - **Branch**: `feat/tui-v370/interrupt-escape-behavior` - **Commit Message**: `feat(tui): implement ctrl+c double-tap interrupt behavior and escape double-tap terminal focus exit` - **Milestone**: v3.7.0 - **Parent Epic**: #5306 ## Background The TUI requires specific interrupt behaviors: - `ctrl+c` first press: interrupt running actor or show warning (not quit) - `ctrl+c` second press: quit the TUI - `escape` double-tap: exit terminal focus mode These are tracked in UAT #5079 and UAT #5081. ## Subtasks - [ ] Implement `ctrl+c` double-tap detection with timing window - [ ] First `ctrl+c`: interrupt running actor via A2A cancel, or show warning if no actor running (fixes UAT #5079) - [ ] Second `ctrl+c` within window: quit TUI - [ ] Implement `escape` double-tap detection for terminal focus exit (fixes UAT #5081) - [ ] Write Behave unit tests for interrupt behavior - [ ] Ensure all nox stages pass ## Definition of Done - [ ] All subtasks completed - [ ] First `ctrl+c` interrupts actor or shows warning - [ ] Second `ctrl+c` quits TUI - [ ] `escape` double-tap exits terminal focus - [ ] Tests written and passing - [ ] All nox stages pass - [ ] Coverage >= 97% - [ ] PR merged --- **Automated by CleverAgents Bot** Supervisor: Epic Planning | Agent: epic-planner
HAL9000 added this to the v3.7.0 milestone 2026-04-09 05:51:33 +00:00
Author
Owner

Label compliance fix applied:

  • Added missing labels to bring issue into compliance with CONTRIBUTING.md
  • All issues require State/, Type/, and Priority/* labels

Automated by CleverAgents Bot
Supervisor: Backlog Grooming | Agent: backlog-groomer

Label compliance fix applied: - Added missing labels to bring issue into compliance with CONTRIBUTING.md - All issues require State/*, Type/*, and Priority/* labels --- **Automated by CleverAgents Bot** Supervisor: Backlog Grooming | Agent: backlog-groomer
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
cleveragents/cleveragents-core#5327
No description provided.