5a4c3b32d0
Agent-less producers (session.activate of a lazily-resumed session via _fallback_session_info, session.info events from agent-less cwd switches) replace state.info with payloads that omit stored_session_id, so the exit handler's recovery target went stale/null after such a switch. Keep the durable id in a dedicated ui.storedSid field written at every sid transition (create/resume/activate), read it from there in the exit handler, and when a session.info payload omits it, carry the tracked id forward onto info.