GeezerVison is showing github.com — fix(server): agents see a repaired provider without a client open by t3dotgg · Pull Request #15930 · pingdotgg/t3code
Conversation
An agent working unattended could not delegate to Claude after it repaired the claude CLI. delegate_task and orchestrator_capabilities kept returning "Claude Agent CLI (claude) was not found on PATH" for about 45 minutes. The agent then ran claude subprocesses outside T3, which bypassed task tracking and cancellation.
The cause: provider snapshots re-probe on a timer only while a client is in the foreground. The orchestrator MCP tools read that cache and never re-probe. With nobody watching, a repaired provider stayed "not installed" until Theo came back.
Fix
Before T3 tells an agent that a provider cannot run, it re-probes that provider.
orchestrator_capabilities re-probes enabled instances that look unavailable. Healthy instances stay cached, so the normal path costs nothing extra.
delegate_task and create_threads resolve against the cache first. Only on provider_unavailable do they re-probe the instances the target could use, then try once more.
- Disabled instances and instances with no adapter are never re-probed, since a probe cannot change them.
- Concurrent callers that saw the same stale snapshot share one probe per instance. This uses the shared
KeyedLock and a checkedAt comparison.
Proof
- New test in
OrchestratorMcpService.test.ts: a still-broken target is re-probed and refused, an unrelated broken provider is not probed, a repaired CLI is seen by both capabilities and delegate_task, and three concurrent callers share one probe per instance. Ordering uses Deferred hooks, with no sleeps.
- The test fails if you remove the retry, re-probe every provider, or remove the dedupe.
- A real-binary repro, not committed: the real Claude probe returns the exact incident message for a dangling
claude symlink on PATH, then reports installed after the symlink is fixed.
tsc --noEmit passes in apps/server. Lint and format pass. vp test run src/mcp/ passes 198 of 198.
Reviewed with sol-loop: 2 rounds with GPT-6.1 Sol on xhigh.
Created with Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…lable
Provider snapshots only re-probe on a timer while a client is in the
foreground. An unattended agent that repaired a provider CLI kept getting
"not installed" from delegate_task and orchestrator_capabilities, and fell
back to running the CLI outside T3.
The orchestrator MCP service now re-probes enabled instances that look
unavailable before it reports them to an agent. Healthy instances stay
cached.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
macroscopeapp
Bot
commented
Oct 5, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Approvability
Verdict: Approved at c1877b6
Macroscope's review found this PR approvable — This is a contained server bug fix that rechecks stale unavailable provider snapshots before rejecting agent work, while preserving cached healthy-provider behavior and deduplicating concurrent probes. The production change is isolated and supported by targeted tests covering repaired, unavailable, unrelated, and concurrent-provider scenarios.
Notes:
- Diff unchanged. Approvability was decided on eligibility alone.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Thread transfer impact
✅ Thread transfer remains within every enforced ceiling.
| Provider |
Metric |
Main baseline |
This PR |
Impact |
PR ceiling |
|
| Codex |
Total thread wire |
4.9 KiB |
5.0 KiB |
+40 B (+0.8%) |
6.8 KiB |
✅ |
| Codex |
Thread snapshot wire |
3.8 KiB |
3.8 KiB |
0 B (0.0%) |
4.9 KiB |
✅ |
| Codex |
Live turn WebSocket wire |
1.2 KiB |
1.2 KiB |
+40 B (+3.4%) |
2.0 KiB |
✅ |
| Codex |
Live turn WebSocket decoded |
20.8 KiB |
20.9 KiB |
+41 B (+0.2%) |
29.3 KiB |
✅ |
| Codex |
Live turn messages |
1 |
2 |
+1 (+100.0%) |
8 |
✅ |
| Claude |
Total thread wire |
5.0 KiB |
5.0 KiB |
0 B (0.0%) |
6.8 KiB |
✅ |
| Claude |
Thread snapshot wire |
3.8 KiB |
3.8 KiB |
0 B (0.0%) |
4.9 KiB |
✅ |
| Claude |
Live turn WebSocket wire |
1.2 KiB |
1.2 KiB |
0 B (0.0%) |
2.0 KiB |
✅ |
| Claude |
Live turn WebSocket decoded |
21.2 KiB |
21.2 KiB |
0 B (0.0%) |
29.3 KiB |
✅ |
| Claude |
Live turn messages |
2 |
2 |
0 (0.0%) |
8 |
✅ |
Baseline: 250e052 · PR result: c1877b6 · Source CI: success
Scenario and decoded snapshot size
10 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.
- Codex decoded thread snapshot: 108.5 KiB
- Claude decoded thread snapshot: 108.8 KiB
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.
🧰 Additional context used
📚 Code guidelines (1)
docs/internals/effect-services.md — auto-discovered
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
- Configuration used: Repository: pingdotgg/t3code/.coderabbit.yaml
- Review profile: CHILL
- Plan: Team
- Run ID:
b227aa96-338b-447d-bdac-f40a57b7f68c
📥 Commits
Reviewing files that changed from the base of the PR and between 250e052 and c1877b6.
📒 Files selected for processing (2)
apps/server/src/mcp/OrchestratorMcpService.test.ts
apps/server/src/mcp/OrchestratorMcpService.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
📝 Walkthrough
Walkthrough
The orchestrator now rechecks selected providers when target resolution fails because a provider is unavailable. It serializes refreshes by provider instance and also rechecks unavailable providers for capability reporting.
Changes
Provider availability rechecks
| Layer / File(s) |
Summary |
Coordinate provider refreshes apps/server/src/mcp/OrchestratorMcpService.ts |
Keyed locks serialize refreshes by provider instance. Rechecks skip providers whose checkedAt changed while waiting, refresh matching providers, and reload the provider list. |
Recheck resolution and capability reporting apps/server/src/mcp/OrchestratorMcpService.ts, apps/server/src/mcp/OrchestratorMcpService.test.ts |
Target resolution retries after rechecking selected providers only when the initial error is provider_unavailable. Capability reporting also rechecks unavailable providers. Tests cover concurrent calls, retries, and healthy cached providers. |
Priority: ➖ Normal
Estimated code review effort: 3 (Moderate) | ~25 minutes
Change: Bug fix
Suggested reviewers: juliusmarminge
Merge Risk: ⚪ Minimal · up to c1877
Capability checks can detect a repaired provider promptly, while a failed probe leaves cached provider information available. No actionable merge-blocking risk remains after normal checks.
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
| Check name |
Status |
Explanation |
Resolution |
| Description check |
⚠️ Warning |
The description explains the problem, the fix, and focused verification results. It does not include the required scope and approval information: a link to a triaged issue or maintainer approval, or a… |
Add a Scope and approval section. Link the triaged issue or maintainer approval discussion, or explain why this focused change qualifies as an obvious bug fix without prior approval. |
✅ Passed checks (4 passed)
| Check name |
Status |
Explanation |
| Title check |
✅ Passed |
The title clearly summarizes the main change: agents can use a provider after its CLI is repaired, without a client open. |
| Docstring Coverage |
✅ Passed |
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2… |
| Linked Issues check |
✅ Passed |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
✅ Passed |
Check skipped because no linked issues were found for this pull request. |
Full details: Description check
Explanation
The description explains the problem, the fix, and focused verification results. It does not include the required scope and approval information: a link to a triaged issue or maintainer approval, or an explanation of why this is a small, obvious bug that needs no prior approval.
- Fix all pre-merge checks with AI
✨ Finishing Touches
📝 Generate docstrings
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
- Commit to this branch
- Create a new PR
- Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
macroscope-review
Opt PRs made by unvouched contributors in for Macroscope review. Vouched contributors auto-reviews
size:M
30-99 changed lines (additions + deletions).
vouch:trusted
Author is trusted by repo permissions or the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|