Skip to content

fix(workspaces): show the help when a workspace can't find a base branch - #8

Open
decrypted wants to merge 2 commits into
mainfrom
fix/worktree-create-missing-base-hint
Open

decrypted wants to merge 2 commits into
mainfrom
fix/worktree-create-missing-base-hint

Conversation

@decrypted

Copy link
Copy Markdown
Owner

What

When a workspace can't be created because the repo has no usable base ref, for example a fresh git init with no commits, Orca now shows its existing help text:

Create an initial commit (for example on main), or select an existing branch in Create From, then try again.

It shows in the creation panel, the native-chat pending pane and every error toast.

  • formatWorkspaceCreateError already built { title, message, help }, but getWorkspaceCreateErrorToastMessage returned only the title whenever help existed. So the panel showed just "Couldn't create worktree · No base branch found · Retry · Dismiss".
  • getWorkspaceCreateErrorNotice() replaces it and returns { title, description }. Every caller passes the whole notice on, so the help can't be dropped again.
  • The creation entry gets errorHelp next to error; it is cleared together with error. Retry and Dismiss are unchanged; Retry works once the repo has a commit.
  • Other errors are unchanged. No new strings.

Why

Reported from real use: a git inited folder with no commits. The user saw "No base branch found" and a Retry button that can never succeed, and got no hint what to do.

Testing

  • pnpm check:changed on the box: 31/31.
  • workspace-create-error-format.test.ts: the missing-base-ref error keeps its help; a plain error keeps its message. Both fail if the change is reverted.
  • Fixture screenshots WorktreeCreationPanel--missingBaseBranch and --genericFailure, light and dark. The second commit adds the fixture and can be dropped.

Risk

Low. Display only.

🤖 Generated with Claude Code

@decrypted
decrypted force-pushed the fix/worktree-create-missing-base-hint branch 2 times, most recently from 6ba0fa4 to 554a094 Compare November 18, 2026 08:42
decrypted added a commit that referenced this pull request Nov 18, 2026
Upstream 8abbc91..2f5abbc (245 commits). Branches rebased onto it:
fix/linux-port-scan-inode-cache (#1; now on upstream's linux-proc-net-listeners
parser, which gained a uid field), feat/port-detection-setting (#2),
feat/remote-autoconnect-setting (#3), feat/reduce-motion-setting (#4),
feat/keep-awake-timed (#5), feat/sleep-project-and-group (#6),
feat/project-group-filter (#7; group hider composed over upstream's
folder-nested exemption), fix/worktree-create-missing-base-hint (#8), ci/fork-build.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@decrypted
decrypted force-pushed the fix/worktree-create-missing-base-hint branch from 554a094 to b0a1284 Compare November 19, 2026 08:18
decrypted added a commit that referenced this pull request Nov 19, 2026
Upstream 2f5abbc..7bc705a (345 commits). Branches rebased onto it:
#1 fix/linux-port-scan-inode-cache, #2 feat/port-detection-setting, #3 feat/remote-autoconnect-setting,
#4 feat/reduce-motion-setting, #5 feat/keep-awake-timed, #6 feat/sleep-project-and-group,
#7 feat/project-group-filter, #8 fix/worktree-create-missing-base-hint; plus ci/fork-build.

- #2: upstream stablyai#43836 took the refreshing flag away from the background scanner; the
  detection-off reset no longer clears it.
- #4: upstream's HoverScrollText and the composer glow use the motion-safe / motion-reduce
  variants; the bot activity list scrolls with motionSafeScrollBehavior.
- #7: kept upstream's bot-listed workspace exclusion next to the project-group scope.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@decrypted
decrypted force-pushed the fix/worktree-create-missing-base-hint branch from b0a1284 to 1ca3c73 Compare November 20, 2026 08:22
decrypted added a commit that referenced this pull request Nov 20, 2026
Upstream 7bc705a..3df243e (480 commits), plus #1-#8 rebased onto it
and ci/fork-build. Tree verified with tc + check:changed (42 checks).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@decrypted
decrypted force-pushed the fix/worktree-create-missing-base-hint branch 5 times, most recently from e4e5b4a to 90aab6a Compare November 27, 2026 08:13
decrypted and others added 2 commits November 30, 2026 11:52
The missing-base-ref error carries a next step (make an initial commit or
pick a branch), but the toast and creation-panel paths only showed its
title. Toasts now pass the help as their description, and the pending
creation keeps it as errorHelp so the creation panel and the chat setup
card render it under the error.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@decrypted
decrypted force-pushed the fix/worktree-create-missing-base-hint branch from 90aab6a to f9729ed Compare November 30, 2026 11:10
decrypted added a commit that referenced this pull request Nov 30, 2026
Upstream a788fad..9fa1d98 (1236 commits). Branches: #2 port detection,
#3 remote auto-connect, #4 reduce motion, #5 keep-awake (squashed to one commit), #6 project sleep,
#7 project-group filter, #8 base-branch hint, #9 mouse history buttons (new in local/build), ci/fork-build.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant