Repository navigation
Description
What happened
A thread whose PR had merged hit a provider usage limit. In the same second the run failed, the auto-settle sweep settled the thread. The usage-limit banner still offered "Resume at reset" and "Snooze until reset", but every press failed with "The provider limit changed before recovery could be configured." The limit had not changed.
Diagnosis
Three defects combine:
isAutoSettlementCandidate(ThreadSettlementService.ts) does not skip a thread whose latest run failed withusage_limit. The failure ends the run that kept the thread active, andpullRequestSettlespasses because the PR merged after the last user-authored message. A usage limit interrupts work; settling there defeats limit recovery, since settled threads are deliberately excluded from it (recovery guard,UsageLimitRecoveryWorker, storage cleanup hold).- The web banner (
ChatViewlimitRecoveryBanner) and mobileUsageLimitRecoveryCardshow the recovery actions on a settled thread, which the server always refuses. - The
limitRecoveryguard inOrchestrator.tsreports the settled case with the shared "provider limit changed" message, which names the wrong cause.
Why settle-on-merge fired: runs 2 to 4 came from PR-watch and system wakes, so the latest user-authored message predated the merge although the thread was still working through a multi-PR task.
Steps to reproduce
- Leave settle-on-merge at its default.
- A thread opens a PR that merges, then keeps working on PR-watch or system wake runs with no new user message.
- A later run fails with a provider 429 that carries a reset time.
- The thread shows "Settled" beside the usage-limit banner.
- Press "Resume at reset" or "Snooze until reset". It fails with "The provider limit changed before recovery could be configured."
Version
0.1.7-nightly.20261031.3991 (server, commit 15fe283)
Environment
macOS arm64 (Darwin 27), background server; client T3 Code Desktop 0.1.7-nightly.20261031.3991 on Linux; claudeAgent via a custom inference gateway
Evidence
server.trace.ndjson, UTC:
- 20:46:13 run 4 fails, error item
failure.class: usage_limit,resetAt21:10:17 - 20:46:13
ThreadSettlementServiceV2.sweepdispatchesthread.auto-settle(Success); the user sent nothread.settle - 20:49:15, 20:49:17, 20:51:17, 20:51:51 four
thread.metadata.updatewithlimitRecoveryfail: "The provider limit changed before recovery could be configured." - 21:10:15 a user message un-settles the thread and run 5 starts
Reproduced on main with scripts/seed-issue-21397.py: settle the limited fixture thread, press Resume at reset, same error.
Related issues
#17808, #14169, #24232. Fix PRs: #28359 (auto-settle), #28360 (banner and message)
Fix applied or workaround
Un-settle the thread first, then press Resume at reset, or send a message. Turning off settle-on-merge avoids it.

Activity
camescasse commentedon Nov 2, 2026
Additional confirmation from another user on stable T3 Code 0.1.6, with persisted events establishing that the server automatically settled an unfinished, usage-limited thread.
Environment
7.2.11-arch1-1; T3 Code Desktop connected to its local server, both0.1.6(commit2359643cffa6ba9ee84d6f2694b935de54a8013e).v26.12.1; Claude Code2.1.316;claudeAgent/claude-opus-5-5through a custom API endpoint.autoResumeLimitedThreads: true. Settle-on-merge was not overridden in the settings file, so the release default,sidebarAutoSettleOnMerge: true, applies.Observed sequence, 2026-11-02, UTC
The second settlement happened 50 ms after the usage-limit failure. Server traces independently show successful
thread.auto-settledispatches at both settlement times. The settlement event also detached the provider session with reasonThread settled.All four linked PR snapshots were merged; their merge times were 07:29, 07:37, 13:05, and 14:53 UTC that day. The parent was still handling ongoing work and delegated completions when the rate limit occurred.
In the matching release, isAutoSettlementCandidate does not exclude usage-limit failures. Once running work ends, the merged-PR settlement path can settle the thread.
This case confirms the automatic-settlement defect. Unlike the original report, these failures had
resetAt: null, so recovery-button rejection was not reproduced: the banner instead saidReset time unavailable; retry manually. The missing-reset path is also reported in #26574. Settled threads are independently excluded from recovery.