Repository navigation
fix(ui): simplify collaborator draft states and expiry - #159235
Conversation
Show is typing... for active drafts, switch to Draft after 10 idle seconds, and fade/collapse previews within the 30-second idle limit. Preserve renewed typing, reduced motion, and transcript scroll stability. Co-authored-by: vyctorbrzezowski <[email protected]>
|
🦞👀 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 26, 2026, 7:04 PM ET / 23:04 UTC. ClawSweeper reviewWhat this changesThe branch changes shared-chat collaborator previews to show a typing label, switch to Draft after 10 idle seconds, and fade away by 30 seconds, with matching tests and documentation. Merge readiness✅ Ready for maintainer review Keep this PR open. Current main still uses the two-minute draft lifetime and earlier labels; the branch offers a distinct Control UI improvement, and the review found no concrete patch defect. Priority: P3 Review scores
Verification
How this fits togetherGateway typing events feed temporary collaborator previews in the Control UI chat transcript. The browser owns their display state and removes them when typing stops, a message arrives, a participant leaves, or the idle deadline passes. flowchart LR
A[Gateway typing events] --> B[Per-person browser state]
B --> C{Recent edit?}
C -->|Yes| D[Typing preview]
C -->|Paused| E[Draft preview]
D --> F[Shared chat transcript]
E --> F
E --> G[Idle expiry]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +64, Tests +64, Docs 0. Total +128 across 12 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep the browser-owned draft lifecycle bounded while preserving immediate cleanup, stable transcript rows, and reduced-motion behavior. Do we have a high-confidence way to reproduce the issue? Not applicable as a broken-contract reproduction: current main explicitly defines the earlier label and two-minute lifetime, which the supplied before screenshot illustrates. Is this the best way to solve the issue? Yes. The branch changes the existing Control UI draft owner and keeps its renderer, tests, and documentation aligned; no competing implementation was found. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against fb720291b0a3. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Show is typing... for active drafts, switch to Draft after 10 idle seconds, and fade/collapse previews within the 30-second idle limit. Preserve renewed typing, reduced motion, and transcript scroll stability. Co-authored-by: vyctorbrzezowski <[email protected]>
What Problem This Solves
Fixes noisy collaborator draft labels and previews that linger for two minutes before disappearing abruptly. Related: #157100.
User Impact
Collaborator previews show is typing..., become Draft after 10 seconds without input, and disappear by 30 seconds. The final 300 ms fades the text before smoothly closing the space. New typing cancels the exit; reduced-motion users get no animation. Sending, clearing, departure, and session changes still remove previews immediately. No configuration or migration is needed.
Why This Change Was Made
Keep the stable draft bubbles introduced by the earlier fix while making their state simpler and their idle lifetime shorter. One cancellable timer owns each draft's active, idle, exit, and removal phases. The renderer receives the remaining exit budget so a delayed timer cannot extend the idle deadline. Boolean-only typing keeps its existing short expiry.
Evidence
Actual Control UI in Chromium with a mocked Gateway and synthetic people. Both screenshots use the same draft, viewport, theme, and ten-second idle point; the before image is from the parent source.
Before
After
Motion
Idle waits are shortened in the recording; the 120 ms fade and 180 ms gap collapse play at normal speed.
proof.mp4
Worked on by
Work sessions
View the OpenClaw team session