Repository navigation
Conversation
Keep composing Escape with the input method, including legacy keyCode 229. Browser regressions retain Japanese search text and the current Settings route.
Let the Settings sidebar own Escape without closing plugin details. Preserve page-level dismissal when focus is on the document and existing dropdown dismissal order.
Return before forced blur while an input method owns Escape. Browser regressions prove that composing Escape sends no config.set and that ordinary Tab still saves the edited value.
|
🦞👀 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. Reviewed October 4, 2026, 4:48 PM ET / 20:48 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR preserves composing Escape in settings inputs and keeps sidebar Escape from dismissing plugin details, with browser regressions and documentation. Merge readiness⛔ Needs changes before merge - 1 item remains The fix remains necessary on current main, and no introduced correctness or security defect was found. The prior test-cost reporting requirement remains outstanding. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI settings sidebar and plugin pages receive keyboard input before navigating or saving edits. Escape ownership determines whether text composition continues, search clears, or plugin details close. flowchart TD
A[Escape key] --> B[Composition check]
B -->|Composing| C[Input method retains control]
B -->|Ordinary| D[Keyboard owner]
D --> E[Sidebar clears search or exits]
D --> F[Plugin details dismiss]
F --> G[Blur commits edited value]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +11, Tests +118, Docs +2. Total +131 across 6 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep Escape with the active input or page owner while preserving ordinary dismissal and the existing blur-save contract. Do we have a high-confidence way to reproduce the issue? Yes: current-main handlers expose the reported paths, and supplied browser scenarios cover composition flags, legacy key code 229, sibling Escape, and ordinary Tab saving. This read-only review did not execute them. Is this the best way to solve the issue? Yes: the patch guards the existing keyboard owners with the shared IME predicate rather than adding competing navigation or save behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fdc74bfbbf06. 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 (1 earlier review cycle)
|
…penclaw#165100) * fix(ui): preserve settings search during IME composition Keep composing Escape with the input method, including legacy keyCode 229. Browser regressions retain Japanese search text and the current Settings route. * fix(ui): keep plugin Escape handling within its keyboard scope Let the Settings sidebar own Escape without closing plugin details. Preserve page-level dismissal when focus is on the document and existing dropdown dismissal order. * fix(ui): avoid saving plugin edits on composing Escape Return before forced blur while an input method owns Escape. Browser regressions prove that composing Escape sends no config.set and that ordinary Tab still saves the edited value. Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Escape did the wrong thing in three places in the Control UI settings:
Why This Change Was Made
ui/src/components/settings-sidebar.tshandled Escape unconditionally (sincefe2486247b6, extended in663f4e796d3). It now uses the existing shared IME composition guard.ui/src/pages/plugins/plugins-page.tscaptured Escape document-wide (since401f278f111). Its dismissal handler now ignores Escape owned by sibling controls such as the sidebar search, while unfocused Escape still dismisses the details.1710fede5df). The IME guard now prevents that premature blur, and ordinary Tab still saves exactly once.All three reuse the repository's existing IME and keyboard-ownership guards; no new mechanism was added.
User Impact
CJK input users can search and edit settings without losing text. Escape in the sidebar search clears only the search.
Evidence
Before and after, with synthetic data. Left: before. Right: after.
Settings search, composing Escape (the query 日本語 is kept):

Sidebar Escape with plugin details open (the details stay open):

config.set; after, zero writes for both composition variants, and Tab saves once.check-changed. The broad E2E run was 159/160; the one failure is a pre-existing, test-only cache issue in screenshot-capture mode ofplugins-hub-navigation.e2e.test.ts, which passes in normal mode.