fix(agents): treat TUI client label as current session

This commit is contained in:
Peter Steinberger
2026-04-27 10:45:07 +01:00
parent 27ee5c0098
commit dfe58a1b8e
8 changed files with 102 additions and 2 deletions

View File

@@ -82,7 +82,9 @@ agents alternate messages (up to 5 turns). The target agent can reply
or another visible session. It reports usage, time, model/runtime state, and
linked background-task context when present. Like `/status`, it can backfill
sparse token/cache counters from the latest transcript usage entry, and
`model=default` clears a per-session override.
`model=default` clears a per-session override. Use `sessionKey="current"` for
the caller's current session; visible client labels such as `openclaw-tui` are
not session keys.
`sessions_yield` intentionally ends the current turn so the next message can be
the follow-up event you are waiting for. Use it after spawning sub-agents when