Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
| Layer / File(s) | Summary |
|---|---|
Client and connection state contracts packages/client/src/links/wsLink/wsClient/machine/clientModel.ts, packages/client/src/links/wsLink/wsClient/machine/connectionMachine.ts |
New types describe client lifecycle, connection phases, events, effects, and handover state. |
Request transitions and subscription handoff packages/client/src/links/wsLink/wsClient/machine/requestMachine.ts |
Request transitions handle query and mutation settlement, subscription delivery, replay filtering, and movement between connections. |
Connection and client lifecycle transitions packages/client/src/links/wsLink/wsClient/machine/clientMachine.ts, packages/client/src/links/wsLink/wsClient/machine/clientStep.ts, packages/client/src/links/wsLink/wsClient/machine/connectionMachine.ts |
Client and connection transitions process socket events, frames, timers, retries, closure, and request effects. |
Transport and resource lifecycle packages/client/src/links/wsLink/wsClient/transport.ts, packages/client/src/links/wsLink/wsClient/scope.ts, packages/client/src/links/wsLink/wsClient/wsConnection.ts |
The transport handles socket events, connection parameters, frame decoding, keepalive, fences, and disposal. The former connection implementation is removed. |
Runtime effects and request management packages/client/src/links/wsLink/wsClient/wsClient.ts, packages/client/src/links/wsLink/wsClient/requestManager.ts, packages/client/src/links/wsLink/wsClient/utils.ts, packages/client/src/links/wsLink/createWsClient.ts |
The runtime applies machine effects through transports, timers, requests, and callbacks. RequestManager stores requests by ID, and createWSClient delegates to the runtime. |
State-machine validation packages/tests/server/websockets.clientMachine.* |
Model-based and type-level tests exercise transition invariants, request ownership, subscription movement, replay handling, and generated state diagrams. |
Reconnect and subscription handoff tests packages/tests/server/websockets.{clientModel.realServer,keepAlivePongTimeout,makeBeforeBreak,retiredSocket,serverReconnect}.test.ts |
Server-backed tests cover connection replacement, request routing, subscription movement, replay, socket loss, and retries. |
Transport and client lifecycle tests packages/tests/server/websockets.{close,encoder,lazy,memory,transport,undecodableFrame}.test.ts, packages/client/src/links/wsLink/wsClient/requestManager.test.ts |
Tests cover transport disposal and fencing, frame decoding, memory release, client closure, lazy mode, and request lifecycle. |
Estimated code review effort: 4 (Complex) | ~60 minutes
Change: Refactor
Sequence Diagram(s)
sequenceDiagram
participant createWSClient
participant createWsClientRuntime
participant clientTransition
participant openTransport
createWSClient->>createWsClientRuntime: create client runtime
createWsClientRuntime->>clientTransition: dispatch client event
clientTransition->>createWsClientRuntime: return transition effects
createWsClientRuntime->>openTransport: open WebSocket transport
openTransport->>createWsClientRuntime: emit transport events
createWsClientRuntime->>clientTransition: dispatch connection or frame event
Possibly related issues
- trpc/trpc#4774 — The PR changes connection failure and retry state handling, but the supplied context does not establish that it fully fixes the reported fast retry loop.
Possibly related PRs
- trpc/trpc#7914 — Both changes handle pong timeouts and reconnect behavior.
- trpc/trpc#7911 — Both changes address request batching during connection changes.
- trpc/trpc#7727 — Both changes handle late events from retired sockets during reconnect handoffs.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passedFull details: Docstring Coverage
-
Explanation
Docstring coverage is 54.05% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 74 functions across 26 files. (1 skipped: 1 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches
-
Generate docstrings
-
- Commit to this branch
- Create a new PR
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Warning
Review coverage is incomplete: 1 file could not be fully reviewed. Findings from completed review steps are included; see review info for details.
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.
@trpc/client
@trpc/next
@trpc/openapi
@trpc/react-query
@trpc/server
@trpc/tanstack-react-query
@trpc/upgrade
commit: |
…tests Co-authored-by: alexander <[email protected]>
…r start Queries and mutations get their own state type without moving, leaving or started; only subscriptions carry lastEventId and replayed. A queued subscription has no started flag. Moving a subscription is its own function that only takes a subscription. Type tests prove the removed states can't be built. Co-authored-by: alexander <[email protected]>
…moving states Only a tracked subscription that is sent or moving has ids to replay, so a queued or leaving one can't carry any, and resuming needn't clear them. Co-authored-by: alexander <[email protected]>
…t error The handover is no longer an id that has to be the newest draining connection, with a replacement error alongside that only means something while it exists. The handover record carries its own error, and the older draining connections are listed apart from it, so neither can disagree. Co-authored-by: alexander <[email protected]>
clientModel.ts holds the client's state, events and effects, and the queries on them; clientStep.ts the mutable scratchpad one transition runs on; and clientMachine.ts routes each event. servingConnections moves next to the request states it reads. Co-authored-by: alexander <[email protected]>
The seeded model property checks its coverage goals with the shared reporter, and the real-server property keeps its seed, run count, timeout and endOnFailure; each run still closes its server and client before the next. Co-authored-by: alexander <[email protected]>
…ones, PING and PONG included A real socket can't let a PONG overtake the frames sent before it. The untracked-event test now holds the old socket's frames in order, so it stays meaningful once the client listens for that PONG. Co-authored-by: alexander <[email protected]>
…PING sent after its stop A procedure that ignores its abort never sends `stopped`, so a moved untracked subscription kept listening to the old socket, and kept it open, until that socket was lost. After the stop, the client now sends a PING on the old socket. The server answers PINGs in order, after the frames before them, and sends nothing for a subscription once it has handled its stop, so that PING's PONG ends the move without a timeout. A server that doesn't answer PING still ends it with `stopped` or by going away. Every PING, keepAlive's included, goes through one queue on the transport, so each PONG is matched to its own PING. A fence names its request and the connection the request moved to, so a fence from an earlier move off the same socket can't end a later one. Co-authored-by: alexander <[email protected]>
Co-authored-by: alexander <[email protected]>
Co-authored-by: alexander <[email protected]>
… subscription too, until it has handled the stop A moved subscription with event ids skipped the leaving state, so an event without an id that only the old socket had was dropped if it arrived after the new socket's started. Every confirmed move now leaves the old socket, fenced, as #7727 does, and leaving keeps the replay owed. The model sends such events in tracked runs too. Co-authored-by: alexander <[email protected]>
Co-authored-by: alexander <[email protected]>
…ay still hold the stopped one When the new socket is lost after a move, the subscription was resent on the old socket with the id that socket had just been sent the stop for. Until its server ended the stopped subscription, it answered `Duplicate id`, or its late `stopped` ended the resent one. The model now gives each request its id on the wire, and a subscription resent on a connection no newer than the newest its id was sent on gets a fresh one. The model test's server answers a duplicate id as a failure, and the independent review's real-server probes are regression tests. Co-authored-by: alexander <[email protected]>
… end lazy and connectionParams work with nothing left - A replaced socket closes once a failed move batch or a lost successor leaves it serving nothing. - close() stops every subscription on the server, as unsubscribing does. - A lazy client's inactivity timer starts when the socket opens, and a lazy client with no requests goes idle instead of retrying. - The connectionParams intake ends when its transport is disposed. - Tests: a model invariant for drained sockets and for request batching, an opaque-id replay test, and the CodeRabbit test nitpicks. Co-authored-by: alexander <[email protected]>
Co-authored-by: alexander <[email protected]>
… it was moving to is replaced A subscription moving from A to B, when a second reconnect notice replaced B before B confirmed it, waited for B to start it and for A's fence before moving on to C, so it depended on a socket the server had asked to retire. It's now stopped on B and sent on C at once, and A serves it until C confirms it. Ports #7727's 01c8328. Co-authored-by: alexander <[email protected]>
Co-authored-by: alexander <[email protected]>
… one on while it still leaves others When the handover was lost while an older replaced socket was still open, nothing took new or lost requests until the next connection was ready. The newest replaced socket now becomes the handover, so a subscription lost with the new socket goes back to the old one at once. A subscription leaving A for B couldn't move on when B was replaced: it waited for A's fence first. `leaving` now holds every connection being left, and `moving` carries those an earlier move left, so it moves to the next connection at once and still delivers A's events without ids until A has handled its stop. Ports #7727's ec7d5bb and 88a607d. Co-authored-by: alexander <[email protected]>
…til the newest confirms it Assert B's stop, and no stop on A, while C's started is still held. Co-authored-by: alexander <[email protected]>
A subscription leaving its old socket that loses the new one is queued again, and dropped what it was leaving: an event without an id that only the old socket had was lost while that socket was up. Queued subscriptions now keep `left`, and each `Left` keeps the wire it was sent with there, so a resend with a fresh wire on the same socket is told apart from the old one's late frames. Co-authored-by: alexander <[email protected]>
Co-authored-by: alexander <[email protected]>
…omma Edge labels are comma-separated, so ', tracked' read as an event of its own. Co-authored-by: alexander <[email protected]>
Co-authored-by: alexander <[email protected]>
Co-authored-by: alexander <[email protected]>
…tands in A replaced connection only closed once its replacement was ready or the client was idle. While a newer replaced connection stood in during a backoff, an older one with nothing left stayed open until the next socket opened, which a failing server could put off indefinitely. close() also left such connections open until its pending queries finished. closeIfDrained now closes any drained connection that takes no new requests, and close() closes the drained ones at once. Model invariant I16 now holds in every lifecycle. Co-authored-by: alexander <[email protected]>
Co-authored-by: alexander <[email protected]>
…ent-rearchitecture-b082 Brings in main and the trimmed state machine primitive: - Timers call back instead of being read through `intake`. - The diagram helpers come from the test harness. - `ws` no longer exports `WebSocket.Server` as a type; use `WebSocketServer`. - The server no longer starts a subscription it held on a socket that has closed (#7976), so the restart-mid-handover test waits for the procedure's second run, not its third. Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_019Un67fVtH18NTKvJTnoc8E
…ent-rearchitecture-b082
Why
wsClient.tstracks one shared socket, so reconnects, retired sockets, pong timeouts andconnectionParamsrace. Each fix (fix(client): reject WebSocket batches when sending fails #7725, fix(client): isolate retired WebSocket close and error events #7727, fix(client): reconnect right away when a wsLink keepAlive pong times out #7914, fix(client): treat an undecodable wsLink frame as a lost connection #7927) adds a guard.websockets.test.ts, now onmain, runs unchanged against the new client. Carries the tests of fix(client): reconnect right away when a wsLink keepAlive pong times out #7914 and fix(client): treat an undecodable wsLink frame as a lost connection #7927, rebased once they merge.What
transition(state, event) → { state, effects }.wsClient.tsonly runs the effects, on chore(server): add a pure state machine primitive to unstable internals #7930'screateMachineRuntime. Sockets,connectionParamsand timers are async iterables read by one loop; the user's calls and result callbacks stay synchronous.started, a subscription's replay lives in the states that have one, and the handover carries its own replacement error. Type tests prove the removed states can't be built.reconnectswitches sockets gracefully and invisibly to subscribers (below). The old socket takes new requests until its successor is ready. Each subscription is sent on the successor, and only stopped on the old socket once the successor has started it.connectionParamspending. If the socket never heard from the server, the backoff keeps growing.onClosegets{ code: 1006 }.close()stops every subscription on the server, as unsubscribing does. A lazy client closes a socket with nothing to do whileconnectionParamsare pending, and stops retrying once no requests are left. A replaced socket closes once nothing is left on it, also after a failed send or a lost successor.Stack
Each PR is based on the one below it, so its diff shows only its own commits. Merge from the bottom up.
mergeAsyncIterableslets go of its last value, based onmainHow a subscription switches sockets after a reconnect notice
One subscription, sent on socket A, has delivered events 1–3 when the server asks for a reconnect. Three machines take part: the client's (
clientTransition, which routes each event to the steps inclientStep.ts, over the state inclientModel.ts), one per socket (connectionTransition) and one per request (requestTransition). They return effects as data;runEffectinwsClient.tsperforms them. Nothing on A stops until its successor B has taken over: make before break, for the socket and for each subscription.{ id: null, method: 'reconnect' }on every socket (broadcastReconnectNotification), and keeps serving them. A's frames reach the client machine asframeevents (transportEvents).onFrameretires A only if it is the current connection and not already retired (reconnect).startedand noconnectingstate.retiremoves A fromreadytodraining(transition) and makes it the client'shandover. It starts the backoff for B at retry index 0, and the public state stayspending.sendingConnectionis the ready connection or, while there is none, the handover.scheduleFlushbatches new requests for it andflushsends them;observeWritabilitychecks the same socket. That includes new subscriptions, which move with the others in step 4.connectionParamsresolve. The backoff timer (timer) callsconnect, which emitsopenSocket(interpreter). OnsocketOpened, B goes tohandshakingand asks for params (transition,resolveParams,connectionParamsEvents). OnparamsResolved, B becomesreadyand sends them (transition), thenonReadyruns.openFailed(catch), which closes B (transition).afterLostretries with backoff, and new requests keep going on A (handover branch).connectingwhile A serves (D5): the state stayspendinghowever often B fails, and B keeps retrying with backoff. The handover keeps the last failure as itsreplacementError, shown withconnectingonly if A ends first (A lost). The three-failure threshold of an earlier draft is dropped: A serves every request meanwhile, soconnectingwould misdescribe a working connection.connectingwhile a handover serves.onLosthands requests batched for A to B,connectingshows with B's last failure if it had one, and the subscription resumes on B withstartedshown again.startMoves, called fromonReady, puts every subscription sent on a draining connection intomovingfrom A to B (moveSubscription).flushsends them on B in one batch with the queued requests. Each carries thelastEventIdof the last delivered event, whichsendRequestsputs in the message's params. Nothing is sent to A.'2'.started. A's events for a moving subscription reach the subscriber (from A). Their ids go into the state'sreplayed, since B resends them from thelastEventIdit got.startedswitches the subscription. B's first frame for it, itsstarted, is the ack: it makes B serve the subscription and sendssubscription.stopto A, in that order (from B,sendStop). No event from B is needed. A tRPC server sendsstartedbefore any event; if another server sent an event first, that would switch it instead. The subscription is thenleavingA until A has handled the stop (step 7).startedis dropped if the subscriber has seen one (started). A subscription moved before A sentstartedshows B's, once. A lost connection clears the flag, so a subscription resumed after a real loss showsstartedagain.stoppedfrom B ends the subscription, and A's is stopped.startedalone, with no event from B, the subscriber gets 1–4 once each, every event exactly once with events pushed every 2 ms,startedshown after a move beforestarted, fix(client): isolate retired WebSocket close and error events #7727's every event exactly once, stop only once B has started it and no duplicate from A.startedstops A in the same step, D6:subscription.stopreaches A only on B's answer or when the subscription ends, every event exactly once, D1:startedonce per (re)start.started, before it reads the stop. Frames go only to requests their connection serves (onFrame). B resends events with ids, so A's copies are dropped. B can't resend events without ids, so the subscription isleavingA until A has handled the stop (entered,onLeaving). The client sends A aPINGafter the stop, the fence (Fence). A's events without ids are still delivered (as fix(client): isolate retired WebSocket close and error events #7727 does), its events with ids andstartedare dropped, and thePONGto thatPING(fenced,onFenced), A'sstoppedor A's loss makes itsenton B, whichever comes first. The transport matches eachPONGto its ownPING, keepAlive's included (pings). The fence relies on a server contract: aPINGis answered in order, after the frames before it, and no subscription data is sent after its stop is handled. v11's adapter keeps it, so thePONGcomes after everything A sent for the subscription, and a procedure that ignores its abort no longer keeps A open. A server that doesn't answerPING(v10,dangerouslyDisablePong) falls back tostoppedor loss. A's connection-level frames, such as anotherreconnector anid: nullerror, are ignored while it drains.startedis dropped and B delivers it once, fix(client): isolate retired WebSocket close and error events #7727's A's untracked events sent before its stop are delivered, A closes at thePONGeven when the procedure never stops, keepAlivePONGs don't end a fence, an untracked event only A had is delivered when it arrives after B'sstarted, and an event without an id to a tracked subscription, latereconnectand rejection ignored.leavingsends its fence with its stop, a fence ends only theleavingit was sent for, no subscription is still leaving a writable socket once its fences are answered.senton A again (B lost), and moves to the next connection once that's ready. If A is lost, it stays on B, which is already resending (A lost); nothing is shown. Aleavingsubscription issenton B if A is lost. If B is lost, it resumes on the next connection and keeps listening to A until A has handled its stop (queued); eachLeftkeeps the id it was sent with there, so A's late frames aren't mistaken for a resend on A with a fresh id. If B is replaced before it has confirmed the subscription, the subscription is stopped on B and moves to the next connection as soon as that's ready, and A serves until that one confirms it (moveSubscription). A subscription stillleavingA when B is replaced moves on to the next connection at once, and keeps delivering A's events without ids until A has handled its stop:leavingholds every connection being left (Left). If B is lost while A is still open, A takes over as the handover, so the subscription is sent on A again at once (onLost).moveStragglersmoves on a subscription left on a draining connection.connecting, fix(client): isolate retired WebSocket close and error events #7727's B replaced before it started the subscription: stopped on B, sent on C, and sent on B again with a fresh id once C is lost, B lost while C opens: sent on A again at once, an untracked subscription moving on again keeps A until A's events have arrived, an event only A had, arriving after B is lost, is delivered and fix(client): isolate retired WebSocket close and error events #7727's equivalent.closeIfDrainedcloses A once A takes no new requests and serves nothing (servingConnections): no request in flight on it, and no subscription moving from or leaving it. It runs after the moves (onReady), after each frame (onFrame) and on unsubscribe (unsubscribe). Only the handover takes new requests, until B is ready, so an older replaced socket closes once drained even while the handover stands in for B, andclose()closes the drained ones at once (close).wsClient.close()during the handoff closes both.The request machine for this subscription.
sisstarted, whether the subscriber has seenstarted:Which socket delivers which event:
lastEventId: '4'; A keeps it (step 4)started(step 5); its copy is dropped as replayed (step 6)startedsubscription.stopand aPING(step 6)The subscriber gets 1–5 from A and 6… from B, with no duplicates and no gaps. Every event A delivers after the move is one B resends and the client drops, and from B's
startedon, only B's frames reach the subscription. This relies on the procedure resending, in order, every event afterlastEventId, with ids unique to the subscription. The real-server test checks this with A paused while events are pushed every 2 ms, and the model invariant after every step of random runs. Those runs reach every point of a move: A's events before and after B'sstarted, B's replays, data beforestarted, a second reconnect notice mid-move (goals), and either socket lost at each point (goals), from scripted starts. After each run, every live subscription must get the event after its last, so none is lost.Events without ids, from an untracked subscription or a tracked one, can't be resumed or deduplicated, so the client listens to A for them until A has handled the stop: its
PONGto thePINGsent after the stop, itsstopped, or its loss (step 7). No event is lost while A stays up: each reaches the subscriber from A, from B or from both. An event published while both listen arrives twice, and the two sockets' events can interleave during the overlap (test). One only A had is delivered even if it arrives after B'sstarted(test). If A is lost first, events only A had are lost, as on any reconnect. A server that answers aPINGbefore the frames sent ahead of it, or sends aPONGunasked, could end the fence early and lose events only A had; tRPC's servers don't.Generated state diagrams (from
websockets.clientMachine.test.ts, which fails if they drift)Client lifecycle (every change the seeded model test reaches):
Connection (
closeReported:closed, andonClosehas been called or there was no socket):Request, query and mutation:
Request, subscription (
on new: from the connection it's moving to;(tracked): it has alastEventId):Links
None
Alternatives considered
wsClient.ts(fix(client): isolate retired WebSocket close and error events #7727, fix(client): reconnect right away when a wsLink keepAlive pong times out #7914): each fix needs its own socket-identity guard.Testing
websockets.retiredSocket.test.ts(cases from the fix(client): fail or resend only the requests sent on a closing WebSocket #7910 review) andwebsockets.serverReconnect.test.tsfail onmain.websockets.memory.test.ts's "lets go of the last frame" fails if the socket's events are read withfor awaitoryield*.websockets.serverReconnect.test.ts's "an untracked subscription gets an event only the old socket had, even when it arrives after the new socket's started" fails ([1, 3]) if an untracked subscription stops listening to A at B'sstarted, and "a tracked subscription gets an event without an id that only the old socket had" fails the same way if only untracked subscriptions leave A. Its "leaves the old socket at the PONG to the PING after its stop, even if the procedure never stops" fails without the fence, andwebsockets.transport.test.tsfails if keepAlivePINGs aren't queued with fences.websockets.test.tsandwebsockets.encoder.test.tsaremain's, from fix(client): isolate retired WebSocket close and error events #7727.websockets.makeBeforeBreak.test.tsholds its real-server probes. "The new socket lost after the move: the subscription is resent on the old socket with a fresh id…" fails withDuplicate id 1if the resend reuses the stopped id. The late-stoppedand second-notice cases fail too. The simulated server inwebsockets.clientMachine.test.tsnow fails any run that sends an id a socket still holds. TheconnectionParamscases already passed.554d4e030: its "a subscription moving to a socket that a newer one replaces is stopped there, and can be sent there again" fails on3dacb422e, as does the request machine's redirect test. Its other four new cases (a fresh id on the old socket, the old socket's latestopped, and the two where a new socket closes while itsconnectionParamsare pending) already passed.2cd024579: its "a subscription lost with the new socket is sent to the old one while a newer socket is still opening" and "an untracked subscription that moves on again keeps the first socket it left until that one's events have arrived" fail ondb2b5c6fb. The model's new coverage goals, a lost handover handed to the socket it replaced and a subscription moved on while still leaving a socket, are unreachable without the fixes, and a type test proves aleavingsubscription leaves at least one connection.2cd024579, which applies here too:websockets.serverReconnect.test.ts's "an untracked subscription gets an event only the old socket had when the new socket is lost before it arrives" fails ([1]) on8cbb2eff0, as does fix(client): isolate retired WebSocket close and error events #7727's "an untracked subscription lost with the new socket still gets the old socket's late events from before it was sent again" from6a7202a0a, and so does the model invariant that no event without an id is dropped from a socket the subscription left while that socket is up. An event like this can reach the subscriber before the resumed subscription'sstarted, since it belongs to the earlier run.websockets.close.test.tsandwebsockets.lazy.test.tsfail on771429e05. So does theconnectionParamscase inwebsockets.transport.test.ts. The model invariant I16, that a replaced connection closes once nothing is left on it, fails with one-action counterexamples there.websockets.makeBeforeBreak.test.ts's "an older replaced socket closes once drained while a newer one stands in for a replacement that hasn't opened" fails on362de2658(A stays OPEN until the next socket opens), as does fix(client): isolate retired WebSocket close and error events #7727's "a subscription sent again on a restored socket closes the first socket it was still draining once it ends" froma23c8a635. I16, now checked in every lifecycle, fails there with one-action counterexamples.websockets.clientMachine.test.tschecks the invariants after every step of random event sequences, three quarters of which start mid-move;websockets.clientModel.realServer.test.tsruns them against a real server. Both run with@fast-check/vitest'stest.propon fast-check 4: the seeded model run must reach every coverage goal, unseeded runs show their seed in the test name, and a failure prints the seed and path that replay it.websockets.clientMachine.types.test.tsproves with@ts-expect-errorthat a query can't move, showstartedor resume, a queued subscription has nostartedand no events to replay, and a replacement error can't exist without its handover.started, delivering the old socket's late tracked events, not dropping replayed events, resuming from the wronglastEventId, holding new requests until the successor is ready, closing the old socket while a move is pending, dropping an untracked subscription's events from A at B'sstarted, not sending the fence, endingleavingon an earlier move's fence, leaving A only for untracked subscriptions, and dropping the replay on enteringleavingeach fail the model or real-server tests.requestManager.test.ts:flush()→all(), assertion unchanged. The request machine now does the queueing, soRequestManagerhas noflush().AI model
Claude Opus 5.5
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Summary by CodeRabbit