Skip to content

test: regression suite for default error patterns (#3) - #17

Merged
developing-today-fleet[bot] merged 4 commits into
mainfrom
lane/2252-f-pattern-tests
Dec 1, 2026
Merged

developing-today-fleet[bot] merged 4 commits into
mainfrom
lane/2252-f-pattern-tests

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

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; five export keywords).
  • test/patterns.test.ts (new, bun:test, 31 tests): every shipped default error pattern matches; the "Streaming response failed" pattern matches including the data.message envelope 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 build regenerates the same dist the workflow committed.
  • Full diff read by the lane before merge.

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-bot with what you need.

@coderabbitai

coderabbitai Bot commented Dec 1, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 09e68d5e-918d-4e1e-bcd3-5c36d31b69a0

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@developing-today-fleet
developing-today-fleet Bot merged commit 89502fb into main Dec 1, 2026
3 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the lane/2252-f-pattern-tests branch December 1, 2026 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants