Skip to content

fix: propagate AbortSignal through tools, Gemini adapter, and abort queue path#104

Merged
JackChen-me merged 1 commit intomainfrom
fix/issue-99-100-101-abort-signal-propagation
Apr 12, 2026
Merged

fix: propagate AbortSignal through tools, Gemini adapter, and abort queue path#104
JackChen-me merged 1 commit intomainfrom
fix/issue-99-100-101-abort-signal-propagation

Conversation

@JackChen-me
Copy link
Copy Markdown
Owner

Summary

Fixes three AbortSignal propagation gaps in the cancellation chain:

Changes

File Change
src/agent/runner.ts buildToolContext(abortSignal?) accepts and passes through the effective signal
src/orchestrator/orchestrator.ts Abort handler uses queue.skipRemaining()
src/llm/gemini.ts buildConfig() includes abortSignal in config
tests/abort-signal-propagation.test.ts 8 new targeted tests covering all three fixes

Test plan

Closes #99, closes #100, closes #101

…d abort queue path (#99, #100, #101)

- #99: pass per-call effectiveAbortSignal to buildToolContext() so tools
  receive the correct signal instead of the static runner-level one
- #100: replace manual pending-task loop with queue.skipRemaining() on
  abort, fixing blocked tasks left non-terminal and missing events
- #101: forward abortSignal in Gemini adapter's buildConfig() so the
  SDK can cancel in-flight API calls
- Add 8 targeted tests for all three fixes
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@JackChen-me JackChen-me merged commit 252419e into main Apr 12, 2026
3 checks passed
@JackChen-me JackChen-me deleted the fix/issue-99-100-101-abort-signal-propagation branch April 12, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant