Auto-generated workspace names walked the marine-creature list in order
and deduped only within the active repo (the default when workspaces are
nested), so the first auto-named worktree in every repo landed on
"Nautilus". That guaranteed identical branch names across repos, which
appear flat and indistinguishable in the sidebar.
The in-order walk also produced "Nautilus-2", "Nautilus-3", ... within a
single repo: the suggester ignores branches left behind by deleted
worktrees, so it kept re-proposing "Nautilus", and the create-time retry
loop suffixed it to dodge the lingering branch. Random selection now
yields a fresh creature each time instead of marching the same name.
- Dedup against worktrees in every repo, not just the active one
- Pick randomly from the unused pool instead of the first list entry
- Lowercase the result to match branch-name convention (fix/seahorse)
- Expand the corpus 260 -> 552 (more marine species plus public-domain
mythological sea creatures) so random picks rarely repeat
getSuggestedCreatureName drops the now-unused repoId/nestWorkspaces
params; the RNG is injectable for deterministic tests.
Co-authored-by: Jinwoo-H <jinwoo0825@gmail.com>
Co-authored-by: Orca <help@stably.ai>
* fix(sidebar): omit branch line when it duplicates the workspace name
Un-renamed worktrees default their display name to the branch, so the
gray branch sub-line repeated the title verbatim. Hide it when the two
match, and add a native title tooltip to the title so a clipped name is
still recoverable now that the branch line no longer serves as the
untruncated copy.
* refactor(sidebar): collapse worktree card to one line when it has no second-line content
The unread bell used to stack vertically under the status dot, forcing a
height floor that left a blank band beneath single-line titles. Move the
bell inline into the title row's right cluster (leading the PR/ports
indicators) so the left column is just the dot and the card height tracks
its content. Gate the branch/badge sub-line so it only renders when it
carries something, and lift PR/review/ports indicators onto the title row
so they don't strand on their own line once the branch is hidden. Replace
the spelled-out "primary" badge with a compact amber star.
* refactor(sidebar): make CacheTimer presentational; fix card test mocks
Pass the resolved cache start time and TTL into CacheTimer as props so the
card and the timer no longer double-subscribe to the same store slices —
the card already derives the start time to gate its metadata row. Collapse
the now single-child status-dot wrapper. Add the new
usePromptCacheCountdownStartedAt export to the ./CacheTimer mocks the card
tests rely on.
* fix(sidebar): keep compact card title recovery accessible
Co-authored-by: Orca <help@stably.ai>
---------
Co-authored-by: Jinwoo-H <jinwoo0825@gmail.com>
Co-authored-by: Orca <help@stably.ai>