fix(gateway): bound sessions list responses

Bound default Gateway sessions.list responses to 100 rows when callers omit limit, with response metadata for totalCount, limitApplied, and hasMore.\n\nFixes #77062.
This commit is contained in:
Peter Steinberger
2026-05-04 06:51:56 +01:00
committed by GitHub
parent 1df6226d90
commit a224810a7f
7 changed files with 124 additions and 6 deletions

View File

@@ -16,6 +16,12 @@ until a message is processed. Use `openclaw channels status --probe`,
`openclaw status --deep`, or `openclaw health --verbose` when you need live
channel connectivity.
Gateway `sessions.list` responses are bounded by default so large long-lived
stores cannot monopolize the Gateway event loop. Pass an explicit positive
`limit` from RPC clients when a different result window is needed; responses
include `totalCount`, `limitApplied`, and `hasMore` when callers need to show
that more rows exist.
```bash
openclaw sessions
openclaw sessions --agent work