You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: window titles name the workspace (and host, when remote) (#26)
## Problem
Native windows were titled **"Sherlock — chimaera"** — just the host.
With several remote windows open that's ambiguous, and the workspace
(what you actually tell windows apart by) was missing entirely. The
webview doesn't mirror `document.title` to the OS titlebar, so the
native title was stuck at the Rust builder default.
## Change
The title now leads with the workspace and adds the host **only when
remote**:
| context | title |
|---|---|
| remote, in a workspace | `crc_finish • Sherlock — chimaera` |
| local, in a workspace | `crc_finish — chimaera` |
| remote home | `Sherlock — chimaera` |
| local home | `chimaera` |
The SPA sets both `document.title` (browser tab) and — via a new
`setNativeWindowTitle` in `native.ts` (a guarded Tauri
`getCurrentWindow().setTitle` passthrough, no-op in a browser) — the
native titlebar, in the existing title `$effect`, so it updates as you
switch workspaces within a window. The unread-attention `(n)` prefix is
preserved.
## Verified live
Against the isolated daemon:
- Local window → `document.title` = `priceless-euler-624d05 — chimaera`
(no host).
- Simulated remote (host = Sherlock) → `priceless-euler-624d05 •
Sherlock — chimaera`.
- No console errors. `svelte-check` clean; no Rust changed.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>