docs: propose demand-driven session sidebar collections - #64
Conversation
Co-authored-by: jesse-merhi <79823012+jesse-merhi@users.noreply.github.com>
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs real behavior proof before merge. Reviewed August 24, 2026, 6:58 PM ET / 22:58 UTC. ClawSweeper reviewWhat this changesAdds a 412-line draft RFC proposing independently cursor-paged, demand-driven session collections for the Control UI sidebar. Merge readinessKeep open for maintainer design review: this draft RFC follows the repository’s RFC lifecycle and proposes a substantial future Control UI/Gateway direction that current main does not already contain. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI sidebar consumes session data from the Gateway and presents it as operator-facing groups. This RFC inserts a collection manifest and per-collection cursor pages between canonical session ownership and the sidebar’s flattened virtual list. flowchart TD
A[Gateway session data] --> B[Collection membership rules]
B --> C[Sidebar collection manifest]
C --> D[Visible collection demand]
D --> E[Independent cursor pages]
E --> F[Flattened virtual sidebar]
Decision needed
Why: The RFC deliberately introduces a new cross-boundary Gateway/UI contract and leaves performance and provider-policy thresholds unresolved; code review cannot choose those product and ownership policies. Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Use this draft to settle the collection contract and migration boundaries, then create the implementation issue and update the RFC to accepted only after maintainer agreement. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR changes only an RFC document and does not patch runnable behavior. Is this the best way to solve the issue? Unclear: the async-tree approach is coherent and specifies ownership and migration boundaries, but core maintainers must decide whether this is the preferred product and Gateway contract. AGENTS.md: not found in the target repository. Codex review notes: model internal, reasoning high; reviewed against af708f0ddb6f. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
Related: openclaw/openclaw#126701
Related: openclaw/openclaw#126708
Discussion: https://discord.com/channels/1456350064065904867/1541083365103370340
What Problem This Solves
The Control UI sidebar currently derives heterogeneous groups from a bounded
global session page. An expanded category can therefore look complete while
omitting sessions that fall beyond the global page, and loading another global
page can redistribute rows into several unrelated groups.
This RFC gives maintainers a concrete architecture to review before replacing
that behavior.
Why This Change Was Made
The proposal models the sidebar as an async tree: a lightweight root manifest
returns authoritative section summaries, while each expanded and visible
collection owns an independent cursor-backed child connection. A single
flattened virtual list controls rendered demand, and collapsed or distant groups
load no child rows.
The RFC also defines exact local counts, a canonical attention summary,
collection membership precedence, filter/cursor fencing, live invalidation,
bounded caching, failure states, migration steps, alternatives, and unresolved
thresholds.
The RFC remains
status: draft; its implementation issue stays blank untilmaintainer acceptance.
AI-assisted: yes. Jesse Merhi directed the product requirements and is credited
as an RFC author and commit co-author.
User Impact
This PR changes no shipped behavior. If accepted and implemented, operators
will get complete ordinary groups when they open them, accurate collapsed
counts and attention indicators, and no background loading for sidebar groups
they are not viewing.
Evidence
rfcs/0000-template.mdand includes all required frontmatterand top-level sections.
session-attention owners before defining the proposal.
Virtual, and the Relay cursor connection contract.
git diff --cached --checkpassed before commit.ownership rule, or unsupported new dependency.
authorize exporting the unpublished RFC before publication.