Repository navigation
fix(ui): share bounded pagination across live session rosters - #117016
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 31, 2026, 8:40 PM ET / August 1, 2026, 00:40 UTC. ClawSweeper reviewWhat this changesThe PR extracts bounded Gateway session-page collection into a shared Control UI helper and uses it for child and Swarm rosters plus transcript search, preventing missed or duplicate session keys when updated sessions reorder between pages. Merge readinessNo blocking patch defect found: the shared collector preserves the established bounded, deduplicating pagination invariant for both live rosters and transcript search. The protected Likely related people: Sarah Fortune — current source author of the paged session flows, medium confidence. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI requests paged session lists from the Gateway for active child/Swarm rosters and to assemble the session keys searched for transcript matches. The new shared collector deduplicates keys and retries a bounded number of times when the Gateway's updated-time ordering shifts while those pages are being fetched. flowchart LR
Gateway[Gateway session pages] --> Collector[Bounded page collector]
Collector --> Dedup[Session-key deduplication]
Dedup --> Roster[Child and Swarm rosters]
Dedup --> Search[Transcript session-key search]
Search --> Results[Transcript results]
Decision needed
Why: The patch is coherent and proof-positive, but the repository's protected Before merge
Agent review detailsSecurityNone. PR surfaceSource +20, Tests +130. Total +150 across 5 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one canonical bounded session-page collector, retain the focused reordered-page regressions, and merge only after a maintainer confirms the current merge result and required checks for the reviewed head are complete. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: the current transcript path advances an offset-sorted roster only once, while the focused PR test demonstrates how a session moved across that boundary is otherwise omitted. I did not execute the UI suite locally in this read-only review. Is this the best way to solve the issue? Yes. Reusing the roster's bounded retry-and-deduplication invariant in a single session-page owner is narrower and safer than adding transcript-search-specific retry logic or accepting duplicate session-key submissions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against afa8fffab882. 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) |
d99a014 to
1486ced
Compare
|
Merged via squash.
|
* origin/main: (217 commits) fix(messages): reply actions leak citation markers and reply/poll answers draw the no-reply fallback (openclaw#116909) fix(slack): let durable ingress retry transient thread lookups (openclaw#117135) refactor(doctor): consolidate shipped state migration ownership (openclaw#117142) fix(ai): Codex stream shows internal parser text on a malformed frame (openclaw#116966) fix: guard every migrated session accessor path (openclaw#117140) fix(terminal): measure unicode display width consistently (openclaw#117062) fix(openai): clear ChatGPT SSE fallback per session (openclaw#117123) fix(mistral): reject incomplete streamed tool terminals (openclaw#117137) fix(ai): preserve structured chat content and refusals (openclaw#117136) fix(doctor): persist normalized agent roster (openclaw#117115) fix(signal): avoid replay after ambiguous quote delivery errors (openclaw#117134) fix(cron): reject disabled delivery accounts when scheduling (openclaw#116899) fix(gateway): honor HTTP If-Modified-Since media validators (openclaw#117133) fix(config): delete one array element per config patch delete (openclaw#116463) fix(plugins): report installed dependency health authoritatively (openclaw#117029) fix(ui): recover moving sessions across paged gateway rosters (openclaw#117016) fix(ui): clear hidden session selection before bulk deletion (openclaw#117015) fix(discord): avoid replaying ambiguous voice deliveries (openclaw#117127) fix(ui): scope Gateway reconnect lineage to its target (openclaw#117125) fix(models): expose runtime provider catalogs in browse views (openclaw#116857) ...
* commit 'c41f033b87545b658215a9c3bbe03f88fbaa867d': (347 commits) refactor(plugins): consolidate descriptor and startup ownership (openclaw#117146) fix(messages): reply actions leak citation markers and reply/poll answers draw the no-reply fallback (openclaw#116909) fix(slack): let durable ingress retry transient thread lookups (openclaw#117135) refactor(doctor): consolidate shipped state migration ownership (openclaw#117142) fix(ai): Codex stream shows internal parser text on a malformed frame (openclaw#116966) fix: guard every migrated session accessor path (openclaw#117140) fix(terminal): measure unicode display width consistently (openclaw#117062) fix(openai): clear ChatGPT SSE fallback per session (openclaw#117123) fix(mistral): reject incomplete streamed tool terminals (openclaw#117137) fix(ai): preserve structured chat content and refusals (openclaw#117136) fix(doctor): persist normalized agent roster (openclaw#117115) fix(signal): avoid replay after ambiguous quote delivery errors (openclaw#117134) fix(cron): reject disabled delivery accounts when scheduling (openclaw#116899) fix(gateway): honor HTTP If-Modified-Since media validators (openclaw#117133) fix(config): delete one array element per config patch delete (openclaw#116463) fix(plugins): report installed dependency health authoritatively (openclaw#117029) fix(ui): recover moving sessions across paged gateway rosters (openclaw#117016) fix(ui): clear hidden session selection before bulk deletion (openclaw#117015) fix(discord): avoid replaying ambiguous voice deliveries (openclaw#117127) fix(ui): scope Gateway reconnect lineage to its target (openclaw#117125) ...
…aw#117016) Co-authored-by: Peter Steinberger <[email protected]>
* commit '31f24547a94a8bd74a32e42cde1783591c5804d9': (347 commits) refactor(plugins): consolidate descriptor and startup ownership (openclaw#117146) fix(messages): reply actions leak citation markers and reply/poll answers draw the no-reply fallback (openclaw#116909) fix(slack): let durable ingress retry transient thread lookups (openclaw#117135) refactor(doctor): consolidate shipped state migration ownership (openclaw#117142) fix(ai): Codex stream shows internal parser text on a malformed frame (openclaw#116966) fix: guard every migrated session accessor path (openclaw#117140) fix(terminal): measure unicode display width consistently (openclaw#117062) fix(openai): clear ChatGPT SSE fallback per session (openclaw#117123) fix(mistral): reject incomplete streamed tool terminals (openclaw#117137) fix(ai): preserve structured chat content and refusals (openclaw#117136) fix(doctor): persist normalized agent roster (openclaw#117115) fix(signal): avoid replay after ambiguous quote delivery errors (openclaw#117134) fix(cron): reject disabled delivery accounts when scheduling (openclaw#116899) fix(gateway): honor HTTP If-Modified-Since media validators (openclaw#117133) fix(config): delete one array element per config patch delete (openclaw#116463) fix(plugins): report installed dependency health authoritatively (openclaw#117029) fix(ui): recover moving sessions across paged gateway rosters (openclaw#117016) fix(ui): clear hidden session selection before bulk deletion (openclaw#117015) fix(discord): avoid replaying ambiguous voice deliveries (openclaw#117127) fix(ui): scope Gateway reconnect lineage to its target (openclaw#117125) ...
What Problem This Solves
Fixes silent missing transcript-search results when an active session changes its
updatedAtorder while the Control UI loads multiple Gateway session pages. The previous implementation could skip an existing matching session and submit the same session key more than once.Why This Change Was Made
The Gateway recalculates its
updatedAt-sorted offset window for everysessions.listrequest. Swarm/child hydration already handled this with bounded repaging and key deduplication. This change extracts that proven algorithm into one shared UI session-list owner and reuses it for transcript search.The refactor preserves child and Swarm page sizes, cancellation, once-per-page lifecycle timestamps, filter options, transcript null/stalled-cursor errors, and the Gateway's 200-key search limit.
User Impact
Transcript search now finds existing messages even when active sessions move between pages during the search. Each session is searched once, and existing child/Swarm roster hydration continues to behave identically.
Evidence
36b80ada3ceae2de21b3d8710b883d778e4c4578.727216b014c15ab878486e0e1378c5564b84386e.1486ced12850e74dd1ae345ced1724d3f17d7def.47b2b57dd35f434284bbb239f472c7911aa5278f.agent:main:missed; transcript search returned an empty result.