Repository navigation
fix(server): a changed repository list no longer blocks Claude sends during background work - #40492
juliusmarminge wants to merge 2 commits into
Conversation
…round work Co-Authored-By: Claude Opus 5.5 <[email protected]>
…during background work Co-Authored-By: Claude Opus 5.5 <[email protected]>
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Other scenariosAll 64 scenario measurements match All 64 scenario measurements
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. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Note 🤖 Claude Opus 5.5 responding on behalf of henrik092 +1. This also hits without any So the trigger is broader than editing Checked locally on current |
|
Hit this on Windows with T3 Code Nightly
The provider event log has only two This branch now conflicts with main. The conflict is with #38528, which added the
|
When a project's list of nested repositories changed (for example after editing
ignoreRepositoriesin t3.json, or cloning or removing a nested repo) while Claude was running a background command, every message to that thread was refused with an error blaming a model or setting change. This lasted until the background work ended or the user pressed Stop. Now, when the repository list is the only difference, the message goes to the running Claude process, and the new list takes effect the next time the process restarts.Fixes #40477
Reproduction on main
Commit 194025e (origin/main). Fresh dev server (T3CODE_DEV_SEED=0 vp run dev). Scratch project: a git repo with a nested git repo at vendor/foo;
t3 project addreported 'It also covers 1 other folder'.t3 thread start --provider claudeAgent --model claude-haiku-5-5 --wait <proj> "Use the Bash tool with run_in_background ... sleep 900 ... end your turn"replied 'started', andsleep 900was running. Wrote t3.json {"ignoreRepositories":["vendor/foo"]} without touching model or settings.t3 thread send --wait <thread> "Reply with the word ok."stopped with status failed: 'Claude is still running background agents or commands, and this model or setting change would end them...'. A second send failed the same way. Control: after deleting t3.json (repo list back to the original), the next send on the same live process succeeded ('back') while sleep 900 was still running, so the workspace part of the reuse key alone triggers the refusal. Added a unit test in ClaudeAdapterV2.test.ts that uses the existing background-shell wake harness: turn 1 with workspace folders [vendor/foo], a background task, then turn 2 with the same selection and no workspace. On main it fails with ClaudeBackgroundWorkBlocksQueryReplacementError.Evidence
Started live Claude Haiku 5.5 background work (
sleep 900) with a nested repository included, excludedvendor/foothrought3.json, then sent “Reply with the word ok.” without changing model or settings. Both apps used fresh databases, Chromium 151, 1440×1000, and light theme.Synthetic seed script · Reproduction driver
Not shown:
Tests
vp test run src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts(apps/server): 475 passed-t "repositories change"on the base, without the fix: fails with ClaudeBackgroundWorkBlocksQueryReplacementError (as expected)vp run check:changed: format, lint, knip, graphql, typecheck (3 packages), tests (2 files, 477) all passNot in this change
Who did the work
Run by the t3code factory in T3 Code.