Repository navigation
test: regression suite for default error patterns (#3) - #17
Merged
Merged
Conversation
…ns(-)) Changed files: dist/index.d.ts dist/index.d.ts.map dist/index.js dist/index.js.map 4 files changed, 23 insertions(+), 6 deletions(-)
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
This was referenced Dec 1, 2026
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.
Refs #3 — follow-on slice by Archer lane 2252-F (claim comment 7301744412 on #3).
What
PR #13 added
"Streaming response failed"to the default error patterns, but the repo had no test suite, so acceptance criteria 2 (auto-continue on the streaming failure) and 3 (no regression on previously handled patterns) had no durable proof. This PR adds that proof:src/index.ts: export the matcher surface —DEFAULT_ERROR_PATTERNS,DEFAULT_EXCLUDE_PATTERNS,DEFAULTS,Config,isRetryableError(no behavior change; fiveexportkeywords).test/patterns.test.ts(new, bun:test, 31 tests): every shipped default error pattern matches; the "Streaming response failed" pattern matches including thedata.messageenvelope shape; matching is case-insensitive; exclude patterns (MessageAbortedError,operation was aborted) take precedence even when a retryable pattern is present; non-matching / null / malformed errors return false.package.json: adds"test": "bun test".dist/: rebuilt by the repo's build workflow (commit ba65b76).Verification
bun test: 31 pass, 0 fail (run against this exact src before pushing).bunx tsc --noEmit: clean;bun run buildregenerates the same dist the workflow committed.Criterion 1 of #3 (live reproduction against latest opencode + oh-my-openagent) is not in this slice and remains open on the issue.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.