fix(sse): sticky head + store drain for opencode rotation (opt-in) - #14202
Merged
diegosouzapw merged 1 commit intoSep 22, 2026
Merged
Conversation
maxmad64bis
force-pushed
the
feat/n97-r7-sticky
branch
from
September 19, 2026 16:52
ae990b5 to
313d40d
Compare
maxmad64bis
force-pushed
the
feat/n97-r7-sticky
branch
from
September 19, 2026 16:58
313d40d to
e25fcce
Compare
maxmad64bis
marked this pull request as ready for review
September 19, 2026 17:02
Owner
|
Thanks @maxmad64bis — merging via the release merge-train. Validated in local merge-train (mt-train10c) on the devbox @ train tip 4d841aa1c740bbaa03868dc0a403c62099a99a42 with the 72 sibling PRs of this batch: typecheck:core, file-size, complexity, cognitive-complexity, changelog-integrity green; changed-area node:test 831/831 (0 failing) and vitest 480/482 — the two reds are |
diegosouzapw
merged commit Sep 22, 2026
985136b
into
diegosouzapw:release/v3.8.51
15 of 25 checks passed
4 of 5 tasks
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.
Summary
Concurrent requests on the opencode rotation start from the same member and replay the same failing cascade. This PR reuses the last healthy member and skips recently refused members while the opt-in skip flag is on; with the flag off the order is exactly the plain rotation. The saturated fallback serves without recording sticky, so sticky keeps the previous healthy serve.
Related Issues
Validation
npm run lint— local eslint on the touched files is clean; the full run is red on the base (files outside this PR)Tests Added Or Updated
Coverage Notes
Reviewer Notes
Local gates on PR files are green: unit oracle 11/11, cycles OK (438 files), eslint exit 0, typecheck-core exit 0, file-size OK, complexity new-code 0 (the one hit,
isEmptyUpstreamRejection: 20, is pre-existing on the base).CI reds are all inherited (files outside this PR, unchanged since merge-base
7a921299, same failures on fix(sse): park request with heartbeat after repeated transient 429s, replay one capped leg #13924/feat(sse): per-egress pacing + fleet-wide backoff for opencode rotation (opt-in) #14180, open base-red onrelease/v3.8.51): API Typecheck (rerankProviderNodes,antigravityTS2677), skills-sync (omni-version-managergenerated), ESLint (cliRuntime,arena-elo,translator-openai-to-gemini), env-doc-sync, unit shards.CI reds are inherited from the red base (🔴 Release branch not green: release/v3.8.51 #13866), not from this diff: the third-party PR fix(sse): treat antigravity empty completions with a normal stop as valid 200s (#14160) #14243 on the same base
release/v3.8.51fails the same 9 jobs (API Route Typecheck, Docs Gates, Fast Quality Gates, Merge integrity, ESLint, Unit fast-path 1-4/4); every file cited by the failing gates is outside this diff. Non-blocking for this PR.