Skip to content

test(auto-continue): event-level proof for Streaming response failed (issue #3) - #18

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
0037d-oac3-event-tests
Dec 1, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
0037d-oac3-event-tests

Conversation

@developing-today-fleet

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

Copy link
Copy Markdown
Contributor

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 a session.error → on session.idle the plugin sends exactly one promptAsync with text continue to that session (criterion 2, end to end — the path PR fix: auto-continue on 'Streaming response failed' interruptions #13's pattern takes in production).
  • A retryable error on an assistant message.updated also continues.
  • A second session's idle does not consume another session's pending continue.
  • MessageAbortedError (user abort) wins over a retryable message — no continue (criterion 3).
  • Unrelated errors and idle-with-no-pending-error send no continue.

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 test on 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.json includes only src, 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-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: 62a39a55-8555-41e0-bc7b-c6b95c9ce2c9

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 6640bca into main Dec 1, 2026
3 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the 0037d-oac3-event-tests branch December 1, 2026 06:56
@developing-today-fleet developing-today-fleet Bot mentioned this pull request Dec 1, 2026
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