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.
titleOverridden=true.New session.tasks-index.sqlite contains their read-only Host projection.ZCodeTaskService.getTaskMeta and refreshes on Host metadata events. It does not depend on a sidebar/query-cache row or call readSession to obtain a title. Historical and archived sessions can have metadata before their CLI runtime is active.readSession / resumeSession returns a raw agent snapshot. Its projected task meta is only a runtime candidate and can be missing app-side titleOverridden.titleOverridden=true.New session must not overwrite a non-placeholder title, even when the snapshot has a newer updatedAt.taskList.newThread action label as a task title. Keep the existing untitled-fork label once fork metadata is known. Preserve the header layout and render the authoritative title when it arrives, without retaining another task's title or adding a timer/cache.workspaceIdentity?.trim() || workspacePath, matching remote workspace isolation. The active read also belongs to its scoped service/attachment and task ID; late responses cannot overwrite a newer target or request.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.