Skip to main content

Module session

Module session 

Source
Expand description

The session RPCs: listrecentsessions (the My Agents list, recent.rs) and the agent-anchored session zone (zone.rs). register only wires each command to its named function.

Modules§

recent 🔒
listrecentsessions, moved out of register unchanged as named steps. It joins the agents the shared registry knows with this channel’s own instances, enriches each with its definition, account line, memory and last activity, and answers the picker’s “My Agents” list. The cascade follow-up (2026-05-23) added it; the reattach itself is the existing continuation flow (continueOfInstanceId + workDirOverride, PR #977).
zone 🔒
The agent-anchored session zone RPCs (agent:session:read, write_state, append_output, archive, list_archives; Option E, PR 1 of 2), moved out of register unchanged as named functions. A write or an archive is made by the agent itself or the AgentMux window, never another agent.

Functions§

definition_summary_attempted 🔒
At-most-once-per-process-lifetime claim set for definition-summary generation attempts triggered from listrecentsessions — see the call site in recent.rs and db_agent_activity_summaries (OBJECT_SCHEMA_VERSION v28). HashSet::insert returns true only the first time a given definition_id is claimed; every later call for the same id (a repeat poll of “My Agents”) sees false and does not re-spawn.
register
register_recent_sessions 🔒
register_session_zone 🔒