Skip to content

fix(ui): simplify collaborator draft states and expiry - #159235

Merged
roboclaw-bot merged 1 commit into
mainfrom
openclaw/change-typing-indicator-text
Sep 26, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
openclaw/change-typing-indicator-text

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

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

Before: a collaborator draft labeled Paused · not sent

After

After: the same collaborator draft labeled Draft

Motion

Idle waits are shortened in the recording; the 120 ms fade and 180 ms gap collapse play at normal speed.

proof.mp4
  • Chromium checks passed at desktop and phone widths, including reduced motion, cancellation on resumed typing, independent collaborator expiry, and a stable assistant reading position. Real-time samples reached zero row height before DOM removal.
  • Typing suite: 25 passed, 2.19 s local Vitest wall time with one worker; chat-view and lifecycle siblings add 364 passing tests. Existing Gateway typing suites also passed (28 tests). Hosted CI measured the typing suite at 0.593 s test time / 2.503 s module elapsed (Bun UI shard 3/3), and the full session-suggestions E2E file passed 7 tests in 10.653 s (UI E2E shard 3/9).
  • UI production types and all affected test type graphs passed. Changed-source lint, styles, formatting, i18n verification, and diff checks passed. Independent review through P2 identified a test-view type mismatch, which was fixed and type-checked; an allocation-lint finding was also fixed and the full changed-file lint selection rerun successfully.
  • Exact-head CI passed: 75 successful jobs, 18 skipped, zero failures, including all three UI shards, all nine UI E2E shards, performance/i18n, docs, lint/types, and the required CI gate. ClawSweeper completed its exact-head review with no actionable findings.
  • Validation scope: source-harness browser proof, not a deployed Gateway. Real-Gateway UI E2E and native-platform jobs were skipped, not claimed as passing coverage. No preview aggregation or layout redesign is included.

Worked on by

Work sessions


View the OpenClaw team session

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]>
@clawsweeper

clawsweeper Bot commented Sep 26, 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 26, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 26, 2026 22:58
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 26, 2026
@clawsweeper

clawsweeper Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 26, 2026, 7:04 PM ET / 23:04 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: 93392b59dff74d79f761443ed305da6a82c504e7

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused implementation and useful browser evidence support the change, with motion inspection limited by the reviewer environment.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): The changed browser-owned draft state is exercised in a stated Chromium mock-Gateway session; inspected before/after screenshots directly show the improved idle label, and the PR records after-fix expiry, cancellation, and reduced-motion observations. The motion file could not be inspected because ffprobe was unavailable and browser retrieval failed. 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 browser-owned draft state is exercised in a stated Chromium mock-Gateway session; inspected before/after screenshots directly show the improved idle label, and the PR records after-fix expiry, cancellation, and reduced-motion observations. The motion file could not be inspected because ffprobe was unavailable and browser retrieval failed. No stored-data contract changes.
Evidence reviewed 7 items Current main behavior: Current main retains the 120-second draft idle limit, so it does not implement this PR's 30-second expiry.
Current documented behavior: The current-main chat guide describes the earlier Paused · not sent label and two-minute expiry.
Introduced lifecycle: The pinned PR delta changes the draft deadlines and uses one cancellable per-person timer to enter the exit phase and remove the preview.
Findings None None.
Security None None.

How this fits together

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

Before merge

None.

Agent review details

Security

None.

PR surface

Source +64, Tests +64, Docs 0. Total +128 across 12 files.

View PR surface stats
Area Files Added Removed Net
Source 8 145 81 +64
Tests 3 84 20 +64
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 12 230 102 +128

Review metrics

Metric Value Why it matters
Production versus test growth production +64 net lines, tests and test support +64 net lines The production growth implements the timed exit and row animation; the test growth covers timing, cancellation, and rendering.

Technical review

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

Labels

Label changes:

  • add P3: This is a focused collaborator-chat presentation improvement with limited user impact.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The changed browser-owned draft state is exercised in a stated Chromium mock-Gateway session; inspected before/after screenshots directly show the improved idle label, and the PR records after-fix expiry, cancellation, and reduced-motion observations. The motion file could not be inspected because ffprobe was unavailable and browser retrieval failed. No stored-data contract changes.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The changed browser-owned draft state is exercised in a stated Chromium mock-Gateway session; inspected before/after screenshots directly show the improved idle label, and the PR records after-fix expiry, cancellation, and reduced-motion observations. The motion file could not be inspected because ffprobe was unavailable and browser retrieval failed. No stored-data contract changes.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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 browser-owned draft state is exercised in a stated Chromium mock-Gateway session; inspected before/after screenshots directly show the improved idle label, and the PR records after-fix expiry, cancellation, and reduced-motion observations. The motion file could not be inspected because ffprobe was unavailable and browser retrieval failed. No stored-data contract changes.

Label justifications:

  • P3: This is a focused collaborator-chat presentation improvement with limited user impact.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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 browser-owned draft state is exercised in a stated Chromium mock-Gateway session; inspected before/after screenshots directly show the improved idle label, and the PR records after-fix expiry, cancellation, and reduced-motion observations. The motion file could not be inspected because ffprobe was unavailable and browser retrieval failed. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed browser-owned draft state is exercised in a stated Chromium mock-Gateway session; inspected before/after screenshots directly show the improved idle label, and the PR records after-fix expiry, cancellation, and reduced-motion observations. The motion file could not be inspected because ffprobe was unavailable and browser retrieval failed. No stored-data contract changes.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The changed browser-owned draft state is exercised in a stated Chromium mock-Gateway session; inspected before/after screenshots directly show the improved idle label, and the PR records after-fix expiry, cancellation, and reduced-motion observations. The motion file could not be inspected because ffprobe was unavailable and browser retrieval failed. No stored-data contract changes.

Evidence

What I checked:

  • Current main behavior: Current main retains the 120-second draft idle limit, so it does not implement this PR's 30-second expiry. (ui/src/pages/chat/chat-pane-sharing.ts:29, fb720291b0a3)
  • Current documented behavior: The current-main chat guide describes the earlier Paused · not sent label and two-minute expiry. Public docs: docs/web/control-ui/chat.md. (docs/web/control-ui/chat.md:21, fb720291b0a3)
  • Introduced lifecycle: The pinned PR delta changes the draft deadlines and uses one cancellable per-person timer to enter the exit phase and remove the preview. (ui/src/pages/chat/chat-pane-sharing.ts:454, 93392b59dff7)
  • Rendering and regression coverage: The renderer retains keyed collaborator rows during the exit phase; focused tests cover resumed typing, independent expiry, and a delayed timer. (ui/src/pages/chat/chat-pane-typing.test.ts:269, 93392b59dff7)
  • Visual proof: Inspected PR-body screenshots from the stated Chromium mock-Gateway scenario show the same preview labeled Paused · not sent before and Draft after. The motion attachment was downloaded but could not be inspected: local ffprobe was unavailable and browser retrieval returned a cache miss.
  • Feature history: File history identifies the merged persistent-draft work, earlier typing UI work, and subsequent maintenance of this path; the related merged PR established the existing bubble behavior rather than this branch's new labels and timing. (ui/src/pages/chat/chat-pane-sharing.ts, a82d352b8a54)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vyctorbrzezowski: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Patrick-Erichsen: 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.

@roboclaw-bot
roboclaw-bot merged commit 122f7c1 into main Sep 26, 2026
187 of 188 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/change-typing-indicator-text branch September 26, 2026 23:15
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 27, 2026
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]>
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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.

1 participant