Repository navigation
Fix #93: make interrupt Enter opt-in - #141
Conversation
Integration review — approvedAll 8 checks green. 14 files, but only 4 carry logic — the rest are the afx skill doc in both Problem. Fix. The default inverts: ESC alone. The one thing I want on the record, because it is invisible and load-bearing: .option('--enter', 'Send Enter after ESC so queued messages process (unsafe at dialogs)')
.option('--no-enter', 'Send ESC alone (default; retained for compatibility)')The declaration order is what makes the default correct. Commander gives a lone Swap those two lines and
Merge with |
Summary
afx interruptno longer sends Enter to an unknown terminal screen by default. It sends ESC alone unless the operator explicitly opts into the queue-processing behavior with--enter.Fixes #93
Root Cause
The CLI exposed only Commander's negative
--no-enteroption, so Commander suppliedenter: trueby default. That becamenoEnter: false, and Tower's gate-bypassing escape path blindly scheduled a carriage return after ESC without knowing whether a dialog still had a highlighted action.Fix
--enteropt-in while retaining--no-entercompatibilityTest Plan
pnpm buildpnpm test(6,067 Codev tests + 167 v2 tests pass)porch check bugfix-93