Repository navigation
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: needs maintainer review before merge. What this changesPreserves the highlighted slash-command argument when native text selection refreshes an unchanged composer draft. Example: Type /think, press Tab, highlight ultra with ArrowUp, select text with Shift+ArrowLeft, then press Tab.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR fixes a distinct argument-selection bug still present on main; no actionable defects were found, and CI remains pending. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherChat and New Session share a slash-menu presentation owner that receives draft and selection events and returns highlighted options and command completions. flowchart LR
A[Composer textarea] --> B[Native selection event]
B --> C[Shared slash menu owner]
D[Command argument options] --> C
C --> E[Highlighted argument]
E --> F[Tab completion]
F --> G[Normal command submission]
Technical reviewBest possible solution: Retain argument selection by value within the existing shared menu owner while resetting it for changed drafts or unavailable values. Do we have a high-confidence way to reproduce the issue? Supplied Chromium and WebKit runs reproduce the native-selection failure against a main owner blob independently verified identical to fetched main; no target code was executed during this review. Is this the best way to solve the issue? This is a small, complete repair of the selection invariant in its existing shared owner, with no parallel keyboard handler or provider-policy change. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 802ddc708476. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +15, Tests -1. Total +14 across 3 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 HistoryReviewed November 6, 2026, 7:47 AM ET / 12:47 UTC (Revision 3). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Exact-head slash argument input-fidelity proofHead Real shipped path: Secretless Docker, Node24.22.1, built Gateway serves built Control UI, real Chromium and Linux WebKit. Each ref/engine runs twice with fresh task-owned homes, profiles and browser contexts: 8 successful scenes. A session is created through public RPC. The normal OpenAI provider/model catalog exposes the known
Observed outgoing RPC fields (request IDs omitted): {"method":"sessions.patch","params":{"key":"agent:main:slash-proof","thinkingLevel":null}}
{"method":"sessions.patch","params":{"key":"agent:main:slash-proof","thinkingLevel":"ultra"}}
Linux WebKit uses the approved driver-only Checks: 16 owner/component tests and 4 focused UI E2E cases pass. Both retained regressions fail on main: the owner case gets Real served gzip: official paired reports against the merge-base: startup90590→90583 B (−7 B), Chat1295157→1295468 B (+311 B), combined +304 B, below600 B. Current hash-normalized budget growth is +87 B (startup0, Chat+87); the canonical comparator passes with no caps or allowances changed. The proof-only measurement observer merely captures the official base/head JSON reports before the private comparison archive is retired; it changes no source or build inputs. Evidence retained under |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Landed in fad4501. Thanks @ly85206559. Slash-command arguments stay highlighted while you select text with the keyboard. |
…94087) fix(ui): keep the highlighted slash-command argument during keyboard text selection In the chat composer's slash-command argument menu, selecting text with the keyboard reset the highlighted argument to the first entry. Pressing Tab then completed the default instead of the argument the user had highlighted (for example `/think ultra` sent no thinking level). The highlighted argument is now kept. Mouse selection, Enter on the default and Escape are unchanged. Evidence: built Gateway and built Control UI in Chromium and Linux WebKit, twice per ref and engine. Main completed `default` and sent `thinkingLevel: null`; with this change `ultra` stays highlighted and is sent. Gateway replies succeed, and the controls are unchanged. Size: +304 B combined on real served gzip. Screenshots: openclaw#194087 (comment). Thanks @ly85206559. Co-authored-by: Ayaan Zaidi <[email protected]>




What Problem This Solves
Keyboard text selection in a slash-command argument draft refreshed the menu and reset the highlighted argument to the first row. Tab could therefore complete
defaultinstead of the operator's selectedultra.The existing slash menu owner retains the selected value while the same argument draft remains active. Changed drafts/commands retire that selection; refreshed options preserve it by value or fall back when it disappears. Reuses the constructed command draft rather than allocating it twice. No new keyboard owner, model-selection policy, Gateway normalization or server-echo change.
Preserves ly85206559's original commits.
Evidence
Inspected Chromium/Linux WebKit before-and-after screenshots, actual RPC fields, controls and measurements.
Built Gateway serves built Control UI in secretless Node24.22.1 Docker. Main twice and exact head twice in each engine, eight successful scenes. ArrowUp highlights
ultra; Shift+ArrowLeft causes a native text-selection event. Main resets todefault; the candidate retainsultra. Tab completes the argument, and normal Enter submission emits actualsessions.patchwiththinkingLevel:nullon main versus"ultra"on the candidate; real Gateway replies succeed. Mouse selection, default Enter and Escape are unchanged. No model turn is made.Linux WebKit uses the disclosed driver-only correction retaining MiniBrowser's native disabled PushAPI default; no product/page API or platform spoof.
Checks: 16 owner/component tests and 4 focused UI E2E cases pass. Both amended regressions fail on main. Coverage is consolidated into existing owner/viewport and E2E cases: tests net−1, allocation removed; production +19/−4 (23 gross).
Real served gzip growth: Chat +311 B, startup −7 B, combined +304 B, below600 B. Canonical hash-normalized growth is +87 B, with the comparator passing and no caps or allowances changed.
Merge Danger
Two-way door: reverting fully restores prior UI behavior; no migration or new persisted contract. Blast radius is selected slash-command argument fidelity in the chat composer. Existing model policy and Gateway validation remain authoritative.