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 ofregisterunchanged 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 ofregisterunchanged 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 inrecent.rsanddb_agent_activity_summaries(OBJECT_SCHEMA_VERSION v28).HashSet::insertreturnstrueonly the first time a givendefinition_idis claimed; every later call for the same id (a repeat poll of “My Agents”) seesfalseand does not re-spawn. - register
- register_
recent_ 🔒sessions - register_
session_ 🔒zone