GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(route-proxy): fail over on pre-content stream errors (#3325) by dezren39 · Pull Request #5558 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 4, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Summary

2xx streaming leg
  buffer first content (250 ms / 64 KiB bound)
  pre-content SSE/transport failure -> record + walk to next candidate
  post-content failure -> record only; never splice responses

In-stream quota errors retain RateLimit classification and Retry-After detail in route_attempt.

Fixes #3325.

Evidence

  • Before: the new regression failed; the client received the first leg's quota-error event.
  • After: node --test bin/opencode-route-proxy.test.mjs — 39/39 pass, including fragmented SSE errors, pre-content transport breaks, delayed first content, and no post-content retry.
  • node --check bin/opencode-route-proxy.mjs and git diff --check pass.

Merge Danger

Door: two-way

Blast Radius: route-proxy

Buffering is limited to the pre-content window; mid-stream failover remains disabled.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
developing-today[bot] added 2 commits November 4, 2026 09:26
developing-today[bot]
fix(route-proxy): fail over on pre-content stream errors (#3325)
1e0de42
developing-today[bot]
Merge remote-tracking branch 'origin/main' into queue/8932-3325-route…
f9beae3
…-stream-fallback
@dezren39
dezren39 requested a review from a team as a code owner November 4, 2026 15:28
@coderabbitai

coderabbitai Bot commented Nov 4, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • 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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-10T21:52:27.868964Z e341314 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Nov 4, 2026
workhorse route: sessions die on quota-exhausted muse-spark leg instead of falling through to a live leg (22:40 wave, 5 roots) #3325
Closed
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Nov 4, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f9beae3979

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread bin/opencode-route-proxy.mjs Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread bin/opencode-route-proxy.mjs Resolved

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot assigned dezren39 Nov 4, 2026
@dezren39 dezren39 mentioned this pull request Nov 5, 2026
audit: stranded fixes & regression mechanisms — merge drive record (WS-G 2026-11-04) #5880
Closed
@developing-today developing-today Bot mentioned this pull request Nov 8, 2026
Unowned PR batch from branch disposition (2026-11-07) #7297
Open
@dezren39

dezren39 commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

agent-note:v1
task: 14021
lane: code-b
state: handed_off
summary: Claimed by lane code-b 2026-11-09T01:22Z; execution lane assignment is opencode (lane row 5305). PR #5558 verified OPEN fresh, not draft, no labels (no hard-stop), head f9beae3 on branch queue/8932-3325-route-stream-fallback; only check is CodeRabbit skipping. Handing off to the opencode claimant per runbook 1b; parked 1200s.
next: opencode claimant launches bound session for task 14021 and shepherds PR #5558 (batch #7297 part 5) to merge or a reasoned close.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 added work/assigned Queue worker lifecycle state queue/parked Queue task is parked (waiting on CI, time, or an event) status/parked Deliberately paused with a recorded resume condition queue/claimed Queue worker lifecycle state status/in-progress Queue worker lifecycle state and removed status/parked Deliberately paused with a recorded resume condition queue/parked Queue task is parked (waiting on CI, time, or an event) status/in-progress Queue worker lifecycle state queue/claimed Queue worker lifecycle state labels Nov 9, 2026
@dezren39 dezren39 mentioned this pull request Nov 9, 2026
route-proxy: a leg failing 100% with provider.auth is never demoted — demotedPairs() counts only quota/RateLimit (3070/3070 failures, 40% of new sessions lost) #8048
Closed
repo-worker-code-k added 3 commits November 10, 2026 15:37
repo-worker-code-k
fix(route-proxy): preserve large first events + cancel rejected strea…
64a92f7
…m on preface overflow (#5558 Codex P2s)
repo-worker-code-k
Merge remote-tracking branch 'origin/main' into queue/14021-5558-code…
fdff505
…x-fixes

# Conflicts:
#	bin/opencode-route-proxy.test.mjs
repo-worker-code-k
fix(route-proxy): defer preface limit while a data event is in progre…
e341314
…ss (#5558 Codex P2)
@dezren39

dezren39 commented Nov 10, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · merging under the standing criteria (task 14021, lane code-t)

  • Both Codex P2 findings fixed and their threads resolved: 64a92f7 (parse complete events before trimming + data-aware buffer bound; cancel the rejected upstream on preface overflow) and e341314 (relay defers the preface limit while a data event is in progress — the prepare-window/relay phase-boundary case the new regression test exposed under load), each with regression tests and thread replies carrying the evidence.
  • Branch merged with current main (fdff505; two trivial test-file conflicts resolved as unions); net diff vs main is only bin/opencode-route-proxy.mjs + its test file.
  • Tests at head e341314: node --test bin/opencode-route-proxy.test.mjs — 44 pass, 0 fail, run twice.
  • CI: only CodeRabbit (NEUTRAL) is attached to this PR; merging under the standing merge authority (CI runs on main).
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 merged commit 3fc163e into main Nov 10, 2026
0 of 10 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the queue/8932-3325-route-stream-fallback branch November 10, 2026 21:49
@dezren39 dezren39 removed the status/parked Deliberately paused with a recorded resume condition label Nov 10, 2026
@dezren39 dezren39 removed queue/parked Queue task is parked (waiting on CI, time, or an event) work/assigned Queue worker lifecycle state labels Nov 10, 2026
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Nov 10, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e341314275

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread bin/opencode-route-proxy.mjs
Comment on lines +1065 to +1069
if (state.done)
return {
error: new LeafError("leaf stream ended before content", {
tag: "ProviderInternal",
}),

@chatgpt-codex-connector chatgpt-codex-connector Bot Nov 10, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve successful terminal chunks with no content

When a provider returns a valid empty completion—an assistant role followed by delta: {} with finish_reason: "stop", "content_filter", or "length", then [DONE]—the inspector never sets contentStarted because it ignores finish_reason. This branch consequently discards the completed response and retries another provider; if all candidates return empty completions, the client receives a proxy error instead of the original terminal chunks and usage. Previously these events were relayed unchanged. Track terminal completion separately from nonempty content so an explicitly finished empty response is not treated as a failed stream.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dezren39 dezren39 mentioned this pull request Nov 21, 2026
Closure audit: every closed issue/PR verified; unmerged branches + unpushed worktrees inventoried #7079
Open
@dezren39 dezren39 added the audit:complete PR fully implemented spawning issue label Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@dezren39 dezren39

Labels

audit:complete PR fully implemented spawning issue

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

workhorse route: sessions die on quota-exhausted muse-spark leg instead of falling through to a live leg (22:40 wave, 5 roots)

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.