4 pages for session.receive.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Claude Code changelog
Claude Code CLI · in the page
changelog
…sumed after being killed * Fixed cloud sessions hanging when a mod's `session.receive` hook asked for permission before passing a message on * Fixed macOS background sessions that restart together aft…
Use the mods API
Claude Code CLI · in the page
plugins/mods/api
…When nothing was delivered, a toast notification gives the reason. `session.receive` and `session.send` let a mod observe the messages. Return `next(e)` from both to pass each message through unchan…
Mods reference
Claude Code CLI · in the page
plugins/mods/reference
…The conversation is about to be compacted | `{ skip: reason }` | | [`session.receive`](https://code.claude.com/docs/en/plugins/mods/api#send-and-receive-messages-between-sessions), [`session.send`](h…
Test a mod
Claude Code CLI · in the page
plugins/mods/test
…` arrives as a string even when your mod passed `{ sessionId }`. | | `session.receive` | `($, e) => ({ text: e.text })`. Fire it with `$.session.receive({ origin: { kind: 'peer-send-message' }, text }…