GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — fix(server): thread reads stop repeating every linked PR on each call by BilalIrfanContact · Pull Request #25875 · pingdotgg/t3code Conversation
Contributor
Reading a page of conversation currently repeats every PR linked to that thread. Long-lived dispatcher threads can accumulate hundreds of links, so even a one-message page carries the full list again. Thread listings repeat it too. Thread reads and lists now return Refs #25642. Per-PR watch-state/start-time exposure is deferred as a separate problem. VerificationUsed the actual MCP service with mocked persistence, 164 visible PR links plus a dismissed link, two distinct conversation pages, and a thread-list result. Compared base Combined serialized UTF-8 results fell from 76,566 to 3,432 bytes in this fixture (95.5%). These are service-level JSON sizes, not live database, network, or compression measurements. The focused regression failed on the base because vp test run apps/server/src/mcp/OrchestratorMcpService.test.ts -t "counts linked pull requests instead of repeating them on every read and list" --maxWorkers=1 A separate fake-thread toolkit fixture confirmed Compatibility and limitsThe default response shape changes: consumers using Knip and dependent-package typechecks remain unrun. Broad checks exhausted the host's memory, so verification was completed with sequential, targeted commands. No UI behavior changed; the regression and runtime transcripts are the evidence for this backend response change. Implemented with Claude Opus 5.5 (medium effort) through the Claude Agent harness in T3 Code. Before/after verification by GPT-6.1 Terra (medium reasoning) through Codex; PR preparation by GPT-6.1 Sol through Codex.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Define the pull-request count contract packages/contracts/src/orchestratorMcp.ts |
Thread list items and thread details replace optional pull-request arrays with an optional non-negative pullRequestCount. The per-pull-request schema and its type are removed. |
Return and test visible pull-request counts apps/server/src/mcp/OrchestratorMcpService.ts, apps/server/src/mcp/OrchestratorMcpService.test.ts |
The service returns the number of visible linked pull requests in thread lists and details. Tests verify paginated reads and listings omit pullRequests, report a count of 164, and retain the linked pull request. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Possibly related issues
pullRequests arrays in thread reads and lists. This change replaces those arrays with pullRequestCount.Suggested labels: bugfix
Suggested reviewers: scottn-pv, maria-rcks
528bdThread responses provide counts, while the listing tool remains available for full links. No merge-blocking issue was identified.
Explanation
The title "fix(server): thread reads stop repeating every linked PR on each call" follows conventional commit format and names the main change: thread reads and lists no longer repeat the full linked pull request array. The changeset replaces the optional pullRequests array with pullRequestCount in OrchestratorMcpService.ts and packages/contracts/src/orchestratorMcp.ts, and adds a regression test. The title is specific and accurate.
Explanation
The description covers the problem (every thread read repeats all linked PRs), the change (pullRequestCount replaces the full array while linkedPullRequest is preserved), scope (small obvious-bug exception and reference to issue #25642), and verification (focused regression test, before/after payload sizes, and a failing-then-passing test run). It also documents compatibility limits. The template's Scope and approval section cites the small-fix exception and a related issue number, but it does not link a maintainer approval comment or triaged issue explicitly, which the template asks for. The agent attribution line is present. Overall the description is mostly complete, so the check passes, but the approval link is a minor gap to tighten.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
packages/contracts/src/orchestratorMcp.ts-321-321: 1
321-321:Major · Data Integrity & Integration · Heavy lift
⚠️ Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.Preserve compatibility for existing
pullRequestsconsumers.Both response schemas remove
pullRequests. An existing MCP consumer that reads that field will receive no PR links after a server update. MakingpullRequestCountoptional helps newer clients decode older responses, but does not help older clients decode the new behavior. Keep the legacy response available through a negotiated or versioned shape while clients migrate tolist_thread_pull_requests.Based on learnings: “never remove a field (deprecate instead)” in a shared message schema.
Also applies to: 390-390
Source: Learnings
de777ccd-1da7-47ff-9192-30c47581ee3capps/server/src/mcp/OrchestratorMcpService.test.tsapps/server/src/mcp/OrchestratorMcpService.tspackages/contracts/src/orchestratorMcp.tsIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Re the CodeRabbit note on dropping |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
packages/contracts/src/orchestratorMcp.ts-360-360: 1
360-360:Major · Data Integrity & Integration · Heavy lift
⚠️ Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.Version the removal of
pullRequestsfrom MCP responses.If an existing external agent reads
pullRequestsfrom a thread list or read result, it now receives no records.pullRequestCountcannot supply the record identities. Keep the compact response as the default, but provide a versioned or negotiated compatibility path for existing agents. (raw.githubusercontent.com)Based on learnings: versioned shared schemas should “never remove a field (deprecate instead).”
Also applies to: 430-430
Source: Learnings
65be99eb-78dc-4f4a-9cbc-729d7ff3c256apps/server/src/mcp/OrchestratorMcpService.test.tsapps/server/src/mcp/OrchestratorMcpService.tspackages/contracts/src/orchestratorMcp.tsIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…-payload # Conflicts: # apps/server/src/mcp/OrchestratorMcpService.test.ts
There was an error while loading. Please reload this page.
|
Note Written by Verified in a real dev environmentverified as-is at created a real repository project and thread through the web app using playwright from repo dependencies and
inspected the raw provider mcp tool results independently of the model's summary. runtime transcript. ran through blacksmith-check: Not verifiednative desktop/mobile clients, remote/relay/tunnel connections, a non-null |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This PR conflicts with See the conflict window. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Closing: this PR still conflicts with To continue, rebase the branch and open a new PR that links this one. See the conflict window. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.