fix(sessions): avoid guarded route-only entries

This commit is contained in:
Peter Steinberger
2026-04-27 21:10:44 +01:00
parent d62cb3c681
commit 465b621cf1
7 changed files with 71 additions and 6 deletions

View File

@@ -59,6 +59,13 @@ OpenClaw infers a pinned owner from `allowFrom` when all of these are true:
In that mismatch case, OpenClaw still records inbound session metadata, but it
skips updating the main session `lastRoute`.
## Guarded inbound recording
Channel plugins can mark an inbound session record as `createIfMissing: false`
when a guarded path must not create a new OpenClaw session. In that mode,
OpenClaw may update metadata and `lastRoute` for an existing session, but it
does not create a route-only session entry just because a message was observed.
## Routing rules (how an agent is chosen)
Routing picks **one agent** for each inbound message: