Repository navigation
improve(control-ui): redesign composer slash and skill invocations - #129707
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs changes before merge. Reviewed August 26, 2026, 12:44 AM ET / 04:44 UTC. ClawSweeper reviewWhat this changesThis PR redesigns the Control UI composer’s slash-command and skill-invocation menus and adds inline rendered skill-reference tokens. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open: Escape targets the first invocation sheet in document order, so a split-pane session with sheets open in both panes leaves the focused pane’s sheet open and moves focus to the other pane. Priority: P2 Review scores
Verification
Live VerificationEntry: Result: FAIL (partial) — step 4 Steps:
How this fits togetherThe Control UI composer converts typed slash commands and flowchart LR
A[User types in composer] --> B[Slash or skill detection]
B --> C[Invocation menu state]
C --> D[Keyboard or pointer selection]
D --> E[Composer draft]
E --> F[Chat send flow]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +358, Tests +386. Total +744 across 21 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: Resolve Escape from the event target’s enclosing composer, preserve that composer’s focus, and add a two-pane regression test before merge. Do we have a high-confidence way to reproduce the issue? Yes, from source: open slash sheets in two independently rendered panes, focus the second textarea, and press Escape; the capture handler resolves the first sheet and stops propagation. Is this the best way to solve the issue? No: the global Escape listener should derive the invocation composer from the event target rather than document order, which preserves the existing per-pane state invariant. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2b06180bb5fe. LabelsLabel changes:
Label justifications:
EvidenceAcceptance criteria:
What 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
History |
The unified capability toggle row embedded a wa-switch even in checkbox mode, reintroducing a hidden-but-real switch control inside the new-session composer (breaking the rail-owns-switches contract asserted by new-session-page.places e2e) and an aria-hidden focusable control. Checkbox rows rely on the dropdown item's own checked state.
|
Maintainer landing pass on the current head:
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
…penclaw#129707) * improve(control-ui): align composer invocations with current main * fix(ui): close composer invocation regressions * test(ui): follow grouped slash hint rule * fix(ui): preserve reasoning reset cleanup after rebase * fix(ui): keep checkbox capability rows switch-free The unified capability toggle row embedded a wa-switch even in checkbox mode, reintroducing a hidden-but-real switch control inside the new-session composer (breaking the rail-owns-switches contract asserted by new-session-page.places e2e) and an aria-hidden focusable control. Checkbox rows rely on the dropdown item's own checked state. --------- Co-authored-by: Peter Steinberger <[email protected]>



Continues #127824 (auto-closed when its merged base branch was deleted); rebased onto main per maintainer instruction.
Stacked on #124301. Full campaign evidence is in the primary PR draft.
What Problem This Solves
Slash commands and skill references used inconsistent sheets and token geometry that could drift, wrap over adjacent text, or fragment during keyboard selection.
Why This Change Was Made
This layer provides command-first invocation sheets and atomic skill references. Token measurement follows resize/scroll, shifted selection stays at token boundaries, and split-line references fall back to raw mirrored text rather than covering neighboring content.
User Impact
Commands and skills remain keyboard-accessible and visually aligned across wrapping, resizing, mobile layouts, punctuation, and bidirectional text.
Evidence
Final head:
d6c319d4d74; base:00321d37503.+615/-297; tests+407/-25.check:changed; final autoreview reported no actionable P0/P1 findings.