fix(threads): keep completed requests closed across clients - #10123
Conversation
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a focused fix to pending approval and user-input lifecycle handling across web and mobile, with the shared reducer and its ordering behavior covered by dedicated tests. The change preserves existing interfaces and data while avoiding schema, deployment, security, billing, and configuration impact. You can add or adjust custom eligibility rules. Learn more. |
93417f7 to
6a92a4b
Compare
6a92a4b to
b719312
Compare
66170fe to
d858532
Compare
b719312 to
8a875c2
Compare
8a875c2 to
ea4c7c3
Compare
Bugbot is paused — on-demand spend limit reachedBugbot uses usage-based billing for this team and has hit its on-demand spend limit. A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue. |
Web and mobile each had their own reducer for pending approvals and questions. The mobile copy lacked two of the stale-request failure fragments web matches and did not map dynamic_tool_call approvals, so a request could stay open on one client after another client answered it. Move the reducer into packages/client-runtime as derivePendingRequests. It keys on request ID, treats a resolved or stale-failed request as final even when activities arrive out of order, and is used by web, desktop, and mobile. The server is unchanged. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
ea4c7c3 to
7741079
Compare
## What's Changed * feat(usage): pool subscription limits per provider across accounts and environments by @juliusmarminge in pingdotgg/t3code#10300 * chore(web): remove usage limits demo fixtures by @juliusmarminge in pingdotgg/t3code#10330 * fix(web): expose error disclosure state by @saphid in pingdotgg/t3code#10125 * fix(web): name the editor picker accurately by @saphid in pingdotgg/t3code#10124 * fix(web): make task row states readable by @saphid in pingdotgg/t3code#10128 * fix(web): explain hosted connection prerequisites by @saphid in pingdotgg/t3code#10129 * fix(web): name combobox chip removal targets by @saphid in pingdotgg/t3code#10127 * fix(marketing): present the Git workflow as an illustration by @saphid in pingdotgg/t3code#10130 * feat(mobile): pool usage limits across selected environments by @juliusmarminge in pingdotgg/t3code#10334 * fix(release): space automatic nightlies at least six hours apart by @t3dotgg in pingdotgg/t3code#10272 * refactor(web): share bulk thread deletion between sidebars by @t3dotgg in pingdotgg/t3code#10106 * refactor(client): share tool outcome rules by @t3dotgg in pingdotgg/t3code#10122 * refactor(server): share Claude result status and error mapping by @t3dotgg in pingdotgg/t3code#10296 * fix(server): settle inactive threads without a PR lookup by @t3dotgg in pingdotgg/t3code#10103 * fix(ssh): report remote stop failures without losing ownership by @t3dotgg in pingdotgg/t3code#10105 * perf(server): stop scanning old OpenCode parts by @t3dotgg in pingdotgg/t3code#10116 * perf(server): avoid full thread reads on turn start by @t3dotgg in pingdotgg/t3code#10108 * perf(web): skip checkpoint map rebuilds while streaming by @t3dotgg in pingdotgg/t3code#10118 * perf(server): skip plan bodies in thread summaries by @t3dotgg in pingdotgg/t3code#10341 * fix(server): skip disabled provider instances for text generation fallback by @t3dotgg in pingdotgg/t3code#10346 * fix(server): capture checkpoints before refreshing PR status by @t3dotgg in pingdotgg/t3code#10347 * fix(web): keep manual panel choices during a turn by @t3dotgg in pingdotgg/t3code#10113 * fix(threads): keep completed requests closed across clients by @t3dotgg in pingdotgg/t3code#10123 * perf(server): finish runtime messages without full thread reads by @t3dotgg in pingdotgg/t3code#10120 * refactor(server): let adapters declare context compaction by @t3dotgg in pingdotgg/t3code#10112 * fix(server): link thread PRs without an open client by @t3dotgg in pingdotgg/t3code#10101 **Full Changelog**: pingdotgg/t3code@v0.0.39-nightly.20260906.1293...v0.0.39-nightly.20260906.1303 Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.0.39-nightly.20260906.1303
Web and mobile each had their own reducer for pending approvals and questions. The mobile copy lacked two of the stale-request failure fragments web matches and did not map
dynamic_tool_callapprovals, so a request could stay open on one client after another client answered it.The fix moves the reducer into
packages/client-runtimeasderivePendingRequests. It keys on request ID, treats a resolved or stale-failed request as final even when activities arrive out of order, and is used by web, desktop, and mobile. Tests for the reducer move with it.Removed from the original version: the typed
reasonfield on respond.failed payloads, theProviderAdapterRequestNotFoundErroracross the six adapters, the decider invariant, the projector retention change, and the snapshot query changes. Those touched server orchestration and contracts for a client-side bug, and the client already closes requests from the existing failure text. The server is unchanged.Reworked by Claude Fable 5.1 in Claude Code.
Note
Keep completed requests closed across clients with shared
derivePendingRequestsreducer./pending-requestssubpath.parseQuestionsandisStaleRequestFailureutilities; malformed question/option entries are discarded and native answer keys are preserved without trimming.derivePendingRequestsonce instead of separate approval/user-input derivation functions; consumers must destructure{ approvals, userInputs }from the new result shape.Macroscope summarized 7741079.