nexo_lifecycle_event
Record durable lifecycle events such as close, delete, archive, or switch to track conversation state and enable diary-triggering actions with a live session ID.
Instructions
Record a durable lifecycle event (close/delete/archive/switch/app-exit/window-close). In v7.5 Brain returns a canonical_actions plan for diary-triggering actions with a live session_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event_id | Yes | UUID minted by the client. Primary idempotency key. | |
| action | Yes | One of ``close`` / ``delete`` / ``archive`` / ``switch`` / ``app-exit`` / ``window-close``. | |
| conversation_id | Yes | Client-side conversation identifier. | |
| session_id | No | Claude session id that backs the conversation, when known. Optional. | |
| reason | No | Free-form origin tag. Default ``user_action``. | user_action |
| payload_snapshot | No | JSON-encoded snapshot of the conversation at the moment of the click (title, last_message_at, is_active, etc). Accepts an empty string if nothing was snapped. | |
| source | No | Client identifier. Default ``desktop``. | desktop |
| schema_version | No | Event schema version the client emitted. Default 1. |