Repository navigation
fix(ui): keep collaborator drafts visible during typing pauses - #157100
Conversation
Worked on by: - @Patrick-Erichsen Co-authored-by: Patrick-Erichsen <[email protected]> OpenClaw-Publication: 2daefc6a-92b3-4753-91f8-2094b25752b0
|
🦞👀 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 24, 2026, 2:58 AM ET / 06:58 UTC. ClawSweeper reviewWhat this changesThe Control UI keeps a collaborator’s unsent chat preview visible during a typing pause, labels it as paused, and clears it on stop, departure, or idle expiry. Merge readiness✅ Ready for maintainer review Keep open. Current main still removes collaborator previews after 2.5 seconds, and the PR provides visible evidence of the proposed pause behavior. I found no definite introduced defect. Priority: P2 Review scores
Verification
How this fits togetherThe Gateway sends typing and presence events for shared sessions. The Control UI turns them into temporary chat bubbles and removes those bubbles when their session or viewer state changes. flowchart LR
A[Shared session] --> B[Gateway typing events]
B --> C[Control UI draft state]
D[Presence and session changes] --> C
C --> E{Active or paused?}
E --> F[Temporary chat bubble]
E --> G[Clear or expire]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +78, Tests +151, Docs +4. Total +233 across 11 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep the paused preview as bounded, view-owned state tied to the Gateway’s session and presence identities. Do we have a high-confidence way to reproduce the issue? Yes. Current main’s timer deletes the preview after 2.5 seconds, so a shared-session draft followed by a three-second typing pause has a clear source-backed reproduction path; I did not execute it in this read-only review. Is this the best way to solve the issue? Yes. Separating the short typing signal from the bounded preview lifetime fits the existing Control UI owner and retains its session and presence cleanup paths. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7204d7df7b58. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
…law#157100) Worked on by: - @Patrick-Erichsen OpenClaw-Publication: 2daefc6a-92b3-4753-91f8-2094b25752b0 Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: Patrick-Erichsen <[email protected]>
What Problem This Solves
Fixes collaborator draft bubbles disappearing after a 2.5-second typing pause, which removes and reinserts a transcript row as the person thinks and resumes typing.
User Impact
Normal pauses keep the unsent message visible in the same bubble, labeled Paused · not sent. Sending, clearing or blurring the composer, leaving the session, and reconnecting still clear previews. Abandoned previews expire after two minutes without an edit, including when a browser suspends the timer. No configuration or migration is required.
Why This Change Was Made
Separate the short typing-activity timeout from the lifetime of an already visible draft. Paused previews keep their keyed DOM node and geometry, stop the caret animation, and leave the active-typing accessibility announcement. Presence updates retire departed profile viewers without confusing another agent's global session or an unqualified identity.
Evidence
Before
After
Worked on by
Work sessions
View the OpenClaw team session