fix(desktop): resolve dev Dock names across workspace path aliases

Merged
KI
2mo ago
+74-3

What & why

The development Dock label fell back to the worktree folder name when the host database stored Superset in its path but macOS resolved the directory as superset. The startup name lookup now falls back to comparing real filesystem paths, also covering symlink aliases, so restarting the dev server picks up the current workspace title.

This affects development naming only. Storage identity and URL schemes remain stable.

How I tested it

  • 11 tests pass across the host database name lookup and dev protocol script, including path aliases and subsequent renames.
  • Reproduced the mismatch against the local workspace database and verified the corrected lookup returns Debug intermittent fork failures for highfalutin-anteater.
  • Ran the naming script and launched bun dev; the bundle was renamed to Superset (Update Setup Script for Parallel and Synced Naming).app.
  • bun run lint, bun run typecheck (42 tasks), and bun run check:plugins pass.

Checklist

  • PR title follows conventional commits (type(scope): subject)
  • bun run lint and bun run typecheck pass (CI fails on lint warnings too)
  • "Allow edits from maintainers" is checked on fork PRs (not a fork)

Summary by cubic

Fixes the dev Dock name lookup so it resolves workspace titles even when the saved path uses a different case or a symlink alias. Previously an exact path string match failed when macOS normalized the directory name; now the lookup falls back to comparing real paths, so renaming a workspace still updates the dev Dock label. Storage identity and URL schemes are unaffected.