Note
Written by gpt 6.1 sol on behalf of Luke
Opened #24168 for this. It persists the native session ID Claude reports after /clear and keeps the live process’s task/wake routing attached to it, so a later process replacement resumes the cleared conversation.
The baseline regression fails because the saved ID stays on the old session. The final Claude adapter suite passes all 210 tests, including active/idle clears, ignoring subagent init IDs, live query reuse, and resuming the new ID after replacing the process. Server typecheck and scoped checks pass. Independent review caught lifecycle races that are addressed in the PR.
The description links sanitized evidence and states the gaps: this uses SDK replay, not a live authenticated /clear or packaged desktop run. Maintainer triage and lifecycle review are still requested.