# Task Title Authority Task title can come from several places during a session lifecycle. Renderer code must treat them as ordered candidates instead of letting the newest snapshot string always win. ## Title priority 1. User-renamed title with `titleOverridden=true`. 2. Agent-generated title from the session/title update pipeline. 3. First user query title used as the initial optimistic title. 4. The agent default placeholder `New session`. ## Renderer restore rule - `tasks-index.sqlite` / task list query cache is the indexed app-side metadata source for renamed titles. - `readSession` / `resumeSession` returns a raw agent snapshot. Its projected task meta is only a runtime candidate and can be missing app-side `titleOverridden`. - Restore, active header fallback, and task cache sync must merge raw snapshot meta with indexed/query-cache meta before writing renderer caches. - A raw snapshot title must not overwrite a title whose existing meta has `titleOverridden=true`. - `New session` must not overwrite a non-placeholder title, even when the snapshot has a newer `updatedAt`. - Generated titles may replace the first query title when there is no user override. ## Compatibility - Workspace-scoped title lookup uses `workspaceIdentity || workspacePath`, matching remote workspace isolation. - The rule applies to desktop `desktop-continuous` restore and web remote `web-remote-replayable` restore. Replayable recovery can use snapshots to refill runtime fields, but it must not bypass the same title authority merge.