fix(issue-31): a claude purge removes every path the session owns, reports what is left, and waits for the process; the stop docs say a purge removes the row #59

Merged
Godopu merged 26 commits from fix/issue-31 into main 2026-10-17 16:25:21 +00:00
Showing only changes of commit 48cda51d85 - Show all commits
@@ -343,6 +343,12 @@ if purge and purge_uuid:
ctx = DiscoveryContext(workspace=ws, agent_name=agent, home_dir=home)
for item in adapter.purge_artifacts(purge_uuid, ctx):
print(f"purged: {item}", flush=True)
# Issue #31: report what still carries the uuid, as orc_onboard does.
residual = adapter.residual_artifacts(purge_uuid, ctx)
for item in residual:
print(f"WARN residual: {item}", flush=True)
if not residual:
print(f"residual: none (agent: {agent})", flush=True)
target[adapter.own_key] = None
elif purge and not purge_uuid:
print("WARN: --purge-conversation requested but no workspace-scoped UUID resolved; nothing purged", flush=True)