You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ctrl-c): single tap aborts, second tap within 1s exits — no hung state
Three independent things were combining to make ctrl-c feel broken:
1. ink's default exitOnCtrlC unmounts the React tree without exiting
the Node process. The user saw a frozen terminal — the "weird state
where I can't type to AI." A second ctrl-c finally killed the
process via our SIGINT handler.
2. The Permission overlay had no ctrl-c binding, so hitting ctrl-c
during an approval prompt did nothing visible.
3. After abort fired, the abandoned turn's trailing turn_end / agent_end
events flipped status back to thinking / idle — re-disabling the
input.
Disable ink's exitOnCtrlC and own ctrl-c at the App root: dismiss any
overlay first (deny permission, cancel user query), then abort the
agent if busy, then arm the 1-second double-tap exit window. Reducer
now ignores turn_end / agent_end while status === "aborted" so the
abandoned turn can't re-disable the input.
0 commit comments