Repository navigation
fix(ui): keep My sessions independent of the viewed agent - #170072
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThe PR keeps My sessions across configured agents while the user views another agent’s chat. Example: Ada views Bob’s research chat while owning a planning session on main.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR fixes a current-main personal-sidebar scope bug, and no actionable introduced defect was found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI sidebar combines profile and status filters into a managed session query, then projects Gateway results into rows with agent-specific navigation and actions. flowchart LR
A[Profile and sidebar filters] --> B[Sidebar query owner]
C[Viewed chat agent] --> B
B --> D[Managed session lists]
D --> E[Gateway session results]
E --> F[Sidebar row projection]
F --> G[Row navigation and actions]
Technical reviewBest possible solution: Keep personal list membership independent of chat selection through the existing query, subscription, and projection owners. Do we have a high-confidence way to reproduce the issue? Current-main source shows the selected-agent restriction, and supplied before/after browser evidence demonstrates the resulting empty personal list; no target code was executed during this review. Is this the best way to solve the issue? The patch fixes the query scope at its existing owner and carries that scope through subscriptions, pagination, projection, and row navigation without adding configuration or a competing list owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e3ed1945ba38. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +25, Tests +101, Docs 0. Total +126 across 9 files. Added test files: 1. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 12, 2026, 2:21 PM ET / 18:21 UTC. |
…other agent's session (openclaw#170072) The sidebar's My sessions list inherited the agent filter of the currently open chat, so viewing another user's session in a different agent rendered an empty My sessions list. The sidebar request/controller and row projection now keep the current user's configured-agent scope independent of the viewed session.
What Problem This Solves
Opening another person's session in a different agent could empty My sessions, even when you had sessions elsewhere. The sidebar inherited the open chat's agent filter.
User Impact
My sessions continues to show your sessions across configured agents while you view or switch between other people's chats. Existing owner and status filters remain available. No configuration or migration is required.
Why This Change Was Made
The sidebar request owner now separates personal list scope from the selected chat's agent. Its subscription, refresh, pagination, and row projection use that same scope; links and actions resolve each row's agent.
The coupling predates the investigated deploy range: neither the sidebar render-churn change nor the Incognito change introduced it. This addresses the empty personal sidebar reproduction; the reported whole-UI freeze remains unproven.
Evidence
ownerId=profile-ada, agentId=researchyields zero visible rows. After:ownerId=profile-adawithconfiguredAgentsOnly=trueshows Ada's agent A row while Bob's agent B chat remains open.node scripts/check-changed.mjspassed the guards, ten dependent test type graphs, UI types, i18n/Lit checks, and the initial dead-export scan, then caught the controller's existing absolute line-cap debt. The catalog extraction clears that debt: final changed-file lint, stylelint, component types, formatting, line-cap guard, and a fresh complete dead-export scan all passed. Unchanged earlier checks were reused. No failed gate remains.Regression command:
Before:
After: