You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3a3ad61
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/gateway/config-tools.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -396,7 +396,8 @@ Configures inbound media understanding (image/audio/video):
396
396
397
397
Controls which sessions can be targeted by the session tools (`sessions_list`, `sessions_history`, `sessions_send`).
398
398
399
-
Default: `tree` (current session + sessions spawned by it, such as subagents).
399
+
Default: `tree` (current session + sessions spawned by it, such as subagents, plus ambient
400
+
watched group sessions for the same agent).
400
401
401
402
```json5
402
403
{
@@ -412,7 +413,7 @@ Default: `tree` (current session + sessions spawned by it, such as subagents).
412
413
<AccordionGroup>
413
414
<Accordiontitle="Visibility scopes">
414
415
- `self`: only the current session key.
415
-
- `tree`: current session + sessions spawned by the current session (subagents).
416
+
- `tree`: current session + sessions spawned by the current session (subagents). For read operations, it also includes same-agent group sessions that the current session watches through ambient group awareness.
416
417
- `agent`: any session belonging to the current agent id (can include other users if you run per-sender sessions under the same agent id).
417
418
- `all`: any session. Cross-agent targeting still requires `tools.agentToAgent`.
418
419
- Sandbox clamp: when the current session is sandboxed and `agents.defaults.sandbox.sessionToolsVisibility="spawned"` (the default), visibility is forced to `tree` even if `tools.sessions.visibility="all"`.
@@ -423,6 +424,12 @@ Default: `tree` (current session + sessions spawned by it, such as subagents).
423
424
</Accordion>
424
425
</AccordionGroup>
425
426
427
+
With the default `session.dmScope: "main"`, human activity in a group makes that same-agent group
428
+
session ambiently visible to the agent's main session. In a multi-user setup, `"main"` also shares
429
+
one DM session across users, so each user routed there can read from ambiently watched groups,
430
+
including through session-memory `memory_search`. Use a per-peer `dmScope` for DM isolation, or set
431
+
`tools.sessions.visibility: "self"` to opt out of ambient watched-session reads.
432
+
426
433
### `tools.sessions_spawn`
427
434
428
435
Controls inline attachment support for `sessions_spawn`.
0 commit comments