fix(stop): a purge reports its residual like orc_onboard (Issue #31)
stop called purge_artifacts only. It now prints `WARN residual: <path>` for each leftover or `residual: none (agent: <agent>)`, the strings orc_onboard prints. The row is still removed and the exit stays 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
366da3b3d6
commit
48cda51d85
1 file changed
+6
@@ -343,6 +343,12 @@ if purge and purge_uuid:
|
|||||||
ctx = DiscoveryContext(workspace=ws, agent_name=agent, home_dir=home)
|
ctx = DiscoveryContext(workspace=ws, agent_name=agent, home_dir=home)
|
||||||
for item in adapter.purge_artifacts(purge_uuid, ctx):
|
for item in adapter.purge_artifacts(purge_uuid, ctx):
|
||||||
print(f"purged: {item}", flush=True)
|
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
|
target[adapter.own_key] = None
|
||||||
elif purge and not purge_uuid:
|
elif purge and not purge_uuid:
|
||||||
print("WARN: --purge-conversation requested but no workspace-scoped UUID resolved; nothing purged", flush=True)
|
print("WARN: --purge-conversation requested but no workspace-scoped UUID resolved; nothing purged", flush=True)
|
||||||
|
|||||||
Reference in new issue
Block a user