pi-mono/packages/coding-agent/src
Thomas Mustier a65da1c14b fix: ESC key not interrupting during Working... state
Three related fixes:

1. google-gemini-cli: Handle abort signal in stream reading loop
   - Add abort event listener to cancel reader immediately when signal fires
   - Fix AbortError detection in retry catch block (fetch throws AbortError,
     not our custom message)
   - Swallow reader.cancel() rejection to avoid unhandled promise

2. agent-session: Fix retry attempt counter showing 0 on cancel
   - abortRetry() was resetting _retryAttempt before the catch block could
     read it for the error message

3. interactive-mode: Restore main escape handler on agent_start
   - When auto-retry starts, onEscape is replaced with retry-specific handler
   - auto_retry_end (which restores it) fires on turn_end, after streaming begins
   - Now restore immediately on agent_start if retry handler is still active

Amended: suppress reader.cancel() rejection on abort.
2026-01-08 12:35:34 +00:00
..
cli Add --no-extensions flag to disable extension discovery 2026-01-06 23:53:01 -08:00
core fix: ESC key not interrupting during Working... state 2026-01-08 12:35:34 +00:00
modes fix: ESC key not interrupting during Working... state 2026-01-08 12:35:34 +00:00
utils Switch to @mariozechner/clipboard fork with musl support 2026-01-08 04:50:37 +01:00
cli.ts Remove old implementation files (main.ts, cli.ts, tui-renderer.ts), rename new files 2025-12-09 01:21:28 +01:00
config.ts chore: remove deprecation comment from getToolsDir, add changelog entry for #470 2026-01-05 20:26:48 +01:00
index.ts feat(coding-agent): export run mode utilities with options interfaces 2026-01-08 01:53:24 +01:00
main.ts feat(coding-agent): add --no-extensions flag to disable extension discovery 2026-01-08 03:22:38 +01:00
migrations.ts chore: remove deprecation comment from getToolsDir, add changelog entry for #470 2026-01-05 20:26:48 +01:00