Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — The change adds an optional Notes:
You can add or adjust custom eligibility rules. Learn more. |
macroscopeapp
Bot
dismissed
their stale review
October 11, 2026 07:00
Dismissing prior approval to re-evaluate c4a3bdf
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
t3_thread_listandt3_thread_readreport only the legacylinkedPullRequest. Links added throughlink_pull_requestgo to the thread'spullRequestsand leave that field unchanged, so a thread linked to a PR in another repository, or in a project without a remote, reads aslinkedPullRequest: null. An orchestrator that filters on it sees no link for a thread that is tracking PRs and may settle it.list_thread_pull_requestsand the sidebar show the links, so the three disagree.Change
Both results now include
pullRequests: the thread's visible links (dismissed stack members excluded) as{host, repository, number, url, source, state}, withstatenull until the host has been read. It is the listlist_thread_pull_requestsreturns, without snapshot details. The field is optional in the contract, as new wire fields are here, and the server always sets it.linkedPullRequestis unchanged; both tool descriptions now call it legacy and point topullRequests.Scope and approval
Closes #17103. The triage comment suggests this additive array as its first option. I took it over a per-thread count because six short fields per link stays small; a count on list items is a small follow-up if you prefer smaller pages. No change to linking, watches, host reads, or clients.
Verification
Linux,
apps/server:vp test run src/mcp/OrchestratorMcpToolkit.integration.test.ts: 2 passed. The test project has no remote. The added case links a PR in another repository and a dismissed stack member through the orchestrator, then decodes realt3_thread_readandt3_thread_listresults:linkedPullRequestis null,pullRequestsholds only the visible link, and a thread without links reports[]. With the fix reverted the same run fails becausepullRequestsis missing.Effect-TS/effect#5000. Before the fix, read and list returnedlinkedPullRequest: nulland nopullRequestswhilelist_thread_pull_requestslisted the PR. After the fix both returned it inpullRequestswithstate: null(no GitHub credential on that server). Afterunlink_pull_request, both returnedpullRequests: [].vp test run src/mcp(268 passed),packages/contractstests (643 passed), server and contracts typecheck,vp lintandvp fmt --checkon the changed files: clean.Model: Claude Opus 5.5, Claude Fable 5.1 (review), GPT-6-Astra (review). Harness: Claude Code, Codex.