Skip to content

chimaera v0.13.0

Choose a tag to compare

@github-actions github-actions released this 08 Jul 23:08
87934c1
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>