GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — feat(delivery): a team conversation swaps a usage-limited seat to a free favorite by polymaniadeveloper-hub · Pull Request #190 · Tevin2119/t3code Conversation
|
| Skipped as | When |
|---|---|
unavailable |
the provider is missing, disabled, not installed, not ready, signed out, cannot run sessions, or is turned off for the project |
limited |
it is itself usage-limited by the same two signals |
same-account |
it is on the limited model's provider instance, on the same harness with the same signed-in email, or in the same provider family |
in-use |
another seat of the conversation, or its lead, already runs that model |
not-independent |
for a QA seat, it is a builder seat's model, on any account |
Nothing outside Favorites is ever picked. With none free the result is a visible notice and the seat waits.
teamChat.substituteFor. A limited lead is handed on: see below.One swap a turn, never a loop: the critique round keeps the stand-in chosen for the contribution round, or the seat sits out if that one is limited too. A mid-turn limit fails the turn as today.
The lead hand-off. leadHandoffCommands (in apps/server/src/delivery/LimitedSeatSwap.ts) issues, in order: the old thread's limit recovery is disarmed (autoResume: false), the thread is forked from the failed run, and the fork's first turn starts on the substitute with "Continue where you left off.". The fork is bound to the same team and carries the lineup. The old thread stays readable and links to the new one. Every id follows from the failed run, so a double click, or the worker and a click together, make one thread. Under Swap automatically a worker does this as soon as the turn fails.
Favorites could not be reordered across providers. Settings, Providers now has a Favorites order list (drag, or the step buttons), on the pattern of the microphone order list. It sends only an order (setModelFavoriteOrder), so a favorite another client starred meanwhile is kept and a removed one is not revived. No new page and no new catalog.
Select: the dropdown is a third instance of the one Critique round and Participants' access use.size="xs" variant="outline", off while it works, hidden without the operate scope, a toast on failure.ComposerBannerStackItems placed directly after the usage limit banner. On mobile the card sits under UsageLimitRecoveryCard and borrows its layout.thread.fork from the failed run.create_with_handoff path: a fork whose first turn runs on another provider already gets the portable handoff summary under its token budget; nothing new summarizes.thread.metadata.update limitRecovery command, and the test uses its own limitRecoveryCommand to prove no resume follows.whenSeatLimited).exhaustedUsageWindow, isProviderAvailable, resolveProjectProviderInstanceEnabled, and the thread shell's lastErrorClass and usageLimitResetAt.MicrophoneOrderList: the pattern for the Favorites order list.Nothing fitted for provider family across harnesses: the web's modelFamily only picks logos, so modelAccountFamily in shared is new.
Targeted tests and typecheck only, per the brief.
packages/shared/src/limitedSeat.test.ts, 11 tests): each exclusion on its own row, the order, none free, both limit signals.NativeTeamChat.test.ts, 8 new): the swap and its note, one per turn (stand-in limited before critique; stand-in kept while free), none free, manual pick stays, Ask me and the agreed substitute, the setting read each turn and its default, board-owned left alone.LimitedSeatSwap.test.ts, 9): order of the hand-off, the recovery disarm (asserted with the recovery worker's own limitRecoveryCommand), one thread for repeated swaps, none free, a non-favorite refused, the unbound conversation, the seat swap, and the two ungoverned cases.runtimeLayer.test.ts, 1 new): a thread failed on a usage limit; the hand-off commands dispatched twice; the result is one forked thread with fork lineage from the failed run and one run on the other provider instance, and the old thread no longer resumes.serverSettings.test.ts, 1 new): reorder without dropping or reviving a favorite.orchestratorChat.test.ts 3 new; OrchestratorLineup.browser.test.tsx 1 new; LimitedSeatNotices.browser.test.tsx 3; limitedSeatNotices.test.ts 4): the default and the profile default, the footer dropdown saving and hidden on a board task, the notice naming the favorite, one command for two presses, the no-free notice, the hand-off link.node scripts/i18n-check.ts: catalogs match in web, mobile and desktop.vp run check:changed (it ran the wide set, because two package manifests changed): format, lint, knip, GraphQL, typecheck of 43 packages and the React compiler check pass. Tests: 752 of 755 passed. The three that did not are timeouts, none in code this PR adds:
apps/web/src/state/delivery.test.ts, two cases, timed out at their module load during the wide run and pass when the file runs alone (41 of 41).ChatView.browser.test.tsx "a shortcut conditioned on rightPanelOpen sees the thread's open right panel" fails when its whole file runs and passes alone. It fails the same way on untouched origin/master (360306b), checked in a temporary worktree.Not verified:
whenSeatLimited (swap, ask, skip) from the team it is given and ignores anything else, so the default is Swap automatically until the engine half adds the field. The field name is this PR's guess and is a one-line change if the engine chooses another.duty. A conversation with no team has no QA seat, so the QA rule does not apply there.lead-pick route, account limit records, and the team setting itself.boardThread. This PR does not touch delivery/BoardTaskThreads*, boardThread*, taskConversation or the archive door, and is based on master, not on feat: a started board task gets its own conversation, bound to the engine's link #189.Built by Claude Fable 5.2 in Claude Code.
🤖 Generated with Claude Code
Independent QA on a separate model from the builder. No product code changed, nothing pushed or merged. Run in a worktree at the head with one web dev server (seeded sandbox .t3, delivery turned on and pointed at a dead engine URL so no real engine was contacted), then the PR's test files one at a time with the server stopped. The Mac's swap was near full the whole time; the server logged event-loop stalls of up to 20s but nothing crashed.
How the limits were reached. No seeding was needed. The sandbox's Codex account really is at its weekly limit (resets 2026-11-23 02:00 UTC), so a Codex seat is limited through the provider's own usage window, and a Codex lead's run really fails with a usage limit. That let me exercise the automatic lead hand-off from a real failing run, not only through the button. Substitutes were a local "Replay (dev)" provider (free) plus Claude Haiku 5.5 for the lead and one seat. Only Codex and Claude can be team seats in this sandbox, so all conversations are teamless (no engine, so no teams).
| # | Check | Result |
|---|---|---|
| 1 | Control in the lineup footer, three options, Swap automatically by default; persists across reload | Pass. Shown in the new-conversation setup and in a started conversation's lineup panel. "Ask me" saved as limitedSeat: "ask" on the lineup and survived a reload. Ordinary chat: no control or notice seen, but only checked before delivery was on. Board task conversation: not reachable without an engine (browser test only). |
| 2 | Ask me, lead | Pass, from a real failing Codex lead run. Notice: "GPT-6-Astra has reached its usage limit / Showcase is free. Swapping continues this conversation in a new linked thread with a summary. / Swap to Showcase". Three fast clicks made exactly one thread limited-lead:run:thread:7bf8e41d...:ordinal:1 on showcase with one "Continue where you left off." message; the client opened it; the old thread's limitRecovery.autoResume is false. |
| 2b | Swap automatically, lead (automatic hand-off) | Pass, from a real failing run (not seeded). The worker forked thread daadbcad... into limited-lead:...:ordinal:1: "Forked from conversation", context handoff "6 Astra to Showcase", first turn ran on Showcase, the lineup came along, the old thread shows "Continued on Showcase" with Open thread and its recovery is disarmed. See finding 2 for a wrong model name on first render. |
| 3 | Ask me, seat | Pass. custom-1 (Codex GPT-6-Astra) sat out with the notice "custom-1: GPT-6-Astra has reached its usage limit / Showcase is free... / Swap to Showcase". After Swap the lineup carries substitute: devReplay/showcase (one write for a fast double-click), the notice reads "custom-1 runs on Showcase", and the next message ran custom-1 on showcase in both rounds with the note "custom-1 runs on showcase this turn: gpt-6-astra has reached its usage limit until ...". The seat record carries teamChat.substituteFor (checked in the projection). |
| 4 | Swap automatically, seat | Not verifiable live. In a teamless conversation every added participant counts as hand-picked (as designed), so seats always ask; an automatic seat swap needs a team from the engine. Covered only by NativeTeamChat.test.ts. The order half was checked live through the offer: after moving "Plan and reads" above "Showcase" in Settings, the seat notices offered "Plan and reads". |
| 5 | Leave it out | Pass. "custom-1: gpt-6-astra has reached its usage limit until ... Left out of this message.", applied from the next message. |
| 6 | Exclusions | Pass for what could be built: same account (GPT-6-Luna, first favorite, skipped for a Codex seat), in use (after the lead moved to Showcase, seats were offered Multi turn instead), hand-picked never swapped without asking (seats asked under Swap automatically). No-free: with Replay disabled, "custom-1: GPT-6-Astra has reached its usage limit / No favorite model is free, so custom-1 waits. Resets tomorrow at 2:00 AM", no button. QA-seat exclusion not reachable (no team stages). |
| 7 | Favorites order | Pass. Settings, Providers, "Favorite models / Favorites order": up/down buttons and drag both reorder; the order is saved to settings and survives a reload; the end buttons are disabled correctly. |
| 8 | Mobile | Not run (memory). |
| 9 | PR test files | All pass, each run alone: limitedSeat.test.ts 11/11, limitedSeatNotices.test.ts 4/4, orchestratorChat.test.ts 14/14, LimitedSeatSwap.test.ts 9/9, NativeTeamChat.test.ts 34/34, LimitedSeatNotices.browser.test.tsx 3/3, OrchestratorLineup.browser.test.tsx 8/8. Also runtimeLayer.test.ts -t "hands a limited lead on" 1/1. |
limitedSeats query's refresh trigger is only the lead thread's latest run (packages/client-runtime/src/state/delivery.ts), and nothing else invalidates it. Repro: in a conversation showing "Swap to Showcase" for a seat, change "When a seat is limited" to Leave it out; after 7s the Swap button is still offered (the lineup file already says skip); it disappears only on reload. The reverse, Leave it out to Ask me, shows no notice until reload or the next message, so the person sends, the seat sits out, and only then sees the button. Same after reordering Favorites or disabling a provider: I reloaded each time to see the new offer. Fix idea: refresh the query on lineup change and on settings or provider status change.status reports continued.modelSelection, which the fork inherits from its source until its first turn updates it, and the client does not read again after that. Self-corrects on reload or the next run, but names the wrong model in the very notice meant to explain the swap.DELIVERY_HARNESS_BY_DRIVER). Here Replay (dev), an acpRegistry provider, was offered and ran both a seat and a handed-on lead. It worked natively, so this is a consistency question: either the pool should share the pickers' filter, or the pickers are stricter than they need to be. Owner's call.OrchestratorLineup.browser.test.tsx.substituteFor, but the rows I could hover after the turn were in the lineage panel, which does not show it./Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws2fwgx-231ebb15.png/Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws2gdje-eb60f501.png/Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws2j2w0-86a577b1.png/Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws2m9u7-51683466.png/Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws2t92k-54ed6d17.png/Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws2up4q-74cf3a34.png/Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws2wh0s-33cfebda.pngQA by Claude Opus 5.5 in Claude Code.
Three commits, pushed on top of the QA head. Finding numbers are QA's; letters are the fix round's.
| Fix | QA finding | Commit | What changed |
|---|---|---|---|
| A | 4, the double-work path | e3289adb13 |
Both sides. Server: the orchestrator refuses a thread.metadata.update that would arm a resume for a run that continues in a linked thread ("This conversation continues in a linked thread. Open that thread instead of resuming this one."), records the recovery worker's own arming of such a run as disarmed, and starts no run for a resume that still reaches it. (Corrected in fix round 2: this held only for the automatic resume at reset. A manual resume from the composer still started a second run on the old thread; see fix round 2.) Clients: the web recovery banner and the mobile recovery card offer no Resume and no Snooze once the continued thread exists. Detection is the hand-off's own: the thread limited-lead:<runId> (limitedLeadHandoffThreadId, moved to @t3tools/shared/limitedSeat so the server and both clients share it). No new state field. A deleted continued thread does not block the old thread's resume, which is then the way on. |
| B | 1, notices do not refresh | e3289adb13 |
The limited-seats read's refresh trigger now also follows the conversation's lineup with its setting, Favorites and project overrides, each provider's status (enabled, installed, ready, signed in, a usage window reaching or leaving its limit), and the continued thread appearing or starting. Wired on web and mobile from the atoms T3 already has (threadBinding, serverEnvironment.settingsValueAtom, providersValueAtom). A usage window merely filling does not refetch. |
| C | 2, "Continued on" the limited model | e3289adb13 |
The status reads the substitute from the continued thread's first run, which is what the hand-off dispatched, not from the thread's model, which is the fork source's until that turn lands. Between the fork and the turn it names the first free favorite, and the client reads again when the continued thread starts. Found on the way: a retried hand-off whose first turn had not landed would have sent it on the limited model; it now picks a free favorite again. |
| D | nit, clipped trigger | 7bd2568dd4 |
Test only. I could not reproduce a cut-off trigger: rendered at the popover's panel width (315px, and 300px for a classic scrollbar), all three triggers sit inside the panel with their values in full, wrapping onto further rows. In QA's own screenshot the dropdown is open and its popup covers the trigger, which may be what was seen. No layout change made. |
| E | nits | e3289adb13, 56a57e0417 |
See below. |
e3289adb13). The old thread runs no more turns, so once its lead is handed on its status carries only the "Continued on" notice. On the new thread the seats are still read against their own limits (and the parent's), so a seat that is limited there keeps its offer.56a57e0417). Notes use the provider's display names. The reset is written as a short date and time with its zone, in the server's zone: the server cannot know each reader's clock or time-format setting, so it names the zone instead of guessing.56a57e0417). A seat's contribution header now reads <instance>/<model>, standing in for <limited model>, which reached its usage limit, where the lead and the critique round read it.QA finding 3: a favorite that cannot be picked as a team seat (the Replay dev provider) can still become a substitute. The owner ruled that the swap pool is the person's Favorites and nothing else, so the pool is unchanged.
No new tests were needed; each is already covered:
OrchestratorLineup.browser.test.tsx (boardOwned), and the server does not govern it (LimitedSeatSwap.test.ts, "does not govern a board task's conversation").policy: null for it (LimitedSeatSwap.test.ts, "does not govern an ordinary chat") and the client shows nothing for that answer (limitedSeatNotices.test.ts). The control itself lives only in the lineup panel, which an ordinary chat does not have.NativeTeamChat.test.ts (the default-setting swap test, now also checking the stand-in attribution).limitedSeat.test.ts, "keeps a QA seat off the builder's model, on any account".runtimeLayer.test.ts (re-arm refused, snooze still allowed, a resume starts no run; the worker's arming recorded disarmed), LimitedSeatSwap.test.ts (substitute named from the dispatched turn, and while the fork has no turn; old thread drops seat offers).state/delivery.test.ts (one case per refresh trigger, a real refetch on lineup, Favorites, provider and hand-off changes, and the hand-off detection).UsageLimitRecoveryBanner.test.tsx (no actions once handed on), OrchestratorLineup.browser.test.tsx (footer fit).UsageLimitRecoveryCard.test.tsx (no Resume or Snooze once handed on).Targeted only, one batch at a time, no dev server. Every test file importing a changed module:
TypeError: statement.stat is not a function (Orchestrator.control-reads.test.ts twice, ProjectionStore.test.ts once): a node:sqlite call this machine's Node (v24.21.0) does not have, in tests this round did not touch. Not checked on another Node.ChatView.browser.test.tsx, "a shortcut conditioned on rightPanelOpen sees the thread's open right panel", times out when the whole file runs. It fails the same way with the QA head's ChatView.tsx and state/delivery.ts put back, and passes alone with or without this round's change, so it is not from this round.limitedSeat.test.ts (11), mobile UsageLimitRecoveryCard.test.tsx (8): all pass.Fix round by Claude Fable 5.2 in Claude Code.
Independent QA, a separate model from the builder. This covers only what the fix round changed; the earlier QA pass stands for the rest. No product code changed, nothing pushed or merged. Same setup as before: worktree at the head, one web dev server on the seeded sandbox, delivery on and pointed at a dead engine URL, no engine. Codex was still at its weekly limit (resets 2026-11-23 02:00 UTC), so it was the real limited provider again. Substitutes were the free Replay (dev) models.
| # | Check | Result |
|---|---|---|
| A | Old thread after a hand-off: no Resume, no Snooze, only the reset text | Pass for the banner. It reads "Usage limit reached / Resets tomorrow at 2:01 AM" plus "Continued on Showcase / Open thread", with no Resume at reset and no Snooze (both old threads, daadbcad and 7bf8e41d). |
| A | Re-arm by any other route | Fail, blocking (finding 1). The composer's send button still reads "Resume thread" on the handed-on thread, and pressing it started a second run there. The old thread went from 1 run to 2. |
| A | Delete the linked thread, old thread resumes again | Pass. After I deleted the linked thread for the latest run, the old thread offered "Resume at reset" and "Snooze until reset" again, plus its seat Swap buttons. |
| B | Setting to Leave it out | Pass. Both Swap buttons and notices were gone about 250 ms after choosing it, with no reload. |
| B | Setting back to Ask me | Pass. "Swap to Plan and reads" was back on both seats about 300 ms later. |
| B | Reorder Favorites | Pass. In a second tab (so the conversation never remounted) I moved Multi turn above Plan and reads; the conversation's offers read "Swap to Multi turn" on the first check, with no new run. Order restored afterwards. |
| B | Provider change | Pass. With Replay (dev) disabled the offers switched to "Swap to Claude Haiku 5.5"; re-enabled, they went back to "Plan and reads". No reload. |
| C | Automatic hand-off names the real substitute at once | Pass. The second hand-off caused by finding 1 showed "Continued on Plan and reads" straight away, and its run did run on devReplay/todo-list (Plan and reads). No reload. |
| D | Setup popover footer triggers | Not clipped; my earlier finding was wrong. With nothing open, all three triggers sit inside the 362 px panel ("When a seat is limited" spans 489 to 650 px against a right edge of 679 px) and read "First message only", "Read-only", "Swap automatically" in full. My earlier screenshot shows the open listbox covering the trigger, as the builder said. The second row sits below the panel's scroll fold until you scroll. |
| E | Old thread shows no seat Swap buttons | Pass on both handed-on threads (they come back only once the linked thread is gone, as above). |
| E | Turn notes with model names | Pass. New turns read "custom-1: GPT-6-Astra has reached its usage limit until Nov 23, 2:00 AM GMT. Plan and reads is free: ..." and "custom-1 runs on Plan and reads this turn: GPT-6-Astra has reached its usage limit until Nov 23, 2:00 AM GMT." Notes written before the fix keep the old slug wording, which is expected. |
daadbcad (handed on to limited-lead:run:thread:daadbcad-...:ordinal:1), with an empty draft the send button is labelled "Resume thread" (ComposerPrimaryActions.tsx:390, ChatComposer.tsx:1336; Enter does the same). One press dispatched a turn with manualContinuationOfRunId = run 1, and the server accepted it: run ...daadbcad...:ordinal:2 started on Codex GPT-6-Astra, hit the limit again, and the automatic hand-off fired again into a second linked thread, limited-lead:run:thread:daadbcad-...:ordinal:2, which completed on Plan and reads. So the old thread no longer has exactly its original run, and the conversation was continued twice in two linked threads. Cause: runHandedOn guards the recovery update and usageLimitContinuationOfRunId but not the manualContinuationOfRunId check (apps/server/src/orchestration-v2/Orchestrator.ts:7255). The client gates only the banner (handedOn in UsageLimitRecoveryBanner), not the composer's canResume. Fix idea: refuse a manual continuation of a handed-on run with the same message, and drop the composer's resume while limitedLeadHandedOn is true. The same "Resume thread" button is also on the other old thread, 7bf8e41d (not pressed). Here the provider was still limited, so the duplicate ended in a second hand-off; with a provider that had recovered, the old thread would have done the work itself alongside the linked thread.limitedSeatPool without runsOn (apps/server/src/delivery/LimitedSeatSwap.ts:238 and :362), so a substitute already covering another seat is not counted as in use; the turn path passes it (NativeTeamChat.ts:350). I missed this in the first pass.thread.metadata.update with limitRecovery.autoResume: true: there is no CLI for it and I did not hand-craft a WebSocket command. Covered by the round's runtimeLayer.test.ts only. The banner offers no route to it.usageLimitContinuationOfRunId): needs the reset to pass; tests only./Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws4ub0e-780ad59d.png/Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws4v9mx-8c6a5047.png/Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws4wl4v-c3ce2b62.png/Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws4z4ud-bf6a53ef.png/Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws518lw-33bd68ae.png/Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws52qok-2e305307.pngSandbox state left behind: the extra run on daadbcad, the deleted second linked thread, and three spot-check turns on limited-lead:run:thread:7bf8e41d-...:ordinal:1, whose seats now both carry Plan and reads as their substitute. Favorites order and Replay (dev) were restored.
QA spot check by Claude Opus 5.5 in Claude Code.
Two commits, pushed on top of the spot-check head. QA's blocking finding 1 and its non-blocking finding 2.
| Fix | QA finding | Commit | What changed |
|---|---|---|---|
| A, B | 1, the composer resumes a handed-on thread (blocking) | 37dfbec076 |
Server: while a thread's latest limited run continues in a linked thread, the thread is read-only, as an archived one is. The orchestrator refuses every message.dispatch to it (a typed message, the composer's Resume thread, the CLI, MCP tools, a steer, a scheduled task, a queued continuation from a metadata update) with OrchestratorThreadHandedOnError: "This conversation continues in a linked thread. Open that thread instead of resuming this one." It is the sibling of #187's OrchestratorThreadArchivedError, sits in dispatchMessage where the thread's runs are already loaded, and is in ThreadMessageIntake's not-accepted list, so a refused send keeps its draft and attachments. The server's own follow-ups (a usage-limit or restart continuation, a steer follow-up, a notification, an idle compaction) are not refused: each settles quietly on such a thread and starts no run. The key is runHandedOn on the thread's latest executed run when it failed, so deleting the linked thread reopens the old one. Cost on the ordinary path: nothing unless the latest run failed, then one lookup by id. Web: the composer of a handed-on thread shows the notice "This conversation continues in a linked thread" with Open thread, its send is disabled with that reason, and canResume is false, so the button no longer reads "Resume thread" and Enter on an empty draft resumes nothing. Mobile: the same notice card with Open thread above the composer, the send blocked with that reason, and no Resume action. |
| C | 2, a seat offered the model another seat stands in on | bd56252fff |
One helper, agreedStandIn in packages/shared/src/limitedSeat.ts: what a limited seat stands in on by agreement (its agreed substitute, where the seat asks before it swaps). The status read and the swap now pass it to limitedSeatPool as runsOn, so a model another limited seat already agreed to is in-use: it is never offered, and a swap to it is refused with " is no longer free. Choose again from the notice." The turn reads other seats through the same helper, so a seat earlier in the roster is not offered a later seat's agreed substitute either; before, the turn only counted seats it had already started. |
OrchestratorThreadArchivedError, refuseArchivedThreadMessage and its ThreadMessageIntake entry are the pattern for the server half. The two now share one predicate, isServerFollowUp, for what counts as the server's own follow-up.ComposerArchivedThread (the banner item and the send-disabled reason): ComposerHandedOnThread is its sibling, placed in the same slot of the composer banner stack and of sendDisabledReason.Button size="xs" variant="outline", the existing "Open thread" string and the same navigation) for the action; on mobile the limited-seat card's NoticeAction and its stack push.limitedLeadHandedOn from fix round 1 for detection on both clients. No new state field and no new RPC.runtimeLayer.test.ts, the existing hand-on case extended): on the old thread a manual resume (manualContinuationOfRunId), a typed message and the send the CLI and tools make are each refused with OrchestratorThreadHandedOnError and the sentence; the thread keeps exactly its original run and its one message; after thread.delete of the linked thread a message is accepted and starts a second run.ChatView.handedOnSend.browser.test.tsx, mirroring ChatView.archivedSend.browser.test.tsx): on a stopped thread that was handed on, the notice is visible, there is no "Resume thread" button, Enter on an empty draft and on a typed draft sends nothing, the send is disabled with the reason, and Open thread opens the linked thread. A stopped thread that was not handed on still shows Resume thread and still sends.LimitedSeatSwap.test.ts): with two limited seats, once the first agrees to a model the second is no longer offered it, and a swap to it is refused as no longer free and writes nothing.NativeTeamChat.test.ts): a seat earlier in the roster is not offered the substitute a later seat agreed to, and the later seat runs on it.Targeted only, one batch at a time, no dev server. Every test file importing a changed module:
Orchestrator.control-reads.test.ts with TypeError: statement.stat is not a function, the same node:sqlite gap on this machine's Node that fix round 1 recorded.ChatView.browser.test.tsx, "a shortcut conditioned on rightPanelOpen sees the thread's open right panel", the timeout already recorded as failing on untouched master.limitedSeat.test.ts (11) and client runtime state/delivery.test.ts, limitedSeatNotices.test.ts (11): all pass.i18n:check clean. Format, lint and knip clean on the commit hooks.t3 binary or through ThreadManagementService.sendToThread, which adds nothing between.gt generate rewrote them.Fix round 2 by Claude Fable 5.2 in Claude Code.
One commit, b503edd078. The lead's review of fix round 2 found that the message guard covered only message.dispatch.
| Fix | Commit | What changed |
|---|---|---|
| A, the queue | b503edd078 |
A queued run starts through startNextQueuedRunOnce, which the message guard never saw. Beside its archived and deleted check it now starts no queued run while the thread's latest executed run is failed and continues in a linked thread. That is the one place every caller passes: queue.resume, queued-run.start, a runtime mode change under a ceiling, recovery at server start, wakes and run-end handlers. The two explicit commands are also refused in their handler with OrchestratorThreadHandedOnError and the same sentence, "This conversation continues in a linked thread. Open that thread instead of resuming this one.", so a CLI or tool caller learns why. Automatic callers settle quietly. Deleting the linked thread gives the queue back. One detection, handedOnTo, now serves the message guard, the queue and the two commands. |
| B, a delegated result | b503edd078 |
A delegated task's result for a run that was handed on is disposed, as on an archived parent: no wake message, no queued run, no offer to the provider, no error on the delivery. A delivery already under way when the hand-off happens settles quietly at message.dispatch instead of being refused. |
Reading the code for the test showed the gap is narrower than the review described, and the guard is still right. While the limited run is the thread's latest executed run, usageLimitHoldsQueue already holds a queued run on the same provider, for the explicit commands and for the automatic callers, before and after the reset (queue.resume answers "Continue the limited thread before resuming its queue."). What was open is a queued run whose provider is not the limited one: nothing held it, so any of those callers started it on the old thread. The test builds exactly that case.
runtimeLayer.test.ts, "the queue of a handed-on thread"): a message is queued behind the limited run, the hand-off happens, and the queued run is one the limit does not hold. queue.resume and queued-run.start are each refused with the error and the sentence; a runtime mode change and resumeQueuedRuns start nothing; the old thread keeps its failed run and its queued run, still queued. After thread.delete of the linked thread, queue.resume starts the queued run. Checked both ways: with the choke-point guard removed the mode change starts the run, and with the handler refusal removed the commands are not refused.RemoteDelegatedTask.test.ts): a task whose parent run failed and was handed on completes with its result recorded, its delivery disposed, no new message, no new run and no offer. Without the fix the delivery is claimed.Orchestrator.ts, 64 files in one batch capped at four workers: 2033 pass, 2 skipped, 2 fail. The 2 failures are Orchestrator.control-reads.test.ts with TypeError: statement.stat is not a function, the node:sqlite gap on this machine's Node recorded in rounds 1 and 2.t3 binary; proven by tests only.Orchestrator.control-reads.test.ts cannot run on this machine, and one of its two cases ("starts, finishes and follows up a task without reading the parent's history") measures the reads of the path B touches. B was written to add none on a live parent run (it looks up the linked thread only when the spawning run failed), but that test did not confirm it here. CI will.Fix round 3 by Claude Fable 5.2 in Claude Code.
Independent QA, a separate model from the builder. A focused re-check of my blocking finding and of the paths added since; the earlier QA sections stand for the rest. No product code changed, nothing pushed or merged. Same setup: worktree at b503edd078, one web dev server on the seeded sandbox, delivery on and pointed at a dead engine URL, no engine. Codex was still really at its weekly limit (resets 2026-11-23 02:00 UTC), so no seeding was needed. Commands the UI does not expose were sent from the page over the client's own WebSocket (orchestration.dispatchCommand, delivery.swapLimitedSeat), with the same payloads the client builds. The server logged event-loop stalls of up to 18s; nothing crashed.
My blocking finding is fixed: the handed-on thread has no Resume thread, and every route I could reach to start a run there was refused or started nothing.
| # | Check | Result |
|---|---|---|
| 1 | Composer of the handed-on thread 7bf8e41d |
Pass. It shows "This conversation continues in a linked thread" with Open thread. The send button has no "Resume thread" label: it is disabled, with that sentence as its label. Enter on an empty draft, Enter on a typed draft, and a forced submit (send re-enabled in the DOM, clicked, plus a form submit event) sent nothing. The typed draft was kept. Open thread opened limited-lead:run:thread:7bf8e41d-...:ordinal:1. |
| 1 | Other routes on that thread | Pass. t3 thread send (the CLI, through the server's t3_thread_send): "Unable to send to thread ...: This conversation continues in a linked thread. Open that thread instead of resuming this one." Over the socket, refused with the same sentence: message.dispatch with manualContinuationOfRunId (the route of my finding), a typed message queued after active, a steer, queue.resume and queued-run.start. A usageLimitContinuationOfRunId dispatch was accepted and a thread.runtime-mode.set succeeded; neither started a run, as designed. Afterwards the thread still had exactly 1 run (failed, Codex) and 1 message. |
| 2 | The queue | Pass, produced for real. On daadbcad (reopened earlier) I sent message A on Codex and, before it failed, queued B on Codex and C on Replay (Plan and reads), which is the case fix round 3 closed. A failed on the limit and handed on to limited-lead:run:thread:daadbcad-...:ordinal:3 (completed on Replay). B and C stayed queued and started nothing on their own, including after the run-end handlers and a wait. queue.resume, queued-run.start on B and on C were each refused with the sentence. Two runtime mode changes started nothing. The queued rows' Send now was refused with a toast carrying the sentence (finding 1). After deleting the linked thread, the limited-lead notices and the seat Swap buttons came back; queue.resume then answered "Continue the limited thread before resuming its queue." because B (Codex) heads the queue, which is the existing limit hold; queued-run.start on C started it and it completed on the old thread. |
| 3 | A seat's result after the hand-off | Not verified. I could not arrange a seat still running when the lead hands off. On this thread no delegated seat turns ran, and in the team-chat flow the seats contribute before the lead starts, so a Codex lead fails only after they finish. Covered by the round's RemoteDelegatedTask.test.ts only. |
| 4 | The seat notice | Pass. Both limited seats were first offered Showcase. After I swapped custom-1 to Showcase ("custom-1 runs on Showcase"), custom-2's notice offered "Swap to Multi turn" instead. A forced delivery.swapLimitedSeat of custom-2 to Showcase was refused: "showcase is no longer free. Choose again from the notice." (finding 2). |
| 5 | Regression | Pass. Once its linked thread was gone, daadbcad took a typed message from the composer and ran it (run 6, completed). The offer order follows Favorites: Plan and reads is the lead's own model on that thread, so seats were offered Showcase, then Multi turn, the next Favorites in order. I did not reorder Favorites again this round. |
| 6 | Tests, server stopped, one at a time | Pass. LimitedSeatSwap.test.ts and NativeTeamChat.test.ts: 47 of 47. ChatView.handedOnSend.browser.test.tsx: 2 of 2. |
daadbcad while handed on, each queued row showed Send now (and edit and cancel). Pressing it showed "Could not send queued message: This conversation continues in a linked thread. Open that thread instead of resuming this one." and started nothing. That is safe, but the composer hides its resume there, so the queue could hide or disable Send now too./mcp (it needs an MCP client session). The CLI path covers t3_thread_send; t3_queue resume was checked only as the queue.resume command it dispatches./Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws7n8uy-3a439be0.png/Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws7np2j-515af93e.pngdaadbcad: /Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws7u0pi-8aa3ba74.png/Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws7ua6a-ba8f25d7.png/Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws7w304-d72b3f59.png/Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws7wzpq-a4fcbde0.pngSandbox state left behind: on daadbcad, runs 3 to 6 and queued B (Codex, still held), the deleted linked thread for run 3, and custom-1 agreed onto Showcase. A one-off bearer session labelled qa-recheck (2h TTL) was issued on the sandbox server and its token file deleted.
QA re-check by Claude Opus 5.5 in Claude Code.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The orchestrator lineup footer gains "When a seat is limited" beside Critique round and Participants' access, on the same Select: Swap automatically (the default), Ask me, Leave it out. It is saved on the conversation's lineup, so it is read at the start of each turn and applies from the next message. A new conversation starts from the team profile's whenSeatLimited when the engine serves one. A board task's conversation does not show the control: its team's own setting decides there. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Provider settings gain a Favorites order list: the starred models across providers, first choice first, moved by drag or by the step buttons, on the pattern of the microphone order list. The order is what a limited seat's swap follows. Only the order is sent (setModelFavoriteOrder), so a favorite another client starred meanwhile is kept and a removed one is not revived. Co-Authored-By: Claude Fable 5.2 <[email protected]>
…avorite NativeTeamChat's seat admission now treats a usage-limited model as unavailable. The signal is T3's own: the provider status windows, and the usage_limit failures of the conversation's seats and fork parents. What happens next is the conversation's setting: - Swap automatically: the seat's child thread starts on the first Favorite that is available, not limited, not on the limited model's account or provider family, not run by another seat or the lead, and, for a QA seat, not a builder seat's model. A note on the turn says which model stands in and why, and the seat's record carries substituteFor. - Ask me, or a model chosen by hand: the seat sits out with a notice naming the free favorite; a substitute the person agreed to is used. - Leave it out: the seat sits out. A seat is swapped once a turn: the critique round keeps the stand-in or the seat sits out. With no favorite free the seat waits with a notice. A board task's conversation is left to its team's own setting. Co-Authored-By: Claude Fable 5.2 <[email protected]>
…avorite When a team conversation's lead fails a turn on a usage limit and the conversation swaps automatically, the server hands the work on: the old thread's limit-recovery resume is disarmed, the thread is forked from the failed run through the existing fork path, and the fork's first turn starts on the first free favorite. A fork onto another provider already carries the ContextHandoffService summary under its token budget, so nothing new summarizes. The fork keeps the team binding and the lineup. Every id follows from the failed run, so a repeat makes one thread. delivery.limitedSeats reports which seats and lead are limited and what could stand in; delivery.swapLimitedSeat is the one click, for a seat (it records the substitute the person agreed to) and for the lead (the hand-off). Both are refused for a model that is not a free favorite. An orchestrator test runs the hand-off commands twice against a real failed usage-limit run. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Beside the usage limit banner, a team conversation now says which of its seats or its lead has reached a limit and what T3 can do about it. Under Ask me, or for a model chosen by hand, the notice names the first free favorite and swaps to it in one click, built like the provider Fix button: off while it runs, hidden where threads cannot be run, and backed by a command that is safe to repeat, so a second press makes no second thread. With no favorite free the notice says the seat or the conversation waits. A lead that was handed on links to the thread it continues in. Mobile shows the same notices from the same wording and follows the thread's setting; the setting itself is chosen on the desktop or web. A seat's card in the timeline says when a substitute ran in its place. The notices are read from delivery.limitedSeats and follow the thread's latest run through the query's refresh trigger. New strings are in every web and mobile catalog, machine-translated. Co-Authored-By: Claude Fable 5.2 <[email protected]>
…m; document the setting A run's failure and its usage-limit error are separate events and may land in either order, so the hand-off worker now reacts to both. The hand-off is safe to repeat, so the second event changes nothing. The composer guide gains a paragraph on When a seat is limited and Favorites order. Co-Authored-By: Claude Fable 5.2 <[email protected]>
…ces stay current A limited lead handed on to a linked thread could still be re-armed from the old thread's recovery banner, so the same work would run in two threads. The orchestrator now refuses to arm a resume for a run that continues in a linked thread, records the worker's own arming of one as disarmed, and starts no resume for it. The web banner and the mobile card offer no resume or snooze once the continued thread exists. The limited-seats read now refreshes when the lineup or its setting, Favorites or a provider's status changes, and when the continued thread appears or starts, on web and mobile. After an automatic hand-off the old thread named the limited model, because the fork carries its source's model until its first turn lands. The status now names the model the hand-off started. A retried hand-off also no longer sends its first turn on the limited model, and the old thread drops its seat offers. Co-Authored-By: Claude Fable 5.2 <[email protected]>
…width Co-Authored-By: Claude Fable 5.2 <[email protected]>
…, and say who stood in The notes wrote model ids and raw ISO times. They now use the provider's display names and a readable reset time with its zone. A seat's contribution also says which model it stood in for, so the lead can attribute it. Co-Authored-By: Claude Fable 5.2 <[email protected]>
…in on The notice and the swap built a seat's pool without what other seats run on, so a model one seat already stood in on by agreement was offered to a second seat, the swap was accepted, and the next turn left that seat out. The notice, the swap and the turn now read another limited seat through one helper, agreedStandIn, and count its agreed substitute as in use. Co-Authored-By: Claude Fable 5.2 <[email protected]>
…s no message The composer of a handed-on thread still read Resume thread, and one press ran the limited run again beside its linked thread. The orchestrator now refuses every message sent to a thread whose latest limited run continues in a linked thread, from a person, the CLI or a tool, with one sentence; its own follow-ups settle quietly there and start nothing. Deleting the linked thread reopens it. The web and mobile composers show a notice with a way to the linked thread, disable the send and offer no resume. The notice is translated by the model in the ten catalogs; no native speaker has read it. Co-Authored-By: Claude Fable 5.2 <[email protected]>
…m its queue A queued run starts through startNextQueuedRunOnce, which the message guard never saw. It now starts none while the thread's latest limited run continues in a linked thread, for every caller: queue.resume, queued-run.start, a runtime mode change, recovery, wakes and run-end handlers. The two explicit commands are refused with the sentence the message refusal uses. A delegated task's result for a run that was handed on is disposed, as on an archived parent: no wake, no run, no error on the delivery. Co-Authored-By: Claude Fable 5.2 <[email protected]>
# Conflicts: # apps/server/src/ws.ts # packages/contracts/src/delivery.ts
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.