Repository navigation
fix(ui): highlight new-chat mentions and attach possessives - #196078
roboclaw-bot wants to merge 3 commits into
Conversation
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 69c6caa8-5d6f-4bf7-af37-ae8a5eaf7908
|
🦞👀 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 changes before merge. What this changesThis PR highlights selected people in New Chat and attaches typed apostrophes directly to their names. Example: Select Bob in New Chat, then type 's notes.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this PR provides a useful, scoped improvement, but the new mirror can wrap differently from the native editor in Firefox with classic scrollbars. Priority: P2 Before merge
Findings
Agent review detailsHow this fits togetherThe Control UI composer receives draft text and selected recipient spans, projects their appearance beside a native textarea, and submits text and annotations through the existing session-creation owner. flowchart LR
A[People picker] --> B[Draft and recipient spans]
B --> C[Native textarea]
B --> D[Mention highlight projection]
C --> E[Existing input owner]
E --> B
B --> F[Session creation]
Technical reviewBest possible solution: Keep the native editor and existing recipient owner, while making the decoration use the textarea’s actual text width when a classic scrollbar appears. Do we have a high-confidence way to reproduce the issue? Current-main source confirms the missing decoration and conversion; the supplied Chromium reproduction reports the original failure, while the Firefox gutter regression follows from the native overflow owner and new mirror CSS without a reviewer-run browser reproduction. Is this the best way to solve the issue? The native-textarea approach is appropriately scoped and preserves recipient ownership, but its projection must match the native scrollport across supported scrollbar implementations. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 433a0c358503. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +137, Tests +62, Other +2. Total +201 across 6 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 9, 2026, 11:15 AM ET / 16:15 UTC. |
What Problem This Solves
Fixes: selected people remain plain text in the New Chat creation box, and typing a possessive after selection leaves the picker’s inserted space before the apostrophe.
User Impact
User impact: selected people are visibly highlighted while composing, and straight or curly apostrophes attach directly without losing the recipient. Native editing, clipboard text, caret behavior, and undo remain intact. No permission, recipient-format, or configuration changes.
Why This Change Was Made
Keep the native textarea as the only editor. An aria-hidden, noninteractive projection decorates existing selected mention spans with the sent-message color tokens. The existing input owner replaces the picker separator through a native editing transaction, matching emoji completion instead of resetting undo history.
Scope is New Chat creation, not the command palette or the separate rich-editor proposal in #192242.
Evidence
's notesproduced@Bob 's noteswithout inline highlighting.sessions.createrecipient spans.git diff --checkpassed.be043617c71c52afc1bd13833009e9312862b0eb: final production candidate clean after fixing and re-reviewing its native-undo finding. Fresh independent source review completed; its mobile finding was investigated as above. Hosted ClawSweeper review is running for this exact head; the local ClawSweeper checkout could not be qualified under this session’s file-access scope.Before
After
Scope and proof limits
Production grows by 137 lines for decoration/native edit handling, without another editor, rendering controller, view effect, or identity parser. Regression growth is 62 lines with its own exact allocation. Browser proof runs the production UI with synthetic Gateway fixtures, not the live Team Gateway. Safari and Firefox were not exercised locally. GitHub CI is pending.
Reported by @vincentkoc. cc @vyctorbrzezowski.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by