Skip to content

feat(web): refactor ws methods and implement dynamic sessions.list#296

Merged
everettjf merged 1 commit intomicroclaw:mainfrom
flyflypeng:main
Mar 24, 2026
Merged

feat(web): refactor ws methods and implement dynamic sessions.list#296
everettjf merged 1 commit intomicroclaw:mainfrom
flyflypeng:main

Conversation

@flyflypeng
Copy link
Copy Markdown
Contributor

fix #295

  • Rename all session-related WebSocket methods to standard sessions.* format (e.g., sessions.send, sessions.delete) for consistency and OpenClaw API compatibility.
  • Update sessions.list to accept dynamic agentId and search filters via SessionsListParams instead of using a hardcoded filter.
  • Add comprehensive unit tests in src/web.rs for sessions.list to verify filtering by agent ID, search string, and empty fallback logic.

fix microclaw#295

- Rename all session-related WebSocket methods to standard `sessions.*`
  format (e.g., `sessions.send`, `sessions.delete`) for consistency and
  OpenClaw API compatibility.
- Update `sessions.list` to accept dynamic `agentId` and `search` filters
  via `SessionsListParams` instead of using a hardcoded filter.
- Add comprehensive unit tests in `src/web.rs` for `sessions.list` to
  verify filtering by agent ID, search string, and empty fallback logic.
@flyflypeng flyflypeng requested a review from everettjf as a code owner March 23, 2026 13:38
@everettjf
Copy link
Copy Markdown
Contributor

Thank you. Merged

@everettjf everettjf merged commit 0601cbd into microclaw:main Mar 24, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor WebSocket method names to sessions.* and add dynamic filtering to sessions.list

2 participants