fix: retain shared agent workspaces (#70897)

Fixes #70889 and #70890.

Retains overlapping/shared agent workspaces during `openclaw agents delete`, keeps `--json` output machine-readable, and repairs the stale hook-runner test harness mock that blocked CI.

Thanks @kaseonedge.
This commit is contained in:
edge_kase
2026-04-24 18:22:06 -07:00
committed by GitHub
parent 52cc1ebac7
commit 2cacd2097b
7 changed files with 327 additions and 1 deletions

View File

@@ -150,6 +150,9 @@ Notes:
- `main` cannot be deleted.
- Without `--force`, interactive confirmation is required.
- Workspace, agent state, and session transcript directories are moved to Trash, not hard-deleted.
- If another agent's workspace is the same path, inside this workspace, or contains this workspace,
the workspace is retained and `--json` reports `workspaceRetained`,
`workspaceRetainedReason`, and `workspaceSharedWith`.
## Identity files