Repository navigation
feat(projects): Git actions and pull requests per tracked repository - #35924
juliusmarminge wants to merge 1 commit into
Conversation
| if (scopes.length < 2) return scopes; | ||
| const lastChange = new Map<CheckpointScopeId, number>(); | ||
| for (const [index, checkpoint] of projection.checkpoints.entries()) { | ||
| if (checkpoint.runId !== null) lastChange.set(checkpoint.scopeId, index); |
There was a problem hiding this comment.
🟡 Medium state/threadRepositories.ts:385
After a thread is loaded, threadChangedRepositories can rank repositories by scope ID instead of recency, causing a recently changed repository to be folded behind “Show more.” projection.checkpoints is ordered by scope and then ordinal, so its array index is not a cross-scope chronology; compare checkpoint chronology directly when determining each scope’s last change.
🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
In file @packages/client-runtime/src/state/threadRepositories.ts around line 385:
After a thread is loaded, `threadChangedRepositories` can rank repositories by scope ID instead of recency, causing a recently changed repository to be folded behind “Show more.” `projection.checkpoints` is ordered by scope and then ordinal, so its array index is not a cross-scope chronology; compare checkpoint chronology directly when determining each scope’s last change.
ApprovabilityVerdict: Needs Human Approval Macroscope's review found this PR requires human approval — This adds per-repository Git actions and automatically attaches existing open pull requests from tracked repositories to eligible threads. The new automatic-linking default needs human confirmation because it changes persistent thread associations without an explicit linking action. Needs human approval because:
No code changes detected at Adjust the Minimum Blocking Severity for this repo — including turning it Off — in Settings. You can add or adjust custom eligibility rules. Learn more. |
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Other scenariosNo All 64 scenario measurements
Baseline: unavailable · PR result: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
4abac71 to
50ce032
Compare
ae8fad5 to
06c700e
Compare
50ce032 to
d3b7e3e
Compare
06c700e to
71e44ba
Compare
A thread that changed several repositories could only commit, push and open a pull request for its own folder. The thread details panel and the mobile Git sheet now list the repositories the thread changed, most recent first, each with its branch, counts and pull request, and the usual Git actions bound to that repository. Collapsed rows read local status only. Any tracked repository can be pinned from "Other repositories". An open pull request on a changed repository's branch is linked to the thread. Co-Authored-By: Claude Fable 5.2 <[email protected]>
d3b7e3e to
a4e4a8c
Compare
71e44ba to
cfb1671
Compare

Layer 3 of 4 of the multi-repository rebuild (discussion #7041). Stacked on layer 2.
A thread that changed several repositories could only commit, push and open a pull request for its own folder.
What changed
GitActionsControltakes the folder it acts on as a target. A repository section never writes its branch onto the thread..gitand no network. Only the expanded section uses the full subscription. Repositories the thread did not change are never subscribed.After
Known limits
Proof
vp run check:changed: format, lint, knip, typecheck pass; 1,941 of 1,942 tests pass (same unrelated failure as layer 2).Created with Claude Fable 5.2 in Claude Code, running in T3 Code, with subagents for the parallel build.
🤖 Generated with Claude Code