Skip to content

Use fish species for default worktree names - #462

Merged
nwparker merged 1 commit into
stablyai:mainfrom
colinchambachan:feat-fish-names
Apr 11, 2026
Merged

nwparker merged 1 commit into
stablyai:mainfrom
colinchambachan:feat-fish-names

Conversation

@colinchambachan

@colinchambachan colinchambachan commented Apr 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Swap Orca's default worktree suggestions from the old space-themed list to a fish-themed list instead.

This keeps the existing suggestion behavior the same:

  • deterministic ordering
  • collision avoidance across the right namespace
  • -2, -3, etc. suffix fallback once the base list is exhausted
  • no overwriting of user-edited custom names when the repo selection changes

It is, admittedly, a slightly silly change, but it also consolidates the theme more cleanly for the product.

Screenshots

image

Testing

  • pnpm lint
  • pnpm typecheck
  • pnpm test
  • pnpm build
  • Added or updated high-quality tests that would catch regressions, or explained why tests were not needed

AI Review Report

I ran a focused code review on the changed files with my AI coding agent, with the review explicitly checking correctness, regression risk, cross-platform path behavior, and UI state preservation.

What it checked:

  • suggestion ordering stays deterministic
  • collision handling is unchanged for nested vs flat workspaces
  • basename extraction still works for POSIX and Windows path separators
  • repo changes only reapply the suggestion when the field is blank or still auto-suggested
  • no shortcut, label, shell, IPC, or Electron menu behavior was changed accidentally

What it flagged:

  • the fish corpus initially skewed too small and included some names that read poorly as UI defaults

What was changed or verified as a result:

  • expanded the corpus to keep collisions rare
  • removed the clearly poor/slur-adjacent defaults from the list
  • added focused tests for Windows-style paths, trailing separators, suffix fallback, case-insensitive matching, and the non-overwrite behavior for custom input

Cross-platform compatibility review summary:

  • macOS, Linux, and Windows compatibility was explicitly reviewed
  • no shortcut handling, shortcut labels, shell behavior, or Electron platform-specific menu logic changed in this PR
  • path handling remains cross-platform by routing basename extraction through the shared renderer path utility, and tests cover Windows-style \\ separators as well as trailing separators

Security Audit

Basic security audit summary from the AI review:

  • no new IPC surfaces were added
  • no command execution, shell invocation, auth flow, or secret handling changed
  • no dependency changes were introduced
  • the only path-sensitive logic touched in behavior is default-name collision detection, which continues to use basename-only comparisons rather than trusting arbitrary path segments
  • sanitization still flows through the existing sanitizeWorktreeName() path during actual worktree creation; this PR does not weaken that logic

Follow-up needed:

  • none identified for security; this is a renderer-side default-name data swap plus test coverage

Notes

  • Manual visual verification was done on macOS in the Electron app; the screenshot above shows the create-worktree dialog suggesting Salmon by default.
  • Automated coverage now checks Windows-style worktree paths and trailing-separator handling for the suggestion helper.
  • The screenshot asset is committed in this branch so the PR can render it directly.

@colinchambachan
colinchambachan marked this pull request as ready for review April 11, 2026 04:12
@AmethystLiang
AmethystLiang requested a review from nwparker April 11, 2026 04:26
@nwparker

Copy link
Copy Markdown
Contributor

It's a good change
𓆟𓆝 𓆟 𓆞 𓆝 𓆟

@nwparker
nwparker merged commit 4c9670b into stablyai:main Apr 11, 2026
2 checks passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
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.

2 participants