Repository navigation
Conversation
Automatic pull checked only each project's root folder. A project whose root is a plain folder holding several checkouts skipped the root as "not a repository", so its tracked repositories never moved even when clean, on their default branch and behind their upstream. The startup and fetch-interval pass now also covers each enabled project's tracked folders. A tracked folder is pulled only when git resolves it as its own checkout root, so git's upward lookup cannot pull a repository that merely contains it, and a folder that is a project of its own follows that project's setting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 384c9f49f0
ℹ️ 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".
| const projectRoots = new Set(projects.map((project) => project.workspaceRoot)); | ||
| const workspaceRoots = new Map(enabled.map((project) => [project.workspaceRoot, false])); | ||
| for (const project of enabled) { | ||
| for (const folder of project.trackedFolders ?? []) { |
There was a problem hiding this comment.
Refresh discovered folders before scheduling automatic pulls
When an already-discovered checkout is added to t3.json.ignoreRepositories while the server is stopped, its persisted trackedFolders entry still reaches this loop: the startup/interval caller reads ProjectStore.listShells() directly without refreshing discovery. Consequently, a clean, behind default-branch checkout is still pulled despite being excluded from the project, and headless interval passes can keep doing so until project hydration synchronizes the folders. Resolve WorkspaceFolders.projectFolders(project) before building the candidates; it already reapplies the ignore list and drops stale discovered entries.
Useful? React with 👍 / 👎.
| for (const project of enabled) { | ||
| for (const folder of project.trackedFolders ?? []) { | ||
| // A folder that is a project of its own follows that project's setting. | ||
| if (!projectRoots.has(folder.path)) workspaceRoots.set(folder.path, true); |
There was a problem hiding this comment.
Resolve checkout aliases before checking project opt-outs
If an enabled project tracks /links/repo, a symlink to /repos/repo, while an opted-out project uses /repos/repo, this string lookup misses the opted-out project. Project and tracked-folder normalization use path.resolve, which retains symlink spellings, while the later root check uses realPath and accepts the alias. A clean, behind default-branch checkout is therefore pulled despite its own project's setting. Compare canonical paths for both project roots and tracked-folder candidates before deciding whether another project's opt-out applies.
Useful? React with 👍 / 👎.
Problem
With Automatically pull on, a project whose folder is a plain folder holding several checkouts never pulls any of them. Automatic pull checks only the project's own root, which is not a repository, so it skips the project as "not-a-repository". The tracked checkouts fall further behind even when they are clean, on their default branch and tracking an upstream. T3's fetch still updates
origin/<default>, so they just show as behind. On one of my machines a checkout of this kind sat 67 commits behind.This is the auto-pull counterpart of #42802 (pull requests, fixed by #42828).
Change
autoPullProjectsdrives both the startup pass and the fetch-interval pass. It now also covers each enabled project's tracked folders, with two guards:.gitentry of its own.The pull itself is unchanged:
--ff-only, clean default branch, not ahead.Verification
GitVcsDriverCore.test.ts, on real repositories: a plain project root tracks three folders: a clone that is behind, a plain folder inside another behind clone, and a clone that is its own project with automatic pull off. Only the first is pulled. The test fails onmain, fails with the root check removed, and fails with the own-project check removed.vp run check:changed: format, lint, knip and typecheck pass. Two tests inGitVcsDriverCore.test.tsfail on this machine: "runs background Git in its own lane…" and "fetches the selected worktree base for Changes". They fail the same way on unchangedmainat a7ead0e.t3 servewith an isolated base dir): a plain folder holding one clone that is behind its local bare remote, added witht3 project add, withdefaultAutoPull: true. Onmainthe clone was still behind after 60 seconds. With this change it was pulled at startup.Not covered here, to keep to one problem:
ignoreRepositorieswhile the server was stopped can still be pulled at startup.Written by Claude Opus 5.5 in Claude Code, reviewed by GPT-6.2 Astra in Codex.