Repository navigation
docs: document three-layer session ownership - #125334
Conversation
User documentation for the session-ownership feature landed in #125057: the immutable creator / assignable owner / participant-history model, the Assign-to-me and Assign-to session menu actions, the sessions tool assign_owner action, the sidebar Owners facet with Involving-me, the pair-stack owner avatar, and agent-spawned session receipts (sessionUrl + owner acknowledgement). Adds the sessions.assignOwner method and ownership row projections to the protocol reference and a zh-CN glossary entry for the new link label.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 17, 2026, 12:34 PM ET / 16:34 UTC. ClawSweeper reviewWhat this changesThis PR documents the immutable creator, assignable owner, and participant-history session model across operator, agent-tool, Gateway protocol, Control UI, and subagent pages. Merge readinessThe prior P2 documentation finding is resolved at the current head, and the remaining wording matches current main’s ownership, participant, and visible-spawn contracts. No blocking correctness findings. Likely related people: steipete (high confidence). Priority: P3 Review scores
Verification
How this fits togetherThe Gateway records session ownership and participant history, then projects it to the Control UI, Gateway clients, and agent tools. Those consumers let operators assign responsibility, filter sessions, and understand visible spawned-session receipts. flowchart LR
A[Session creation and prompts] --> B[Gateway ownership records]
B --> C[Session row projections]
C --> D[Control UI]
C --> E[Agent session tools]
C --> F[Gateway clients]
E --> G[Visible spawn receipt]
Before merge
Agent review detailsSecurityNone. PR surfaceDocs +44. Total +44 across 6 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Merge the source-aligned documentation after the normal current-base refresh; no product or runtime change is needed. Do we have a high-confidence way to reproduce the issue? Not applicable: this docs-only PR was verified by tracing its claims to current-main source and the merged feature contract. Is this the best way to solve the issue? Yes. Documenting the shipped ownership model in its existing operator, tool, protocol, Control UI, and subagent pages is the narrowest maintainable solution; the earlier header-count correction is included. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against efde610a9f64. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
The chat header receives the already 4-capped participant projection and no total count, so its overflow branch cannot render. Describe up to four avatars instead (ClawSweeper P2).
|
Merged via squash.
|
* docs: document three-layer session ownership User documentation for the session-ownership feature landed in openclaw#125057: the immutable creator / assignable owner / participant-history model, the Assign-to-me and Assign-to session menu actions, the sessions tool assign_owner action, the sidebar Owners facet with Involving-me, the pair-stack owner avatar, and agent-spawned session receipts (sessionUrl + owner acknowledgement). Adds the sessions.assignOwner method and ownership row projections to the protocol reference and a zh-CN glossary entry for the new link label. * docs: drop nonexistent header facepile overflow count The chat header receives the already 4-capped participant projection and no total count, so its overflow branch cannot render. Describe up to four avatars instead (ClawSweeper P2).
What Problem This Solves
PR #125057 landed three-layer session ownership (immutable creator, assignable owner, participant history) with new Control UI surfaces, an agent tool action, and a Gateway method — but shipped no user documentation. The landing review artifact flagged docs as missing; this PR closes that follow-up.
Why This Change Was Made
A competent operator following the docs could not discover how to hand a session to a teammate, what the pair-stack avatar means, why "Involving me" needs a signed-in profile, or what the spawn receipt's
sessionUrl/Owner:acknowledgement lines are. The feature was effectively dark for doc readers.User Impact
docs/concepts/multi-user.mdis restructured around the three ownership layers: write-oncecreatedActor, GitHub-assignee-style mutable owner (menu paths Assign to me / Assign to…,sessionstoolassign_owner,sessions.assignOwnersemantics), and bounded best-effort participant history. New sections cover the Owners facet with Involving me (profile-backed matching only), the pair-stack/facepile avatar semantics with solo-mode suppression, and agent-spawned session receipts.docs/concepts/session-tool.mddocuments thesessionstoolassign_owneraction and the visible-spawn receipt (sessionUrl,owner, URL-first channel acknowledgement).docs/tools/subagents.mddocuments visible-spawn attribution to the requesting agent identity and the receipt contract.docs/web/control-ui.mdadds the Assign menu entries, the Owners filter (All owners / person / Involving me), People-sort now keying on the effective owner, and the header owner chip + participant facepile / sidebar pair-stack.docs/gateway/protocol.mdaddssessions.assignOwner(operator.write, identified caller, visibility-authorized,assignedBy/assignedAt) and thesessions.listownership projections (createdActor,owner, boundedparticipants≤4,participantCount,involvingMe).docs/.i18n/glossary.zh-CN.jsongains the "Session tools" link-label entry required by the i18n glossary gate.Evidence
Docs-only change, source-audited against the merged implementation (55ce95f): tool schema/handler (
src/agents/tools/sessions-tool.ts), gateway handler and scope (src/gateway/server-methods/sessions-mutations.ts,src/gateway/methods/core-descriptors.ts), involving-me predicate (src/gateway/session-utils-list.ts), participant recording/projection caps (src/config/sessions/session-accessor.sqlite-participants.ts, 32-cap; row projection 4-cap insrc/gateway/session-utils-row.ts), chip/facepile rendering (ui/src/components/session-owner-chip.ts,ui/src/pages/chat/components/chat-pane-header.ts), menu labels (ui/src/i18n/locales/en.ts), and spawn receipt (src/agents/tools/sessions-spawn-visible.ts,src/agents/tool-description-presets.ts).Checks run locally:
pnpm docs:check-mdx— 775 files, passpnpm docs:check-links— 6513 internal links, 0 brokenpnpm docs:check-i18n-glossary— pass (after glossary entry)pnpm formaton touched files,git diff --checkcleanRefs #125057.