GeezerVison is showing github.com — fix(server): list peer links without waiting for reachability probes by niieani · Pull Request #28533 · pingdotgg/t3code
Conversation
niieani
commented
Nov 1, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Problem
peerLinks.list probes every linked environment before returning. One sleeping peer holds the inventory request, including t3_environment_links, for the full 10-second descriptor timeout.
Fixes #28531.
Change
List from stored outcomes: expired links stay expired; a recorded success without a subsequent error is reachable; a failed or never-successful call is unreachable. Preserve the last error and successful-contact timestamp. Status describes the last recorded outcome and updates on the next call, rather than detecting sleeping or waking peers during inventory reads.
Keep live identity and fencing checks in resolve and answeringAs before sending credentials or work. Remote delegation and MCP forwarding still use these checks and can retry peers whose stored status is unreachable. No background worker, new RPC, schema change, or migration.
Update contract and shared-client comments, plus MCP and CLI descriptions: inventory reports stored outcomes, and a call retries a non-expired unreachable peer. Web, desktop, and mobile rendering code is unchanged.
Scope and approval
Focused fix for the inventory latency defect reported in #28531, following its stored-status/on-demand-probe direction. No new capability or unrelated cleanup.
Verification
-
Regression written and run before the fix: a real HTTP peer holds its descriptor response behind a Deferred. Listing incorrectly reached that blocked request, failing with Received: "blocked on peer".
-
After the fix, listing returns the stored link before any descriptor request, and the probe Deferred remains untouched. The same test checks recorded failure, recovery, missing successful-contact state, and expiry without sleeps or elapsed-time assertions.
-
vp test run apps/server/src/peer: 5 files, 67 tests passed, covering PeerLinks, PeerMcpClient, PeerForwarding, PeerLinkRequests, and RemoteDelegation.
-
Extended the existing identity-mismatch test to restore the peer and confirm a real call recovers an unreachable stored status.
-
vp run check:changed: formatting, lint, both knip checks, GraphQL generation check, affected-package typechecks, and adjacent tests passed.
-
Feedback follow-up: 409 eval-runner unit tests passed; the new stored-status guidance case passes dry-run request construction. Live model evaluation could not run because the required local vibeproxy provider is absent (KeyError: 'vibeproxy'); its before/after model result remains unverified.
Model: GPT-6.1 Sol. Harness: Codex in T3 Code.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Codex Review Summary
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-11-01T06:27:01.022593Z |
56dba87 |
PR opened |
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Approvability
Verdict: Approved at 56dba87
Macroscope's review found this PR approvable — Peer-link listings now report stored call outcomes without waiting for reachability probes. Actual peer use retains live identity and expiry checks, limiting the change to listing latency and status freshness.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 56dba87bc3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
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.
coderabbitai
Bot
commented
Nov 1, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between 56dba87 and d06c15a.
Files selected for processing: 4
-
apps/server/src/cli/environment.ts
apps/server/src/mcp/toolkits/orchestrator/tools.ts
apps/server/src/provider/agentContextBudget.json
evals/mcp-tool-use/cases/orchestration.ndjson
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
-
PeerLinks.list now reports status from stored reachability outcomes and current expiry. It no longer probes linked peers during listing. Tests cover non-blocking listing and status changes based on recorded outcomes, missing timestamps, and expiry.
Changes: Stored peer link status
| Layer / File(s) |
Summary |
Derive and verify listed link status apps/server/src/peer/PeerLinks.ts, apps/server/src/peer/PeerLinks.test.ts |
PeerLinks.list derives expired from expiry, reachable from a recorded reach time with no error, and unreachable otherwise. It no longer probes peers. Tests cover listing without waiting for a peer response and status changes. |
Describe stored status and retry behavior packages/contracts/src/peerLink.ts, packages/client-runtime/src/state/peerLinks.ts, apps/server/src/cli/environment.ts, apps/server/src/mcp/toolkits/orchestrator/tools.ts, apps/server/src/provider/agentContextBudget.json, evals/mcp-tool-use/cases/orchestration.ndjson |
Contract, client, CLI, and MCP descriptions explain that listed status reflects recorded outcomes and expiry. The orchestration evaluation checks that stored status is not treated as proof of current reachability and describes how a call can update it. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix · Severity of issue fixed: Medium
Possibly related issues
Possibly related PRs
- pingdotgg/t3code#28543: This PR addresses the same slow-peer listing behavior with a shorter live-probe timeout.
- pingdotgg/t3code#26551: This PR also changes linked-environment status listing, but optimizes the route probes instead of removing listing probes.
Suggested labels: bugfix
Suggested reviewers: juliusmarminge
Merge Risk: Minimal · up to d06c1
-
The change is mergeable with normal checks; no actionable current-head risk was established.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title "fix(server): list peer links without waiting for reachability probes" matches the main change. PeerLinks.list no longer probes linked peers and derives status from stored outcomes, so inven… |
| Description check |
 |
