fix(my): scope subagent snapshots to the current session (#5976)

* fix(my): scope subagent snapshots to the current session

* test(my): reuse runtime fixture in session isolation checks
This commit is contained in:
chengyongru authored and GitHub committed 2026-09-29 17:44:37 +08:00
1 parent f18423800e
commit 66f5f2df15
6 files changed
+102 -6

No files matched your search

+5
View File
@@ -160,6 +160,11 @@ Agent: I've used ~53k tokens total so far. I'll keep my remaining replies concis
### "Subagent monitoring"
Subagent snapshots include only tasks created by the current session. This scope
also applies to `subagents._task_statuses.<task_id>` and nested fields. Without a
current session key, direct subagent checks return an error and the full overview
contains no tasks. Completed tasks are removed; this is not a result archive.
```text
Agent: Let me check on the background tasks.
→ my(action="check", key="subagents")