Repository navigation
feat: umbrella projects span the git checkouts inside one project folder - #1
Closed
na0s-fleet-agents[bot] wants to merge 59 commits into
Closed
na0s-fleet-agents[bot] wants to merge 59 commits into
na0s-fleet-agents[bot] wants to merge 59 commits into
Conversation
A project folder holding several git checkouts gets one T3 project: members are discovered under the root (cached in project enrichment) or adopted from project settings, the enclosing repository leaves them out of status, review diffs, commits and checkpoints, each member checkpoints under its own prefix, and a turn's edited members link their branch pull requests to the thread. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…'s group Projects whose folder is an umbrella member on the same environment, or whose repository matches a member on any environment, join the umbrella's sidebar group and carry the member they matched. Shell merges keep scanned members, and shared helpers compute the settings edits to adopt, exclude, or restore a member. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ex current Clients get member changes from settings edits, rescans, and member identity resolutions as metadata refreshes, and the member index rebuilds periodically so removed projects stop excluding paths. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… and mobile rows The diff panel gains a tab per member checkout with changes, folded member projects label their thread rows, project folder menus and the command palette add or remove a project from an umbrella, and Settings → Projects lists an umbrella's checkouts with remove/restore and an "Add checkout" field. Mobile thread cards show the member label. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Discovered checkouts now wait for the user to turn the umbrella on (from project settings or a diff panel prompt that lists them first); adopting a checkout turns it on. Restores validate refs first, skip members that already match, and report every failing member; deletes reach every member; an outer repository capture failure fails the checkpoint again. Member patches prefix rename headers, index rebuilds are serialized and scoped per umbrella root, roots inside another repository are refused, vendored folders are not scanned, only enabled umbrellas rescan, and shell refreshes skip unrelated changes. An unlinked member pull request stays dismissed, and removing a clone from another machine only ungroups it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…pository A plain folder holding git checkouts kept the Diff surface disabled because the folder itself is not a repository, which hid both the member tabs and the "Use as umbrella" prompt for the main umbrella layout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This PR changes the test suite by +45 test cases (browser 0, unit +21, server +24). Keep tests that would fail for a real reason, and test logic below the UI where it can be. See Testing. |
An umbrella thread in worktree mode gets one folder that mirrors the umbrella: the root's own worktree or a plain folder, a worktree of every member on the thread branch, and links to the root's other entries. A manifest beside the folder lets checkpoints, recovery and removal find its repositories, and the server registers these folders at startup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Worktree mode on an umbrella project, plain folder or repository, builds the umbrella worktree, renames the thread branch in every repository, and removes all of it when setup is cancelled. Recovery of a missing worktree recreates each missing repository from the thread branch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deleting a thread's umbrella worktree removes every member's worktree, Edit from here recreates its missing repositories, and the worktree handoff tool builds an umbrella worktree for umbrella projects. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member pull request discovery reads the members' worktrees inside the thread folder, settlement skips the branch lookup a plain umbrella folder cannot answer, and a thread's umbrella worktree counts as a known workspace wherever the worktree setting placed it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tion Storage cleanup removes an umbrella thread's folder once no repository in it has local changes and its branches are unchanged, keeping branches and the manifest so the next turn recreates the same layout. Checkpoint refs of deleted threads are pruned in member repositories too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The composer offers worktree mode for any umbrella, starting each member of a plain umbrella folder from its own checkout, and the diff panel's member tabs follow a worktree-mode thread into its member worktrees. The umbrella projects guide describes the per-thread layout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A plain umbrella worktree folder placed inside another repository, such as a T3 home in a repo, resolved to that repository: checkpoints captured it and its branch replaced the thread's. Git now runs with a ceiling above registered plain folders, an umbrella's own repository must be rooted at its folder, and branch sync ignores branches reported for a plain folder. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Worktree restore now looks for an umbrella manifest, so the stub file systems in ProviderTurnStartService tests answer readFileString with NotFound. Umbrella members are checked out concurrently, so the launch test compares createWorktree calls without depending on their order. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…a base refs A worktree launch in a folder that is not a repository now names the checkouts it holds, which of them has the base ref, and their projects, instead of failing later with Git's VCS driver error. Preparation that skips the up-front check fails the same way. An umbrella accepts a base ref that any checkout has and refuses one that none has. The MCP hint points at the checkout's own projectId or the umbrella setting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The default sidebar listed an umbrella's threads and its members' as unrelated cards, and a member thread read "northwind · api", leading with the umbrella. Active threads of an umbrella now gather at the place of its first thread under a row with its icon and name, indented slightly, and a member thread reads "api · northwind". Boring-mode folders already group them and are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… tab The diff panel's prompt only counted the repositories, the confirmation only mentioned checkpoints, and nothing confirmed the change afterwards. The member tabs used ghost and secondary buttons that look alike in the light theme. The prompt names the repositories, the confirmation lists every effect, and a toast says the project is now an umbrella. Member tabs are underlined tabs with each member's icon; the selected one is bold with a dark underline. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Detected checkouts were only listed in the Umbrella checkouts section near the bottom of the page. With the umbrella off and checkouts found, the project's page now opens with "3 projects detected within this folder: api, dev-setup, storefront. Use northwind as umbrella project?" and a button that goes through the same confirmation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An umbrella searched as one row matching every member's name and path, with no sign of which member matched. Searches now list the umbrella as one line with its icon and name, and its members indented under it. Rows match by name: a member drops out once the query stops matching it, and the umbrella stays while any member matches or its own name does. A member with its own project opens that project; any other opens the umbrella. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A turn in an umbrella worktree that edited two members showed "2 changed files" with nothing in the header saying they span two projects. The card's header now reads "in 2 projects" followed by each member's icon and name, and the umbrella itself when files sit in its own repository. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An umbrella gathered all its Active threads at the place of its first, so a member thread reading Done, Input, Waiting or Working moved away from where it would sit without the umbrella. A thread showing any status in the sidebar now keeps its own place, as if it had no umbrella, and joins the umbrella's other threads once it shows none. The row's Woke check moves into Sidebar.logic so both use the same rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tter An umbrella's gathered threads sat under a row holding its icon and name, which spent a row of the list on a label. The row is gone. The threads are indented 20px, and the gutter that leaves shows the umbrella's icon beside the first and a line down to the last. The icon is the umbrella's own, image or monogram, so it reads the same whatever icon the umbrella has, and each member thread already names the umbrella. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…debar A member row under its umbrella in a palette search sat 24px in, while the sidebar indents an umbrella's threads 20px. Both now use 20px. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ged files A worktree turn across members listed every member's icon and name after "in 2 projects" in the card's header, apart from the folders they belong to. The header keeps the count, and each member's icon and name now follow its folder's row, including a compacted row such as "api/src" and an adopted member under "_external". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd umbrella worktrees Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…moize member labels Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ship The shell transport subscribed to enrichment and settings changes and worked out which umbrellas they touch. UmbrellaMembership already consumes both, so it now publishes the affected project ids and ws.ts only turns them into snapshots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…olds Discovery never fails and its cache entries never expire, and a refresh keeps the old entry until the new one lands, so the cache answers every peek the side map did. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…efusals once Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each caller's cwd is the work tree's top, so the top-relative form the status path used fits the checkpoint and cleanup commands too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…debar folds by The sidebar folded members by one rule and the umbrella menus found them by a copy that ignored a project set to group separately. The fold now calls findUmbrellaMembership, which skips scratch and separate projects, so a separate project no longer offers Remove from umbrella. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The depth and directory limits are fixed; the test checks the depth limit as production applies it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…umbrella paths Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…th rule Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A worktree-mode umbrella thread now always works in the root's own worktree, with each member's worktree inside it. A plain umbrella folder is refused up front, as any plain folder is: the message says umbrella worktrees need the umbrella folder to be a Git repository and names the member checkouts with their projects, and the MCP hint names the member projectId to launch in. This drops what only the plain-folder layout needed: sibling links and their removal, the thread-folder naming, the GIT_CEILING_DIRECTORIES alias map, the manifest's rootRepository flag, and the plain-folder cases in settlement, branch sync, storage cleanup, known workspaces, MCP worktree checks and checkpoints. The not-a-repository refusal no longer suggests turning on the umbrella to get worktrees. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t is a repository A plain umbrella folder now gets the same composer as any plain folder: local mode only, with no worktree mode, branch fallback or separate workspace-mode switch. The umbrella guide says worktree mode needs the umbrella folder to be a Git repository and how a plain one is refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…umbrella A project group records the keys of the groups its folded umbrella members left, and scope resolution maps such a key to the umbrella's group instead of falling back to all projects. The sidebar's saved filter and saved-window filters both resolve through it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The plain-folder hint is unchanged, so the umbrella case replaces the parametrised copy of the same test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
git add exits 1 when a pathspec, even an excluding one, names an ignored path. A repository umbrella that lists its members in .gitignore lost every root checkpoint and could not commit. Git already skips ignored members, so leave them out of the exclusions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Define the umbrella branch inside the existing performHandoff and move only the binding into bindWorktree, so the diff stops relocating the checks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…renameBranch UmbrellaWorktree.renameBranch now takes git.renameBranch's input and renames members only when the folder is an umbrella worktree, so the launch calls it in place of git.renameBranch without its own manifest read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
setUmbrellaEnabled and withPaths only spread an object; each edit now returns its fields directly, and the hook writes umbrellaEnabled itself. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e each umbrella Threads showing a status such as Input or Done sat wherever their recency put them, so an umbrella gathered near the top could push them down. With umbrellas on, they now come first, ahead of every umbrella, and join their umbrella once seen. Each umbrella's gathered threads sit under its name again, indented 12px as before, beside the line that runs from the name to the last thread. The gutter icon goes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ebar now does The sidebar went back to a 12px indent for an umbrella's threads, so the palette's member rows follow it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Use case
Problem
A T3 project is one directory, and git features assume that directory is one checkout. A plain folder holding several repositories gets no diff panel, no turn diffs or checkpoints, and no PR tracking. A folder that is itself a repository shows its nested clones as untracked directories or "Subproject commit" noise. Projects you already have for those repositories appear as unrelated sidebar entries.
Change
A project can be turned into an umbrella. Its members are the git repositories found in its folder (up to three levels deep, skipping hidden, dependency and vendored folders, linked worktrees and submodules), plus checkouts the user adds by path anywhere on the same machine, minus any they remove. A folder inside another repository can't be an umbrella.
.gitignorelists the members.member/path prefixes. Restore checks every component's refs before touching any of them, restores only the members whose files differ, and reports per-member failures._external/<name>. A turn's changed-files card puts each member's project label after its folder. Recovery, handoff, removal, cleanup, branch sync, settlement and member PR discovery all handle the layout, and Revert files too restores the member worktrees.Config lives in
ProjectSettingsOverrides(umbrellaEnabled,umbrellaAdoptedPaths,umbrellaExcludedPaths). Members reach clients on the project shell asumbrellaMembersandumbrellaSuggestions. User docs:docs/user/project-settings.md, "Umbrella projects".Not in this PR
Scope and approval
This is a feature with no maintainer approval yet. It is filed on my fork and proposed upstream in an Ideas discussion: link added after posting.
Verification
Synthetic fixture: a
northwind/folder withstorefront/,api/and (in the sidebar scenarios)dev-setup/git repos and a non-gitcopy/folder, plus member projects added on their own. Every capture is the web client in e2e's Chromium at 1280×800, light theme, fresh synthetic data (the scenario T3 home is recreated per run; project folders and worktrees under the system temp directory), dev replay provider. Each scenario ran on both commits withvp run scenarios:prove.Proven:
58e71084b5e01698cd54308d25562c(assertions pass)7d32075e37(main)bddc67bdf97d32075e37(main)bddc67bdf9.gitignorelists its members still diffs and reverts them7d32075e37(main) andbddc67bdf9073aab07e4Sidebar since the previous head
Status threads now lead, and the umbrella's name row is back above its threads with the line kept. Before is e01698cd54; after is 308d25562c.
Sidebar, palette and turn diffs in the previous round
The palette indent shown here went from 20px to 12px in 7a6bd3aff7, to match the sidebar again.
Crops of the changed UI. Before is the previous PR head; after is the commit that added these changes.
apiPlain-folder and Git-root umbrellas
t3 thread start <northwind> … --worktree mainon the plain folder creates no thread and prints:On main the same launch prints only
Project "northwind" (...) is not a Git repository.The replay agent never writes files, so the worktree scenarios make the edits themselves while the turn waits on a question, then check the member files on disk after the revert. The "Could not rename the worktree branch" notice appears because no text-generation model is configured in the scenario.
Not captured as stills: the diff panel prompt that names the found repositories (each scenario clicks through it), the sidebar folder menu (Add to umbrella, Remove member from umbrella), which appears only when the sidebar is grouped by project, and a project with an image icon.
Focused tests on 073aab0, all passing (run with
GIT_CONFIG_GLOBAL=/dev/nullso my global Git config stays out):CheckpointStore,CheckpointService,ThreadLaunchService,UmbrellaMembership,UmbrellaWorktree,umbrellaDiscovery,WorktreeBranchSync,ThreadPullRequestService,storageCleanup,WorktreeMcpService,ReviewService(11 files, 382 tests)Sidebar.logic,umbrellaMembership.logic,environmentGrouping,settingsScope,ChatView.logic(5 files, 177 tests)state/umbrella(6 tests)Earlier full CI. This fork has no Blacksmith runners, so the PR's own CI jobs queue until GitHub cancels them. At fbe0137 I ran the unchanged workflow on GitHub-hosted runners from a throwaway branch (runner labels swapped, the Blacksmith apt mirror file skipped, a 30-minute Test job). All 18 jobs passed: run 44214346447. That run predates every commit from a03894f on, so it covers none of the prompt, sidebar, palette, Git-root worktree or gitignored-member changes.
Not verified
vp run check:changedon the current head; only the focused tests above ran on it.The model and harness that did the work: Claude Opus 5.5 in Claude Code (T3 Code).
🤖 Generated with Claude Code