Repository navigation
improve(ui): unify new-session and chat composer behavior - #133011
roboclaw-bot wants to merge 1 commit into
Conversation
|
🦞👀 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: blocked before merge. Reviewed October 7, 2026, 6:23 AM ET / 10:23 UTC (Revision 4). ClawSweeper reviewWhat this changesThe PR shares textarea editing and picker interactions between New Session and active Chat, and replaces separate Draft and Incognito controls with one session-mode selector. Merge readiness⛔ Blocked before merge - 4 items remain Meaningful shared-editor work remains beyond the merged menu and IME fixes. No blocking introduced code defect was established; the protected maintainer item remains valuable. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI composers turn typed text, attachments, and mode selections into session creation or chat submission. Shared editing behavior sits beneath each host’s separate submission and run lifecycle. flowchart TD
A[Text and attachments] --> B[Shared composer editor]
C[Session mode selector] --> D[New Session host]
B --> D
B --> E[Active Chat host]
D --> F[Create session]
E --> G[Send or queue message]
Decision needed
Why: The screenshots establish the presentation change, but source and tests cannot settle its discoverability tradeoff; no human decision in the supplied discussion resolves it. Before merge
Agent review detailsSecurityNone. PR surfaceSource -34, Tests +39, Other -2. Total +3 across 22 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Use one narrow editor owner atop current main, retain host-specific lifecycle behavior, and present session modes through the accepted UI design. Do we have a high-confidence way to reproduce the issue? Not applicable as one bug reproduction: this combines editor consolidation and a presentation change. The browser regressions were inspected but not run during this read-only review. Is this the best way to solve the issue? Yes for the narrow shared-editor boundary: it reuses existing primitives without merging host lifecycles. The selector is a reasonable presentation option whose acceptance remains a product choice. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8f436000418b. LabelsLabel changes: No label changes. Label 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 (3 earlier review cycles) |
Closes #132845
What Problem This Solves
New Session and active Chat exposed equivalent composer surfaces but applied different editor behavior. New Session could rewrite the controlled textarea during native editing, omitted bidi and keyboard metadata, handled IME/focus/picker interactions differently, and presented Draft/Incognito through separate responsive controls.
Why This Change Was Made
This change gives both hosts one shared composer-editor owner for value synchronization, text direction, IME lifecycle, selection/focus events, keyboard metadata, autosizing, shell focus, and competing-picker dismissal. Chat run/queue behavior and New Session creation/target behavior remain host-owned. New Session visibility now uses one closed Default/Draft/Incognito selector per breakpoint.
The shared owner absorbs the duplicated paths: production code is +348/-389 (net -41). Tests/support are +152/-113, the generated boot manifest is +7, and the assertion baseline shrinks by 2.
User Impact
First-turn drafting now matches active Chat for native undo/redo, IME Enter handling, RTL direction, keyboard accessibility metadata, whole-composer focus, and picker dismissal. Desktop and compact layouts expose one understandable session-mode control without duplicating Draft and Incognito affordances.
Evidence
check:changed, assertion-safety ratchet, boot-manifest regeneration, and fullpnpm buildpass on currentmain(6f3ac104995).patch is correct, 0.99 confidence).Mock observation trace:
rtlEnterDesktop mode control
Compact mode control
Incognito mode
Interaction recordings
New Session desktop — IME handling, picker dismissal, and mode changes:
composer-after-desktop.webm
New Session compact mode:
composer-after-mobile.webm
Active Chat parity:
composer-after-active-chat.webm