Repository navigation
test(auto-continue): event-level proof for Streaming response failed (issue #3) - #18
Merged
Merged
Conversation
…ed interruption sends continue (issue #3)
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
Closed
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.
What this adds
test/auto-continue-events.test.ts— event-level integration tests for issue #3, driving the plugin's real hooks with a mock client and a temp offline config (delayMs 5, throttleMs 0):"Streaming response failed"arriving as asession.error→ onsession.idlethe plugin sends exactly onepromptAsyncwith textcontinueto that session (criterion 2, end to end — the path PR fix: auto-continue on 'Streaming response failed' interruptions #13's pattern takes in production).message.updatedalso continues.MessageAbortedError(user abort) wins over a retryable message — no continue (criterion 3).Why
PR #13 added the
"Streaming response failed"pattern and PR #17 proved the matcher (isRetryableError) in isolation. Nothing proved the event pipeline itself — error event → pendingContinue → idle → continue — fires for the streaming-failure shape, or that excluded errors do not fire it end to end. This closes that proof gap. It does not replace a live opencode + oh-my-openagent reproduction (criterion 1's live leg), so this PR references #3 rather than closing it.Verification
bun teston the branch content (src/index.ts at main 89502fb + this file + the existing suite): 37 pass, 0 fail — 31 existing matcher tests unchanged plus the 6 new event tests.tsconfig.jsonincludes onlysrc, so the build is unaffected.Lane 0037-D (alpha DRIVE 2026-12-01), claim: #3 (comment)
Refs #3
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.