Skip to content

fix: auto-continue on 'Streaming response failed' interruptions - #13

Merged
developing-today-fleet[bot] merged 3 commits into
mainfrom
archer/2007c-streaming-response-failed
Dec 1, 2026
Merged

developing-today-fleet[bot] merged 3 commits into
mainfrom
archer/2007c-streaming-response-failed

Conversation

@developing-today-fleet

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

Copy link
Copy Markdown
Contributor

Fixes the named acceptance case in #3: the plugin never auto-continued after a "Streaming response failed" interruption because no default error pattern matched it.

Change

  • src/index.ts: add "Streaming response failed" to DEFAULT_ERROR_PATTERNS (Stream / timeout errors group).
  • dist/index.js: same one-line addition in the shipped build output (dist is committed in this repo; index.js.map is not regenerated by this contents-API edit and is refreshed by the next tsc build — the map does not affect runtime behaviour).

One pattern added, none removed, no other behaviour touched. Matching is the existing case-insensitive substring match against "${errorName}: ${errorMessage}", and exclude patterns are still checked first.

Verification (lane 2007-C, firsthand)

Matcher oracle run against the edited pattern lists (the plugin's own isRetryableError logic):

  • Streaming response failed via data.message → retryable ✓
  • Streaming response failed via err.message → retryable ✓
  • MessageAbortedError + streaming message → NOT retryable (exclude still wins) ✓
  • Existing patterns (bad request, SSE read timed out) still match ✓
  • Unrelated error still not retried ✓
  • Pattern delta vs main: exactly ["Streaming response failed"] added, [] removed ✓
  • node --check dist/index.js syntax OK ✓

Acceptance criteria: (1) failure confirmed firsthand — pattern absent on main while the interruption is named in #3's comments; (2) plugin now auto-continues on that interruption; (3) no regression per oracle above. The separate "latest opencode V2 API" question is PR #5's wholesale port and is out of scope here.

Key: 2007-C (charlie ADVANCE 2026-11-30)

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-12-01T02:33:24Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch/hatch-personal",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch/hatch-personal",
      "repo": "developing-today/opencode-auto-continue",
      "branch": "main",
      "sha": "7150771b9cbfda5326230b5abc6f32461a7c47ec"
    },
    "auth_subject": "archer",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

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: 5521d163-a2d6-4d2a-a644-b28d18e5282f

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 78676f0 into main Dec 1, 2026
3 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the archer/2007c-streaming-response-failed branch December 1, 2026 02:36
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