GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(server): list peer links without waiting for reachability probes by niieani · Pull Request #28533 · pingdotgg/t3code

Conversation

@niieani

@niieani niieani commented Nov 1, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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.

All reactions
@niieani
fix(server): list peer links without waiting for reachability probes
56dba87
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Nov 1, 2026
macroscopeapp[bot]
macroscopeapp Bot approved these changes Nov 1, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Nov 1, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

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.

All reactions
Comment thread apps/server/src/peer/PeerLinks.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: 7195b69
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a73dbd46-cf1a-46c0-9cba-d314d4b6a451
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

  • Revoking a linked environment's token under Authorized clients breaks the link silently, and the other machine still shows it as reachable #26772: The change derives status from recorded outcomes, including recorded errors, rather than relying on an unauthenticated live probe.

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: Passed 4
Check name Status Explanation
Title check Passed 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 Passed 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 Passed 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 Passed 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)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@maria-rcks

maria-rcks commented Nov 1, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

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:

main waits for the suspended peer and reports not answering

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

pr returns the stored reachable status without waiting for the suspended peer

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

main and pr inventory recording with actual web and provider request timings

real codex forwarded failure and successful recovery clear the stored error

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@niieani
fix(server): describe stored peer status and on-demand retries
d06c15a
This was referenced Nov 1, 2026
fix(server): linked calls fail fast when a peer stalls the MCP handshake #28876
Merged
fix(web,mobile): Linked environments shows links made outside the app #28907
Merged
fix(server): linked environments pick up the other machine's new name #29779
Merged
fix(server): listing linked environments no longer waits out an asleep peer #28543
Merged
fix(server): a peer refusing one call no longer marks its link as failing #29914
Merged
fix(server): name rejected certificates when linking peers #28060
Merged
@juliusmarminge juliusmarminge closed this Nov 10, 2026
@juliusmarminge GitCafe Production

juliusmarminge commented Nov 10, 2026

Copy link
Copy Markdown
Member

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
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Nov 10, 2026
perf(server): reuse verified linked-environment routes #26551
Closed
fix(server): a linked launch above the link's access names the link, not the parent mode #27334
Merged
fix(server): one dropped probe no longer lists a live linked peer as unreachable #34208
Merged
fix(server): a link the peer revoked no longer lists as reachable #34891
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments
@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

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.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

peerLinks.list blocks on the slowest linked environment's reachability probe (10 s when a peer sleeps)

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@niieani @maria-rcks @juliusmarminge
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.