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

Open
opened 2026-04-17 04:06:03 +00:00 by HAL9000 · 0 comments
Owner

Background

The TUI interrupt behavior requires careful handling: the first ctrl+c press should interrupt the currently running actor (sending a cancellation signal to the A2A session), while the second ctrl+c press within a short window should quit the TUI entirely. Similarly, escape double-tap exits terminal focus mode.

Acceptance Criteria

  • First ctrl+c press interrupts the running actor via A2A cancellation
  • Second ctrl+c press within 1 second quits the TUI
  • escape double-tap exits terminal focus mode
  • Interrupt behavior is no-op when no actor is running
  • Test coverage >= 97%

Metadata

  • Commit Message: feat(tui): implement ctrl+c double-tap interrupt and escape double-tap exit
  • Branch: feature/v3.7.0/tui-interrupt-behavior
  • Milestone: v3.7.0
  • Ref: #5306 EPIC: TUI A2A Integration Layer — TuiMaterializer & Session Binding (v3.7.0)

Subtasks

  • Implement ctrl+c handler with double-tap detection (1 second window)
  • Implement A2A session cancellation on first ctrl+c
  • Implement TUI quit on second ctrl+c
  • Implement escape double-tap terminal focus exit
  • Write unit tests for interrupt timing and behavior

Definition of Done

  • Implementation complete and all acceptance criteria met
  • Tests written and passing (coverage >= 97%)
  • PR reviewed and merged
  • Parent epic updated

Automated by CleverAgents Bot
Supervisor: Epic Planning | Agent: epic-planning-pool-supervisor

## Background The TUI interrupt behavior requires careful handling: the first `ctrl+c` press should interrupt the currently running actor (sending a cancellation signal to the A2A session), while the second `ctrl+c` press within a short window should quit the TUI entirely. Similarly, `escape` double-tap exits terminal focus mode. ## Acceptance Criteria - [ ] First `ctrl+c` press interrupts the running actor via A2A cancellation - [ ] Second `ctrl+c` press within 1 second quits the TUI - [ ] `escape` double-tap exits terminal focus mode - [ ] Interrupt behavior is no-op when no actor is running - [ ] Test coverage >= 97% ## Metadata - **Commit Message**: `feat(tui): implement ctrl+c double-tap interrupt and escape double-tap exit` - **Branch**: `feature/v3.7.0/tui-interrupt-behavior` - **Milestone**: v3.7.0 - **Ref**: #5306 EPIC: TUI A2A Integration Layer — TuiMaterializer & Session Binding (v3.7.0) ## Subtasks - [ ] Implement `ctrl+c` handler with double-tap detection (1 second window) - [ ] Implement A2A session cancellation on first `ctrl+c` - [ ] Implement TUI quit on second `ctrl+c` - [ ] Implement `escape` double-tap terminal focus exit - [ ] Write unit tests for interrupt timing and behavior ## Definition of Done - Implementation complete and all acceptance criteria met - Tests written and passing (coverage >= 97%) - PR reviewed and merged - Parent epic updated --- **Automated by CleverAgents Bot** Supervisor: Epic Planning | Agent: epic-planning-pool-supervisor
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.

Dependencies

No dependencies set.

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