Pause goals after repeated transport failures - #19
Conversation
|
Thanks for tackling the runaway continuation problem. The bounded transport/no-response recovery is valuable, and the branch passes its local gate for me: lint, both typechecks, 109 tests, build, and package dry-run. I do not think the PR is ready to merge yet. Please rebase it onto current main and narrow it to the transport/no-response fix. The following issues need to be addressed:
Please leave the following changes out of scope for this PR:
A focused PR should contain the bounded transport/no-response episode tracking, only the reservation/watchdog deduplication required for that ceiling, focused regression tests, and a regenerated dist/server.js from current main. Please also update the PR description with the AI model and agent harness used, or state that the changes were made manually, per the current contribution guidelines. |
|
Superseded by #20, which carries forward the focused bounded transport/no-response retry work on current Thank you @ruizkinio for identifying the runaway continuation problem and for the original recovery design and live transport cases. The replacement commit credits Sam as co-author, and the PR description documents the adaptation. |
Summary
Align automatic goal continuation with native Codex-style pause semantics when the provider stops answering.
/goal resumemax_turn_timebehaviorWhy
A live connection outage caused one goal session to issue 4,066 automatic continuations until a downstream alias limit was exhausted. Goal mode should stop safely when the model cannot answer and wait for an explicit resume, rather than retrying indefinitely.
Validation