Repository navigation
#780 Group worktrees under one project on Home - #781
Merged
Merged
Conversation
/experimental/workspace is a different feature on v1 servers. The project's sandboxes come from GET /experimental/worktree?directory= as a string array; 404 still means an older server with no extra worktrees. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Pure domain for Home: added paths whose project id matches (never "global") merge into one project with its worktrees (main checkout first, then by folder), plus All / project / worktree scopes and the git row subtitle (project · branch · folder). Projects now carry the server name and the canonical main checkout. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Home lists one project per repository: the scope picker indents its worktrees (branch, main checkout or folder, session count), the dock reads "All N worktrees" or "branch · folder", rows show the branch instead of the path, and New session asks where to run for a multi-worktree project. Adding a worktree of a repo already on Home joins it; removing the project removes every member path. v1: sessions of worktrees nobody added (main checkout included) are listed once per project and refetched on the same session events as the added paths. Branch names load per worktree behind the list. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
v1 probed /experimental/workspace, a different feature. List the project's sandboxes from /experimental/worktree and put the main checkout first; a 404 on older servers means no extra worktrees. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Pure grouping by server project id (never "global" or unresolved), Home scopes with worktree ids, and row location parts. v2 current project now carries the canonical main checkout; projects carry their name. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A subtitle segment can carry a small mark (the branch icon) drawn in its color. Gallery shows a Branch subtitle. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Home sections, scope picker, dock, and new session follow Home projects: worktree rows under a project, branch and folder on session rows, a Run in choice for multi-worktree projects, joining an already-added repository, removing every member path. v1 lists sessions of worktrees that were never added and keeps them live on the same session events. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Compose rejects an empty alternateText; use a zero-width space so screen readers don't announce a replacement character. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Branch lookups ran in one sequential task per inventory pass and wrote whatever came back, so a request from an earlier pass (cancelled or answering late) could clear a branch a newer pass had loaded, and a failed lookup was never asked again until pull to refresh. Home now looks up each worktree directory on its own: only the newest lookup of a directory writes, a failure keeps the known branch and retries twice, and every inventory change asks for any worktree not yet answered. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Right after a v2 server starts, the first GET /api/vcs for a location
answers {"branch":{}} with no provider while VCS detection warms up; the
next call has the branch. Home took that first answer as "no branch", so
worktree rows stayed branchless until pull to refresh.
A v2 answer without a provider (and without a current branch) is now
unknown: Home keeps the last known branch and asks again after 1s and 3s,
then waits for the next inventory change or refresh, so folders the server
never detects stop asking.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Right after a v2 server (re)start, GET /api/vcs answers with an empty branch and no provider until VCS detection settles, and Home treated that as "no branch" until pull to refresh. Such an answer, or a failed request, is now unknown: Home keeps the last known branch and asks again after 1s and 3s, then waits for the next inventory change or refresh, so folders without git stop asking. Only the newest lookup of a directory writes its branch. Co-Authored-By: Claude Opus 5.5 <[email protected]>
12 tasks done
ivanfenenko
marked this pull request as ready for review
October 21, 2026 12:24
ivanfenenko
temporarily deployed
to
android-release
October 21, 2026 12:26 — with
GitHub Actions
Inactive
ivanfenenko
temporarily deployed
to
ios-release
October 21, 2026 12:26 — with
GitHub Actions
Inactive
8 tasks
This branch was previously 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.
Summary
global(v1 non-git folders, and repos with no commit or remote) never merge.<branch> · <folder>. Swiping the dock walks All → project → its worktrees → next project.GET /experimental/worktree; the app previously probed/experimental/workspace, which is a different feature./api/vcsanswer with noprovider(cold server, or a non-git folder) counts as "not known yet". It is retried after 1s and 3s, and an older lookup can't overwrite a newer answer.OpenCodeListItemsubtitle segments can carry an optional inline icon on both platforms.Checks
./gradlew :app:testDebugUnitTest :app:assembleDebugpassed, 2470 tests.ktlintCheckreports no new violations in changed files.Issue
Risks / Follow-ups
git worktree addfolder with no sessions doesn't show until it is used.🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmithwith what you need.