action_quit_or_interrupt(
self,
) -> NoneHandle Ctrl+C - interrupt agent, reject approval, or quit on double press.
Priority order:
Rapid escape hatch: the clipboard-copy branches (1 and 7) are skipped
once Ctrl+C is pressed _RAPID_QUIT_CTRL_C_PRESSES times within
_RAPID_QUIT_CTRL_C_WINDOW_SECONDS. Without this, a non-empty draft
makes branch 7 copy on every press, so the quit arm is unreachable by
Ctrl+C alone. Mashing Ctrl+C then falls through to arm quit (and a
further press exits). The interrupt branches (2-5) stay unconditional so
a repeated press still cancels in-flight work rather than quitting.