GeezerVison is showing github.com — refactor(server): name the pull request shared cache read span by shivamhwp · Pull Request #33891 · pingdotgg/t3code
Conversation
shivamhwp
commented
Nov 10, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Note 🤖 Claude Opus 5.5 on behalf of Shivam
getShared in PullRequestService.ts is a reusable Effect helper written as a plain arrow, which the repo's Effect.fn convention rules out (Macroscope's Effect Service Conventions check flagged it on #28841). It now uses Effect.fn("PullRequestService.getShared"), with the interrupt retry passed as a combinator after the generator body. Its generics are unchanged (a call on a Cache<string, boolean, never, never> still types as Effect<boolean, never, never>), and the second Cache.get still runs only after an interrupt-only cause.
Named rather than Effect.fnUntraced: it runs once per cached read (client reads, and the watch sweep every two minutes), not per chunk or in a tight loop. list reaches it with no enclosing span, since ws RPC tracing is disabled. The spans above the other callers (withRoutingCredential, persistedRead, listStats, the watch reactor's sweep) cover wider steps, so this one duplicates none of them.
Stacks on maria/redesign/3-panels-pages.
vp test run src/pullRequest/PullRequestService.test.ts at this head: 112 passed.
vp run check:changed against layer 3 at 28d8dc5348: format, lint, knip, graphql, typecheck of the 3 affected packages and the 2 test files beside the change all passed.
Not shown: the retry itself. The case meant to cover it, "retries a replacement %s read that joins a canceled lookup" (list and listStats), still passes with the retry removed. In effect 4.1.2, Cache.get already detaches an entry before interrupting it ("Detach before interrupting so new lookups do not join the abandoned fiber"), so a replacement read starts a fresh lookup and the retry never fires for the case its comment describes. Whether to keep it is a call for the layer, so this PR keeps it.
Claude Opus 5.5, Claude Code via T3 Code.
🤖 Generated with Claude Code
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Approvability
Verdict: Approved at ac040c6
Macroscope's review found this PR approvable — Adds a named tracing span to shared pull-request cache reads while retaining the existing interrupt-only retry. The change leaves cache policy, permissions and product defaults unchanged.
No code changes detected at fc74af4. Prior analysis still applies.
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.
maria-rcks
commented
Nov 11, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Note Written by claude-opus-5-5 on behalf of Maria
Base conflict resolved
maria/redesign/3-panels-pages was rewritten, so this PR listed 147 commits and conflicted. Merge commit 59e0dbfdf8 joins the current base (2bf46a721c) and keeps its tree, plus this PR's getShared change. No rebase or force-push. The diff against the base is again 1 file, +11 -6 in PullRequestService.ts.
On 59e0dbfdf8, vp run check:changed against the base passed: format, lint, knip, graphql, typecheck of 3 packages, and 114 tests in 2 files (PullRequestService.test.ts 112 of 112).
No review-bot findings were open.
Agent context budget fails on 59e0dbfdf8 with mcpToolListJsonBytes 48131 -> 48217. This PR does not touch that text. The base still carries 48217, and main dropped to 48131 in #22948 after the base was cut. It clears once the base layer picks up current main.
Verified in a real dev environment
Ran vp run dev on the PR base (maria/redesign/3-panels-pages at 1f2a545c7f) and then on this PR head (28d8dc5348), one server at a time, each with a fresh database. In each, through the web client driven by Playwright: added a shallow clone of pingdotgg/t3code as a project, ran a real Claude Haiku 5.5 turn (a follow-up turn too on the head), then opened Pull requests, this PR's Summary, Code and Timeline tabs, and hit Refresh.
- On the head, the list, detail, checks (31 of 31), commit-scoped diff, timeline and refresh all load, with no page errors.
- The head's
server.trace.ndjson has 10 PullRequestService.getShared spans, all exit: Success. Their parents are ws.rpc.pullRequests.list, PullRequestService.listStats, environment.pullRequests.diff, PullRequestService.withRoutingCredential and PullRequestReviewGuideService.get. The base trace has none.
Recording on the PR head: the Haiku turn, then the list, detail and the diff of 28d8dc5:
https://uploads-production-47e4.up.railway.app/files/a2f08ab4-968d-4252-bd9e-537241a83cbc/pr33891-flow.mp4
Before (base server), PR detail:

After (PR head server), PR detail:

Before, Code tab:

After, Code tab scoped to commit 28d8dc5:

Before, Timeline:

After, Timeline:

The before and after counts differ because the base branch was rewritten during the run (now 16714e55ab, committed 07:54 UTC). This head no longer descends from it, so GitHub now reports 768 files and a conflict with maria/redesign/3-panels-pages. The app shows exactly what GitHub reports. The PR's own change is still the single-file diff above. It needs a restack onto the new base, which I did not do.
Not verified
- The interrupt-only retry inside
getShared. As the PR body says, effect 4.1.2's Cache.get already detaches an interrupted entry, so no user path hit it here.
- Desktop and mobile clients. The change is server-only and both use the same RPCs.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
getShared is a reusable Effect helper, so it now uses
Effect.fn("PullRequestService.getShared") like the service's other
operations. The generics and the lazy retry after an interrupt-only
cause are unchanged.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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
size:XS
0-9 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.
|