Repository navigation
fix(ui): preserve queued refreshes during session discovery - #146535
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. Reviewed September 13, 2026, 6:08 AM ET / 10:08 UTC (Revision 7). ClawSweeper reviewWhat this changesThe sidebar preserves queued tab-return and host-connection refreshes through session discovery, with regression coverage and updated documentation. Merge readiness✅ Ready for maintainer review The fix remains useful: current main still has the competing discovery lifecycle. The verified integration resolves the previous review concern, and no actionable patch defect remains. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI sidebar obtains session catalogs from the Gateway and pages through catalogs without visible sessions. Its refresh controller combines browser activation and host-presence events into scheduled scans while respecting foreground-chat loading and connection scope. flowchart TD
A[Tab return or host connection] --> B[Coalesced refresh request]
B --> C[Background scheduling]
C --> D[Gateway catalog scan]
D --> E[Bounded hidden-session discovery]
E --> F[Update sidebar rows]
E --> G[Consume queued refresh or schedule poll]
G --> C
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -21, Tests +129, Docs 0. Total +108 across 6 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep discovery and queued refresh consumption under one lifecycle while retaining foreground admission, bounded paging, and stale-result rejection. Do we have a high-confidence way to reproduce the issue? Yes, from source: queue an activation during a catalog scan that proceeds into hidden-page discovery; main consumes the pending refresh before discovery cancels its timer. The committed regressions cover that ordering, but this read-only review did not execute them. Is this the best way to solve the issue? Yes. Extending the existing refresh lifecycle removes the conflicting timer owner without adding settings, persistent state, or another scheduling path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against cc6e76d1cfe9. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (6 earlier review cycles)
|
|
Merged via squash.
|
* refs/heads/temp/pr-146883: (159 commits) fix: retain route ownership while discovering conversations (#146927) refactor: reuse plugin fixture shell runner (#146920) fix(worker): stop preparing disabled live previews (#146896) fix(runtime): support Bun across tooling suite (#146807) chore(i18n): refresh native locales (#146924) perf(secrets): limit expiry metadata to transient credentials (#146882) fix(ui): preserve queued refreshes during session discovery (#146535) test(ui): wait for quiet scrolling and close named file tabs (#146836) fix(ui): prevent Usage hour filters from freezing during DST (#146919) test(ui): share browser page cleanup across layout fixtures (#146805) ci: balance complete PR runtime test groups (#146916) improve(infra): reduce scheduling work for session notice bursts (#146818) improve: prepare Gateway skill commands asynchronously (#146812) improve(agents): skip unused assistant delivery parsing (#146858) improve(ui): reuse date formatters across timestamp lists (#146789) fix(tests): isolate installer and Docker shell snippets (#146897) test(heartbeat): share explicit channel configuration fixtures (#146853) fix: retain conversation reply claims through write admission (#146866) perf(sessions): bound history reads and stabilize cursor paging (#146770) fix(ui): let slow dashboard downloads finish before recovery (#146881) ...
* refs/heads/temp/pr-146833: (43 commits) fix(memory): preserve newer indexes and disclose automatic rebuild costs (#146908) fix: retain route ownership while discovering conversations (#146927) refactor: reuse plugin fixture shell runner (#146920) fix(worker): stop preparing disabled live previews (#146896) fix(runtime): support Bun across tooling suite (#146807) chore(i18n): refresh native locales (#146924) perf(secrets): limit expiry metadata to transient credentials (#146882) fix(ui): preserve queued refreshes during session discovery (#146535) test(ui): wait for quiet scrolling and close named file tabs (#146836) fix(ui): prevent Usage hour filters from freezing during DST (#146919) test(ui): share browser page cleanup across layout fixtures (#146805) ci: balance complete PR runtime test groups (#146916) improve(infra): reduce scheduling work for session notice bursts (#146818) improve: prepare Gateway skill commands asynchronously (#146812) improve(agents): skip unused assistant delivery parsing (#146858) improve(ui): reuse date formatters across timestamp lists (#146789) fix(tests): isolate installer and Docker shell snippets (#146897) test(heartbeat): share explicit channel configuration fixtures (#146853) fix: retain conversation reply claims through write admission (#146866) perf(sessions): bound history reads and stabilize cursor paging (#146770) ...
* temp/pr-146802: (51 commits) improve: reduce worktree filesystem stalls and archive syncs (#146906) fix(ui): avoid extra chat rail work while replies stream (#146883) improve(ui): speed up populated Usage timelines (#146947) test(gateway): retain auth recovery failure diagnostics (#146925) fix(tests): create private temporary home directories (#146931) fix(backup): preserve discovery under concurrent state writes (#146912) fix: keep queued deliveries in their original state directory (#146917) fix(discord): settle voice waveform work before releasing input (#146885) fix(memory): preserve newer indexes and disclose automatic rebuild costs (#146908) fix: retain route ownership while discovering conversations (#146927) refactor: reuse plugin fixture shell runner (#146920) fix(worker): stop preparing disabled live previews (#146896) fix(runtime): support Bun across tooling suite (#146807) chore(i18n): refresh native locales (#146924) perf(secrets): limit expiry metadata to transient credentials (#146882) fix(ui): preserve queued refreshes during session discovery (#146535) test(ui): wait for quiet scrolling and close named file tabs (#146836) fix(ui): prevent Usage hour filters from freezing during DST (#146919) test(ui): share browser page cleanup across layout fixtures (#146805) ci: balance complete PR runtime test groups (#146916) ...
…ssion-list-roster-batch-20260913 * commit 'f513c0f345f7f2514c49ccfbc00adc3f78b9a755': (46 commits) chore(i18n): refresh native locales (#146924) perf(secrets): limit expiry metadata to transient credentials (#146882) fix(ui): preserve queued refreshes during session discovery (#146535) test(ui): wait for quiet scrolling and close named file tabs (#146836) fix(ui): prevent Usage hour filters from freezing during DST (#146919) test(ui): share browser page cleanup across layout fixtures (#146805) ci: balance complete PR runtime test groups (#146916) improve(infra): reduce scheduling work for session notice bursts (#146818) improve: prepare Gateway skill commands asynchronously (#146812) improve(agents): skip unused assistant delivery parsing (#146858) improve(ui): reuse date formatters across timestamp lists (#146789) fix(tests): isolate installer and Docker shell snippets (#146897) test(heartbeat): share explicit channel configuration fixtures (#146853) fix: retain conversation reply claims through write admission (#146866) perf(sessions): bound history reads and stabilize cursor paging (#146770) fix(ui): let slow dashboard downloads finish before recovery (#146881) fix: share Doctor lifecycle coordination with SQLite workers (#146714) fix: retain native session model provenance (#146801) fix: settle embedded transcript repairs before session cleanup (#146842) feat(macos): improve agent navigation and chat layout (#146531) ...
What Problem This Solves
Fixes newly available sessions staying absent from the sidebar when you return to the tab or a host comes online while session discovery is paging.
User Impact
A queued refresh scans for newly available sessions as soon as the current discovery cycle finishes.
Why This Change Was Made
Keep hidden-page discovery inside the existing full refresh lifecycle, so one owner consumes queued refresh intent and schedules the next scan. Removing the competing request/timer lifecycle reduces production code by 21 lines while preserving checks that discard results from an old agent or Gateway connection.
Evidence
Inspected synthetic screenshots from the repository's mock-Gateway harness show the same 1,550 ms simulated interval: the session remains absent before the fix and appears afterward. The captures precede the later callback and fixture refinements; those refinements preserve the captured production flow. The screenshots were not rerendered after those refinements and do not represent a live Gateway or real-network timing.
This refresh preserves main's foreground-chat scheduling and shared deferred-promise test helper. The subsequent main update includes the test-import and test-shard repairs from #146862 and #146803 without changing this six-file patch. Required CI for the updated head is pending.