Repository navigation
fix(ui): prevent hidden session selection from bulk deletion - #117015
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 clears the Sessions page’s local bulk selection when roster search changes and adds a browser regression test proving deletion targets only the newly visible selected session. Merge readinessThis is a narrow, browser-covered repair for a real destructive selection-state bug, with no source-level correctness or security finding. Keep it open for human maintainer acceptance because the protected Priority: P1 Review scores
Verification
How this fits togetherThe Control UI lists Gateway sessions, lets an operator select rows for bulk actions, and sends selected session keys to the Gateway for deletion. Roster search changes which rows are visible, so page-owned selection state must not retain a hidden row into a destructive action. flowchart LR
Gateway[Gateway session list] --> Page[Sessions page]
Page --> Search[Roster search]
Search --> Rows[Visible session rows]
Rows --> Selection[Local bulk selection]
Selection --> Confirm[Delete confirmation]
Confirm --> Delete[Gateway deletion request]
Decision needed
Why: The existing filter and status-change paths already clear selection, and the proposed behavior prevents accidental transcript deletion; the protected Before merge
Agent review detailsSecurityNone. PR surfaceSource +1, Tests +58. Total +59 across 2 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep bulk selection page-owned and clear it whenever roster search changes the visible population, then merge after a human maintainer confirms that destructive bulk actions must not retain hidden selections and the exact-head checks finish green. Do we have a high-confidence way to reproduce the issue? Yes—source clearly establishes the mechanism: selection survives roster-search filtering, while deletion snapshots every selected key. The PR also supplies a Chromium regression that drives the sequence and inspects the resulting Gateway request. Is this the best way to solve the issue? Yes, subject to the maintainer selection-semantics decision: resetting the page-owned selection where search changes visible rows matches the existing filter and status-reset boundaries, instead of trying to compensate late in deletion. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against afa8fffab882. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
d625723 to
85ce28e
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) ...
…w#117015) 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 a destructive Sessions-page bug where selecting a thread, changing the roster search, and deleting a newly visible thread could silently delete the previously selected hidden thread and its transcript as well.
Why This Change Was Made
The canonical roster-search owner now clears the local bulk selection whenever the visible roster population changes. Existing intentional cross-page selection, sorting, grouping, Gateway authorization, and deletion behavior remain unchanged.
User Impact
Bulk deletion can no longer retain invisible selections from an earlier roster search. Users receive an immediate, accurate selection state before choosing visible threads to delete.
Evidence
36b80ada3ceae2de21b3d8710b883d778e4c4578.727216b014c15ab878486e0e1378c5564b84386e.85ce28efeec63acb3d9f33a0ca5845c79f09187d.d97b37ca060c28338a5e2f32aee8ad2df702af7b.agent:main:bravoreceivessessions.deletewithdeleteTranscript: true.