mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-16 20:11:08 +00:00
Codex P2: resolveWorkspaceTabLabel treated any workspace whose title equals "Workspace" as an untouched default and replaced it with a host label — so a workspace a user renamed to "Workspace" (or a snippet named "Workspace") lost its chosen name. Add an explicit Workspace.autoTitle flag. It is authoritative when present: - set false on user rename, snippet-created, named "New Workspace", and any createWorkspaceFromTargets call given an explicit name; - absent/true means the tab may derive a host label. Legacy workspaces without the flag fall back to the old default-title string check, so already-open default splits still get host labels and previously renamed workspaces keep their names. - domain/models/workspace.ts: add autoTitle field. - domain/workspace.ts: thread autoTitle through createWorkspaceFromSessionIds. - application/state/useSessionState.ts: mark rename / snippet / named creation paths as explicit; createWorkspaceFromTargets takes an optional name and only marks custom when one is given. - domain/sessionTabTitle.ts: derive only when autoTitle (with legacy string fallback); tests for explicit "Workspace" name and explicit auto-title.