pub(super) fn with_registry_session_id(
local: &AgentInstance,
registry_session_id: Option<&str>,
) -> AgentInstanceExpand description
The local row, with the registry’s session id when the local one is empty rather than an empty id the picker’s reattach would read as “start fresh” (SPEC_PANE_CLOSE_REOPEN_CONTINUITY_GUARANTEE_2026_07_27.md §4.1). The local row is normally fresher, but this holds for a row that predates the live write or raced it.