Repository navigation
fix(ui): make DONE moves visibly reversible - #122303
vyctorbrzezowski merged 3 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: found issues before merge. Reviewed August 11, 2026, 6:06 PM ET / 22:06 UTC. ClawSweeper reviewWhat this changesThis PR lets a categorized group-conversation session return to the Groups smart section and names that menu action “Move back to Groups.”. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked by patch quality or review findings - 9 items remain Keep open: the menu copy works, but the native drag path remains rejected and the sole categorized group session still has no Groups target. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI sidebar groups gateway session rows into manual categories and smart Groups/Threads/Coding sections. Drag and menu actions patch session category metadata, then the grouping layer determines where the row appears. flowchart LR
A[Gateway session rows] --> B[Sidebar grouping]
B --> C[Category or smart Groups section]
C --> D[Native drag and session menu]
D --> E[Category-null patch]
E --> B
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +76, Tests +142. Total +218 across 8 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Let sidebar grouping own deterministic Groups-target availability, use the controller’s tracked drag key during dragover, and prove the one-row native drag journey in a browser. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main rejects Groups drops, and the new drag-over path reads protected drag data before it can accept the native operation. Is this the best way to solve the issue? No: the shared predicate is a good direction, but the fix must also retain a deterministic Groups target and use drag-start state during dragover. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 459c70e14a2c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
ClawSweeper findings are addressed on
The requested grouping-owner refactor is complete. Production delta is +49 net lines for the shared predicate, its grouping/drag/menu consumers, and destination-specific copy; the review repair itself is net -6 lines. The stored-data warning is not applicable: this changes no schema, migration, protocol, or persistence shape and continues to write the existing Passes are clean: local UI 8,531 passed / 50 skipped; native browser scenario 1/1; final-head Testbox gate |
|
Merged via squash.
|
* origin/main: (1725 commits) fix(agents): preserve reply cleanup when cancellation throws (#122252) fix(ui): render disallowed link schemes as plain text (#122311) fix(test): isolate gateway helper env stubs (#122319) fix(ui): keep chat Markdown block rhythm consistent (#122289) test(cli): trim duplicate Hooks process cases (#122278) fix(ui): retain identity while agent roster loads fix(ui): preserve configured agent labels fix(plugins): keep startup convergence read-only (#122330) fix: preserve WebChat reply context after reloads (#122169) fix(ui): make DONE moves visibly reversible (#122303) fix(ui): keep inline-code punctuation attached (#122291) fix(google-meet): publish exports atomically (#122306) fix(channels): preserve failed agent run reactions (#122009) fix(ui): label patch file operations accurately (#122287) fix(windows): preserve Unicode LAN route aliases (#122263) test(media): synchronize transcode pool completion (#122279) fix(android): keep completed subagent activity visible for sixty seconds (#122089) fix(ui): humanize bare GitHub item links (#122285) refactor(qqbot): install plugin from Tencent package (#107295) chore: scope SQLite session lifecycle CI (#121917) ...
* fix(ui): make group category moves reversible * fix(ui): address native Groups drag review
Summary
Closes #122270.
Problem
PR #110259 introduced Groups as a smart section for
kind: "group"sessions, while custom categories continued to take precedence. PR #113948 intentionally kept built-in smart sections from becoming arbitrary persistence buckets.That left a one-way interaction: a group-conversation session could be categorized as Done, but Groups rejected the inverse drag even though the existing
{ category: null }write would deterministically return that session to Groups. The menu's "Remove from group" label also described the data operation instead of the visible destination.Design
This PR defines one category-clear predicate at the sidebar grouping owner. It returns true only when category grouping is active and the row is categorized, unpinned, and
kind: "group".The grouping owner, drag controller, and menu renderer consume that predicate:
{ category: null }patch.No persistence, protocol, smart-group classification, or color semantics change.
Evidence
Light theme
Before — the session is the sole group conversation, categorized as Done; Groups remains a visible inverse target and the menu names it:
After — a native pointer drag clears the category and places the same session in Groups:
Dark theme
Before — the same deterministic action and empty return target are visible:
After — the same session is back in Groups:
Verification
dropEffect: "none"; the menu still said "Remove from group". During review, replacing synthetic events with Playwright's nativedragToalso produced nosessions.patch, exposing the protected-DataTransferbug.{ category: null }, and passes in Chromium.tbx_01kzsbr9phfmqecj0wz0mkvs3e.tbx_01kzsef8c1y4qn0pyefa5pvn6p.Production code is +49 net lines; test and test-support code is +163 net lines. The production growth is the shared deterministic-destination predicate, its grouping/drag/menu consumers, and the outcome-specific copy. The controller removes its duplicated drag-acceptance guard so drag-over and drop cannot disagree.