Repository navigation
fix(worker): preserve interactions across worker reconnects - #67
Merged
Merged
Conversation
nixuuu
added a commit
that referenced
this pull request
Nov 4, 2026
Two integration tests failed intermittently on the new parallel CI shards (#80). - **agent-skills** ("folder/ZIP boundaries reject … without writes"): a second worker's delayed registration bumped the environment revision (3 → 4) after the test took its baseline. Reproduced deterministically with controlled ordering. Setup now awaits every worker's registration and current report before the baseline. - **interaction-reconnect** ("an answer lost at the send boundary …"): the test's snapshot read could straddle the interaction transaction and see the pending request before its timeline item. Reproduced under load. The existing wait now requires the matching timeline item. No production changes, no sleeps, retries or weakened assertions. Each file passed 30 runs in a row (270 + 120 tests); full suite 943 pass / 152 skip / 0 fail. Fixes: #63 Fixes: #67
This was referenced Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pending permissions, questions and elicitations now have integration coverage across worker↔gateway network drops, and one real bug is fixed.
Fix: Grok rejected the
StartTurnthe outbox replays after a reconnect while the original prompt was still waiting for an interaction. The gateway then failed the running turn and expired its pending permission. A replayedStartTurnfor the turn that is already running is now acknowledged without starting a second prompt.Tests (
tests/integration/interaction-reconnect.test.ts,durable-threads.test.ts):Docs: no permission deadline exists in code, so protocol.md / execution.md now describe the real behaviour (wait until answered or the turn/thread stops); failure matrix row in durability.md.
Checks: install, gen:check, typecheck, lint, format:check, check:tmp (861 pass, 152 skip, 0 fail).