The description follows the template. It has Problem, Change, Scope and approval, and Verification sections. The Problem section states the defect and links issue #28531. The Change section explains t… |
| Linked Issues check |
 |
Issue [#28531] requires peerLinks.list and the t3_environment_links inventory path to return without live reachability probes. PeerLinks.list now computes expired, reachable, and `unreachabl… |
| Out of Scope Changes check |
 |
The changes remain within issue [#28531]. The implementation and tests address stored inventory status and recovery behavior. Contract, client, CLI, and MCP text correct the resulting status semantics… |
Full details: Title check
-
Explanation
The title "fix(server): list peer links without waiting for reachability probes" matches the main change. PeerLinks.list no longer probes linked peers and derives status from stored outcomes, so inventory reads do not wait on a slow peer. It uses a conventional commit format and is concise and specific.
Full details: Description check
-
Explanation
The description follows the template. It has Problem, Change, Scope and approval, and Verification sections. The Problem section states the defect and links issue #28531. The Change section explains the stored-outcome approach and the preserved live checks. The Scope section ties the work to the direction in #28531. The Verification section lists a regression test that failed before the fix, the focused peer test run (67 tests), and the changed-file checks. It also states what could not run: the live model evaluation failed because the vibeproxy provider is absent. It names the model and harness, as the template asks. The Problem section does not give explicit reproduction steps. The Scope section gives a link and no approval comment, so maintainer approval is not shown directly in the description. The author does state that the change follows the direction in the linked issue.
Full details: Linked Issues check
-
Explanation
Issue [#28531] requires peerLinks.list and the t3_environment_links inventory path to return without live reachability probes. PeerLinks.list now computes expired, reachable, and unreachable from expiry, lastReachedAt, and lastError, then maps stored links without calling peer descriptors. The regression test blocks a descriptor response, confirms that listing does not touch it, and covers failure, recovery, missing successful-contact state, and expiry. CLI and MCP descriptions document stored outcomes and on-demand retry behavior.
Full details: Out of Scope Changes check
-
Explanation
The changes remain within issue [#28531]. The implementation and tests address stored inventory status and recovery behavior. Contract, client, CLI, and MCP text correct the resulting status semantics. The added MCP evaluation case tests that guidance. No unrelated feature, schema change, migration, background worker, or rendering change is present in the reviewed changes.
Finishing Touches
-
Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
maria-rcks
commented
Nov 1, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Note Written by gpt-6.1-sol on behalf of Maria
Verified in a real dev environment
verified unchanged head 56dba87bc30f7497ecdf1fb9d27183c349bf35bf against github/main at 37d7615a91 on linux. used the repo's playwright and /usr/bin/google-chrome, a real git project, an app-created peer link, and real codex gpt-6.1-sol turns through the local proxy. no response mocks or database fixtures. only one dev server ran at a time.
- suspended the linked real t3 peer with
SIGSTOP. on main, the web client's peerLinks.list request took 2647 ms; the real provider's t3_environment_links server span took 3018.738 ms. this loopback route has a 3-second probe timeout.
- on the pr, the same sleeping peer and stored successful contact returned
reachable, as intended. the web request took 451 ms; the provider inventory span took 15.961 ms. these are individual observed requests, not whole-turn timings.
- a real forwarded
t3_project_list while suspended failed with "did not answer". the next inventory returned unreachable and retained that error.
- resumed the peer with
SIGCONT. inventory still returned the stored failure before retry. a real forwarded t3_project_list then succeeded; the next inventory returned reachable and lastError: null.
- ran
vp i && vp test run apps/server/src/peer through blacksmith-check: 5 files and 67 tests passed. applicable ci checks pass on this head. no code changes or pushes were needed.
short runtime transcript
before, main with the peer suspended:

after, pr with the same peer suspended and the same stored successful contact:

settings navigation recording, with measured request durations annotated. clips are trimmed separately; navigation duration is not the measurement:


Not verified
native ios/android and the electron shell were not exercised on this linux web run. tailscale/relay and the non-loopback 10-second timeout were not exercised. live expiry, revocation, and identity replacement were not exercised; existing focused tests cover expiry and identity fencing.
the existing review's description concern remains: the agent tool and cli still say inventory reports whether peers answer now. runtime behavior intentionally reports stored outcomes. the tested agent successfully retried the stored-unreachable link when directed; this does not establish that agents will infer the retry policy from the current description.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 1, 2026
|
Thanks, @niieani, for the earlier work and the regression coverage. This conflicts with current main and has had no author update for over a week. Closing in favor of #28543 by @juliusmarminge, which addresses the same slow peer-listing issue with a bounded live probe and has regression, runtime, and broader green CI evidence.
|
niieani reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 10, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:M
30-99 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
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.
|