The same probe leak also affects Kiro CLI, set up as a local ACP command (kiro-cli acp --agent-engine=v3, Kiro CLI 2.35.1).
- On
session/new, Kiro persists the session straight away. The wire log shows_kiro/sessions/changedwith the new session inupsertedbefore any prompt, and asess_<id>directory under Kiro's own sessions folder. - A
runtime.start()that is then closed withoutsession/closeorsession/deleteleaves that session in Kiro's session list. I confirmed this with T3's ownAcpSessionRuntime; the leftover directories only disappeared after I deleted them manually.
One caution about the fix proposed here (runtime.deleteSession guarded by sessionCapabilities.delete): for agents that answer initialize in the v1 shape, such as Kiro, deleteSession currently fails locally and sends nothing, so it would not clean up either. That is tracked in #26927.