Repository navigation
fix(ui): show users typing in the transcript - #125244
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 18, 2026, 12:31 AM ET / 04:31 UTC. ClawSweeper reviewWhat this changesMoves remote shared-session typing presence from above the composer into a virtualized, ephemeral final transcript row and clears only the matching structured user sender on message arrival. Merge readinessNo blocking code defect found in the reviewed PR head. The implementation coherently makes typing transient transcript state, but a maintainer should explicitly approve the shared-session UX change before merge. Priority: P2 Review scores
Verification
How this fits togetherControl UI receives shared-session typing and message events from the Gateway, maintains transient participant presence in the chat pane, then projects it into the virtualized transcript. The resulting row affects scroll-follow behavior and what readers see beside the composer. flowchart LR
A[Gateway typing event] --> B[Chat pane presence state]
A2[Gateway message event] --> C[Scoped sender cleanup]
B --> D[Transcript projection]
C --> B
D --> E[Virtualized transcript]
E --> F[Reader viewport]
Decision needed
Why: Both placements are technically viable, but they optimize different reader expectations and change the established shared-session interaction. Before merge
Agent review detailsSecurityNone. PR surfaceSource +161, Tests +115. Total +276 across 16 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. Mantis proof suggestionA redacted web UI chat transcript would directly show the requested placement, scrolling, and composer-stability behavior. A maintainer can ask Mantis to capture proof by posting this exact PR comment: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Adopt the transcript as the single owner of remote typing only after a Control UI owner confirms that chronological placement is preferable to composer-adjacent presence. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR proposes a new presentation policy for existing transient presence, rather than reporting a contract-defined failing behavior. Is this the best way to solve the issue? Unclear: the transcript projection is a coherent owner-boundary solution, but whether typing belongs in chronological history rather than beside composition requires product approval. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9de3ca5fc93d. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (6 earlier review cycles)
|
|
Addressed all three current ClawSweeper findings on head
Proof:
Repair delta: production net 0 relative to the reviewed head; tests/test-support +101 net. The overall PR remains production +146 because the transcript typing presentation is the new user-visible capability. |
|
CI follow-up on head
Focused proof after the repair:
|
074c8b3 to
d2440ea
Compare
|
Merged via squash.
|
* fix(ui): move typing status into transcript * fix(ui): complete transcript typing lifecycle * fix(ui): finish transcript typing presentation * fix(ui): refine typing bubble tail * fix(ui): complete transcript typing invariants * fix(ui): satisfy transcript typing gates * fix(ui): keep typing presence ownership bounded * fix(ui): keep typing presence dependencies private --------- Co-authored-by: RoboClaw <[email protected]>










Closes #125234
Additional instructions
MUST: Keep Allow edits from maintainers enabled for this PR so maintainers can help update the branch when needed.
What Problem This Solves
Fixes an issue where users in shared chat sessions would see remote typing activity outside the transcript above the composer. Typing transitions changed the composer-area geometry and did not participate in chronological transcript scrolling or virtualization.
Why This Change Was Made
The existing typing presentation is now projected as one stable, ephemeral final transcript row after visible chat content. The transcript virtualizer measures and indexes that row, follows it only when the reader was already at the end, and preserves a scrolled-up viewport otherwise. Active typing also counts as transcript content when no history rows exist, so the typing row can render and be measured as the sole transcript item.
The existing typing lifecycle removes actors on explicit stop or expiry. An arriving
session.messageremoves only the actor authoritatively identified by an exact structured sender ID on a matching user message; assistant, tool, unattributed, and other-participant messages do not clear unrelated actors.The composer rendering path and its outside/sticky styling were removed. Typing remains transient presence state rather than a persisted message or turn. Session suggestions and composer design are unchanged.
User Impact
Remote typing activity now scrolls naturally with conversation history and appears directly after the latest visible turn or event, including in an otherwise empty transcript. Starting, updating, or ending typing no longer changes composer geometry, readers inspecting older history are not forced back to the bottom, and unrelated messages no longer erase active participant indicators.
Evidence
Implementation inspection confirms:
presence:typingrow is appended by the transcript projection and included in virtualizer count, indexing, and measurement;followOnAppendis enabled only for the typing tail row and applies only when the viewport was already at the transcript end;message.__openclaw.senderIdfrom the active actor map; messages without that authoritative identity remove nobody;aria-hiddenwhile the status text names all actors, avoiding duplicate announcements;Per the requested publication scope, no tests, build, checks, lint, formatting, install, screenshots, review pass, or CI monitoring were run.
git diff --checkpassed before each commit.Implementation Plan
Tracked in #125234. This PR implements the issue plan at the transcript projection, virtualizer, and typing lifecycle owners without changing persistence, protocol, composer design, or session suggestions.