Skip to content

fix(ui): keep collaborator drafts visible during typing pauses - #157100

Merged
steipete merged 1 commit into
mainfrom
openclaw/fix-disappearing-typing-message-bubble-jank
Sep 24, 2026
Merged

steipete merged 1 commit into
mainfrom
openclaw/fix-disappearing-typing-message-bubble-jank

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

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

Before: collaborator draft vanishes after a three-second pause

After

After: paused collaborator draft remains in the same bubble

  • Reproduced before editing: after three seconds in Chromium, the preview count fell from one to zero. The new pause regression failed on the original source.
  • Real Control UI with a mocked Gateway: pause keeps identical bubble bounds; resume updates it; explicit stop and a departure event remove it. Inspected before/after screenshots above show the same three-second pause.
  • Focused typing suite: 13 passed, 1.76 s Vitest wall time / approximately 0.14 s test time with one worker. Covers pause/resume, stable nodes, active-only announcements, profile/session-scoped cleanup, idle expiry, and delayed timers. Existing composer/lifecycle and presence sibling suites also passed.
  • UI production types and UI test graphs, changed-file lint, styles, formatting, i18n verification, and diff whitespace checks passed. Other changed-check guards passed; the reported allocation lint finding was fixed and its full changed-file lint selection rerun successfully.
  • Independent review through P2: scoped-clean after fixing the multi-tab orphan and delayed-timer findings.
  • Validation gap: the full session-suggestions.e2e.test.ts suite did not execute locally. Host preflight rejected proxied loopback HTTP; the documented network-isolated launcher passed its Node/pnpm/Chromium preflight, then its prerequisite ciArtifacts build failed in tsdown (with unresolved optional dependency diagnostics) before tests began. Source-harness Chromium boundary proof above passed. CI timing for the changed E2E file is not yet available.

Worked on by

Work sessions


View the OpenClaw team session

Worked on by:
- @Patrick-Erichsen

Co-authored-by: Patrick-Erichsen <[email protected]>
OpenClaw-Publication: 2daefc6a-92b3-4753-91f8-2094b25752b0
@clawsweeper

clawsweeper Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: M labels Sep 24, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 24, 2026 06:51
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 24, 2026
@clawsweeper

clawsweeper Bot commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 24, 2026, 2:58 AM ET / 06:58 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: 024ab1ae8fb2be24086637ad8377a460322ce307

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Direct visual proof and focused coverage support a coherent, bounded UI change; the full E2E suite remains for the normal CI gate.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The changed Control UI draft renderer was exercised in Chromium with a mocked Gateway; inspected before and after images show the draft remaining visible after the pause, supported by reported browser observations. The full E2E suite was blocked locally before execution. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The changed Control UI draft renderer was exercised in Chromium with a mocked Gateway; inspected before and after images show the draft remaining visible after the pause, supported by reported browser observations. The full E2E suite was blocked locally before execution. No stored-data contract changes.
Evidence reviewed 7 items Current main still has the reported behavior: The fetched main revision deletes a remote typing actor, including its preview, when the 2.5-second timer fires.
Introduced lifetime change: The proposed code retains a preview after typing activity ends and schedules its removal at the two-minute idle limit.
Scoped cleanup and presentation: Presence pruning matches profile identities watching the selected session; the renderer retains keyed bubbles and excludes paused actors from the active typing announcement.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +78, Tests +151, Docs +4. Total +233 across 11 files.

View PR surface stats
Area Files Added Removed Net
Source 7 96 18 +78
Tests 3 153 2 +151
Docs 1 4 0 +4
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 11 253 20 +233

Review metrics

Metric Value Why it matters
Draft lifetime 2.5 seconds active; up to 120 seconds idle The longer visibility window is the user-facing behavior maintainers are reviewing.
Code and test growth production +78 net lines; tests and test support +151 net lines The production growth implements separate activity and draft lifetimes with scoped cleanup; the tests cover the changed behavior.

Technical review

Best 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.

Labels

Label changes:

  • add P2: The PR addresses visible shared-chat transcript movement with limited product blast radius.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The changed Control UI draft renderer was exercised in Chromium with a mocked Gateway; inspected before and after images show the draft remaining visible after the pause, supported by reported browser observations. The full E2E suite was blocked locally before execution. No stored-data contract changes.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The changed Control UI draft renderer was exercised in Chromium with a mocked Gateway; inspected before and after images show the draft remaining visible after the pause, supported by reported browser observations. The full E2E suite was blocked locally before execution. No stored-data contract changes.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The changed Control UI draft renderer was exercised in Chromium with a mocked Gateway; inspected before and after images show the draft remaining visible after the pause, supported by reported browser observations. The full E2E suite was blocked locally before execution. No stored-data contract changes.

Label justifications:

  • P2: The PR addresses visible shared-chat transcript movement with limited product blast radius.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The changed Control UI draft renderer was exercised in Chromium with a mocked Gateway; inspected before and after images show the draft remaining visible after the pause, supported by reported browser observations. The full E2E suite was blocked locally before execution. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed Control UI draft renderer was exercised in Chromium with a mocked Gateway; inspected before and after images show the draft remaining visible after the pause, supported by reported browser observations. The full E2E suite was blocked locally before execution. No stored-data contract changes.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The changed Control UI draft renderer was exercised in Chromium with a mocked Gateway; inspected before and after images show the draft remaining visible after the pause, supported by reported browser observations. The full E2E suite was blocked locally before execution. No stored-data contract changes.

Evidence

What I checked:

  • Current main still has the reported behavior: The fetched main revision deletes a remote typing actor, including its preview, when the 2.5-second timer fires. (ui/src/pages/chat/chat-pane-sharing.ts:417, 7204d7df7b58)
  • Introduced lifetime change: The proposed code retains a preview after typing activity ends and schedules its removal at the two-minute idle limit. (ui/src/pages/chat/chat-pane-sharing.ts:456, 024ab1ae8fb2)
  • Scoped cleanup and presentation: Presence pruning matches profile identities watching the selected session; the renderer retains keyed bubbles and excludes paused actors from the active typing announcement. (ui/src/pages/chat/components/chat-typing-indicator.ts:15, 024ab1ae8fb2)
  • Browser boundary coverage: The changed browser test checks the preview after a three-second pause, its label, bubble geometry, accessibility status, and stopped caret. The PR reports that the full E2E suite did not run locally because its build prerequisite failed. (ui/src/e2e/session-suggestions.e2e.test.ts:278, 024ab1ae8fb2)
  • Visual behavior proof: I inspected the two downloaded PR images. The before image shows no collaborator draft after the pause; the after image shows a visible draft labeled “Paused · not sent.” The PR body identifies the environment as Chromium running the Control UI with a mocked Gateway.
  • Release baseline: The latest supplied release revision, v2026.9.6, also has the 2.5-second deletion path; it does not make this PR redundant. (ui/src/pages/chat/chat-pane-sharing.ts:417, eb377ac59e6c)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • RoboClaw: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit a82d352 into main Sep 24, 2026
186 of 192 checks passed
@steipete
steipete deleted the openclaw/fix-disappearing-typing-message-bubble-jank branch September 24, 2026 07:09
@roboclaw-bot roboclaw-bot mentioned this pull request Sep 24, 2026
2 of 8 tasks
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 25, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants