Repository navigation
fix(ui): refresh filtered sidebar on agent navigation - #169774
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 changesThis PR refreshes filtered sidebar sessions immediately on explicit agent navigation while preserving deferred background refreshes. Example: With Archived selected, switch from main to research while the selected chat is loading.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR repairs a filtered-sidebar navigation delay still present on current main. No actionable introduced defects were found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI session controller consumes agent-selection intent and sidebar filters, requests scoped session lists through the existing session capability, and publishes matching rows to the sidebar. flowchart TD
A[Agent selection] --> B[Session data controller]
B --> C[Immediate refresh]
B --> D[Background admission]
C --> E[Scoped session list owner]
D --> E
E --> F[Filtered sidebar rows]
Technical reviewBest possible solution: Use the existing selection intent and scoped refresh owner to prioritize explicit filtered navigation without changing automatic startup admission. Do we have a high-confidence way to reproduce the issue? Current-main source shows the filtered navigation request entering chat-readiness admission, and the supplied mounted regression exercises that trigger; no code was executed during this read-only review. Is this the best way to solve the issue? The repair fits the existing ownership model, reuses immediate refresh behavior, and consumes same-agent intent so later automatic changes retain their ordering. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8571314385b5. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +12, Tests +15, Docs +2. Total +29 across 3 files. Added test files: 0. View PR surface stats
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, 4:47 AM ET / 08:47 UTC. |
|
Merged via squash auto-merge.
|
What Problem This Solves
Fixes: switching agents with a sidebar session filter can leave the session list empty until the selected chat finishes loading.
User Impact
Filtered sessions refresh immediately when you choose another agent, including when you switch back before the previous request finishes.
Why This Change Was Made
The existing session controller now consumes the selection owner's navigation intent before choosing an immediate or automatic refresh. Startup, reconnect, and background scope updates keep their existing chat-readiness ordering. No new state owner, Gateway API, or configuration is added.
Evidence
This is a request-ordering repair with unchanged presentation; proof exercises the registered sidebar against a deterministic Gateway fixture.