Repository navigation
fix(ui): restore IME Enter protection in workspace details - #24099
Conversation
|
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — the five files restoring IME Enter protection in the workspace-details dialog, checked against the shared useImeEnterGestureOwnership contract, the reverted #13128 behavior, and the added tests.
- Notes textarea: reuses the shared gesture hook, wiring
onCompositionStart/onCompositionEnd/onKeyUp/onBlur, and short-circuits Enter when the IME owns the event so the conversion-confirming Enter and its unmarked follow-up no longer save. - Display name, issue, and PR/MR fields: each owns its own gesture and wraps the incoming
onKeyDownso IME-owned Enter never reaches the save handler; the GitLab MR path shares the same field. - Regression tests: cover marked and unmarked IME Enter across all four inputs, before/after-keyup redispatch on all five placeholders, platform-specific save shortcuts, blur reset, and Shift+Enter newlines. These would fail on base, so they are real coverage.
The change also aligns the dialog with the shared helper's documented contract (a chorded confirm's unmodified redispatch is swallowed, and the carry is spent so the next Enter is not eaten), which is a small improvement over #13128's chord-first ordering. Tests pass locally (WorktreeMetaDialog.test.tsx 44/44, ime-composition-keyboard-event.test.ts 13/13).
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughThe worktree detail comment, display-name, issue, and review inputs now track IME composition and Enter-gesture ownership. Their handlers ignore Enter events identified as IME-owned or associated with an active or recently completed composition gesture. Tests cover those events, redispatched Enter events, platform save shortcuts, ordinary Enter, and Shift+Enter. A native Linux test checks that Hangul composition confirmation leaves workspace notes open and that a subsequent Enter saves them. Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to The change protects workspace detail fields from IME-confirming Enter saves and adds native Hangul test coverage. No concrete merge-blocking issue was found in the reviewed change. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Out of Scope Changes checkExplanation The extraction of
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Keep the existing link callback stable and extend the contributor regression cases to verify saved values, state-only composition, keyup expiry, and folder notes.
|
Pullfrog stalled The agent stopped emitting events for 125s and was killed by the activity-timeout watchdog. The model produced no output at all before the stall — the request was sent but nothing came back. This is usually transient; re-running often succeeds.
|
…/sweep-24097-ime-notes-enter
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — the delta since the prior pullfrog review (b30f095): one feature commit, c2c5c657, which hardens the dialog tests and tidies the dialog's locals; the remaining commits (032ae005, 23be44e0, 41c2c483) bring main in and leave all five feature files byte-identical.
- IME coverage extended to all five fields: the marked/unmarked Enter plus blur-reset case now drives notes, display name, issue, GitHub PR, and GitLab MR, and asserts the saved update payload (
comment,displayName,linkedIssue,linkedPR,linkedGitLabMR) rather than only checking that save was not called. - Gesture-expiry case added: a composition confirm that never redispatches must let the next real Enter save, exercising the animation-frame carry expiry that the hook relies on.
- Folder-workspace note case added: a folder note stays open through composition confirmation and saves
{ comment: '日本語' }exactly once. - Dialog source tidy:
handleIssueKeyDownis back behinduseCallback, andisEditMeta/submitShortcutLabelare folded intoisOpenand an inlinegetScreenSubmitShortcutLabel(). No behavioral change.
The scoped suites pass locally (64 tests: 51 dialog, 13 hook). The added tests are not theatre — the expiry case fails if the carry is never cleared, and the payload assertions would fail on base, where the handlers had no IME guard.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
ℹ️ No critical issues — one minor note below.
Reviewed changes — the delta since the prior pullfrog review (41c2c48): the follow-up commit cfdb433 resets the notes IME gesture when the textarea detaches, adds a close/reopen regression test across all five fields, and extends the native IBus lane with a Hangul notes scenario pinned into the engagement-receipt contract.
- Reset the notes IME gesture on detach: the textarea ref callback now calls
commentIme.reset()when the node is removed, so a confirmed-then-closed composition cannot swallow the next Enter. - Added a close/reopen regression test: parameterized over the five IME fields and the active-composition / pending-confirmation phases, asserting the reopened dialog saves the changed value on a plain Enter.
- Extended the native IBus lane: a new
@headfulscenario types with real IBus Hangul, confirms the conversion Enter keeps the dialog open, and saves on the next Enter; its title joinsEXPECTED_NATIVE_IME_TESTS. - Extracted the textarea-sizing helper:
resizeCommentTextareamoved intoworktree-comment-textarea-sizing.ts, behavior unchanged (keeps the dialog under the.tsxmax-linescap).
ℹ️ Nitpicks
WorktreeMetaDialog.tsx:174— thecommentIme.reset()on textarea detach is unreachable in the app:sidebar/index.tsx:251mounts<WorktreeMetaDialog />only whileactiveModal === 'edit-meta', so closing the dialog unmounts the component and discards the hook. The new close/reopen test exercises the reset only because it renders the dialog unconditionally; it would pass without the reset if it mirrored the production conditional. If a real stale-gesture repro exists, a comment saying why the guard is kept would help — otherwise it can go.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — the delta since the prior pullfrog review (cfdb433): one test commit, 25fc999, which hardens the native IBus Hangul notes scenario. The five feature files and the receipt/contract wiring are byte-identical to the previously reviewed head.
- Proves the confirming Return arrived mid-composition: the scenario now waits for a live composition (
compositionstartcount greater thancompositionendcount) and snapshots thecompositionendcount before pressing Return, then polls that Return produced a newcompositionend. This replaces the weaker "a keyup Enter happened" wait and makes the assertion that the dialog stayed open meaningful. - Richer failure evidence: the
finallyattachment now recordscompleted, notes visibility, the textarea value, and the saved comment, so a failed native run is diagnosable without a rerun.
No production behavior changed.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
418f35b8-2fee-473a-a714-6ea28068fd57
📒 Files selected for processing (1)
tests/e2e/terminal-ibus-hangul-native.spec.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — the delta since the prior pullfrog review (25fc9994): one test-only commit, 58c3a92a, which turns the @headful native IBus Hangul notes scenario into a delivery-witness test. No production source changed; the five feature files, the existing IME hook, and the receipt/contract wiring are byte-identical to the previously reviewed head.
- Proves native keyboard delivery before trusting composition: installs an Electron
before-input-eventprobe in main and capture-phasekeydown/keyup/focus/blurlisteners onwindowanddocument, then pressesShift_Land requires a trusted keydown plus keyup whose target and active element are the notes textarea. - Asserts focus at every step:
readFocuscross-checks the X11 focus (xdotool getwindowfocus), the owned window's native handle,window.isFocused(),webContents.isFocused(),document.hasFocus(), and the active element against the owned background window. - Lands a real pointer on the field: replaces
input.click()with an xdotool mouse move/click at the textarea's viewport centre, after waiting for dialog animations and guarding device-pixel-ratio and content-bounds equality. - Separates the two Returns: the conversion Return must add a
compositionendwith no new blur; the deliberate Return must produce a fresh trustedEnter/ keyCode13withisComposing === falsebefore the dialog hides and{ comment: '한글' }saves.
The new assertions strengthen the lane rather than vouch for it: the test now fails if native keys never reach the field instead of silently exercising nothing through a synthetic click. All prior pullfrog reviews are addressed and there are no unresolved review threads.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — the delta since the prior pullfrog review (2044fa38): two test-only commits, 2044fa388a and ce72114616, touching only tests/e2e/terminal-ibus-hangul-native.spec.ts. No product source changed.
- Retained the passing evidence by path: the
finallydiagnostics now serialise thenative-notes-dom-trace.jsonpayload totestInfo.outputPathand attach it by path inside atry/catch, replacing the in-memorybodyattach.evidenceAttached/completedstill gate the success assertions, so a failed write/attach preserves the original failure rather than masking it. - Dropped a redundant focus assertion: the native notes
readFocusladder no longer assertsmain.webContentsFocused. Focus at each phase is still proven by the X11 focus (xdotool getwindowfocus), the owned native window handle,window.isFocused(),document.hasFocus(), the active element being the notes textarea, and the physicalShift_Ldelivery witness that requires a trusted keydown/keyup landing on the field.webContentsFocusedremains recorded in the diagnostics for triage.
The five feature files, the shared IME hook, and the receipt/contract wiring are byte-identical to the previously reviewed head.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — the delta since the prior pullfrog review (ce721146): one test/config commit, 11b48cb, which restores native IME key delivery by presenting the owned window on the isolated CI display. No product source changed.
- Isolated native presentation: new
terminal-native-ibus-window.tscallsshowInactive()on the owned window behind strict hosted-CI + Xvfb guards, replacing the removedORCA_E2E_FOREGROUND=1opt-out; both native specs now present through it. - Background launch kept: the run script and workflow retain
ORCA_BACKGROUND_LAUNCH=1and add theORCA_E2E_NATIVE_IBUS_XVFB=1marker;tests/AGENTS.mddocuments the exception. - Passive Wayland diagnostics: new opt-in
terminal-wayland-input-diagnostics.tsrecords mainbefore-input-event/ window focus-blur and capture-phase DOM keyboard/composition events, attached by path on failure. - Digit spec restructured: diagnostics install/dispose plus a nested
try/finallyso cleanup and diagnostic attach cannot mask the primary assertion. - Notes focus ladder re-tightened: re-adds the
windowVisibleandwebContentsFocusedassertions now that the fixture actually presents the window.
The changed config tests pass locally (terminal-ime-e2e-workflow.test.mjs + terminal-ime-engagement-receipt.test.mjs, 13/13), and the workflow-test update correctly replaces the now-obsolete workflow_dispatch null assertion. No unresolved Pullfrog review threads remain; the lone open note from the cfdb4333 review is a non-blocking nitpick about the unreachable notes-textarea reset.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
nwparker
left a comment
There was a problem hiding this comment.
Reviewed exact head 11b48cbdd36cabb0f7bd18e1cedfbadc49ea3417 and required CI checkout 93c9e5dde553b8d46bb4876325b2ba94b4b9063e.
The X11 blocker came from test-window delivery: an externally mapped X window still appeared hidden to Electron and received no keyboard events. The repaired fixture presents only its owned window on hosted CI's isolated display after background startup. Actual IBus Hangul now passes the trusted Shift witness, confirmation without saving, two animation frames, a separate later Return, full 한글 save and no intervening blur. All four native engagement receipts remain mandatory. Both required native lanes pass; stock Wayland verifies all nine exact Hangul-plus-digit lines with diagnostics disabled, three fresh apps and zero test retries. Original native input timings and byte assertions remain intact. The earlier intermittent Wayland failure's precise cause remains unproved; the PR adds no speculative terminal product change.
The eight follow-up files and all 24 relevant merge-checkout blobs received independent source review. 113 focused tests, three canonical typechecks and the complete changed-code quality gate pass. Native raw artifacts, cleanup and source bindings received independent review. Defensive close/reopen tests intentionally keep the component mounted; the PR body correctly distinguishes them from normal conditional unmount. Bounded failure diagnostics address the bot thread; the sole review thread is resolved and outdated. Optional trace counters and files have different capture times, now disclosed without claiming complete later tails.
Cross-reviewed contributor history #10711, #11067, #13128 and #13282; original implementation and recordings remain credited to @setodeve, whose commit b30f095 remains in the branch. The squash commit includes Co-authored-by: setodeve <keinick11@outlook.com>. Targeted issue-linked and contributor searches found no open duplicate referencing #24097; #25038 concerns another issue and remains open.
Complete required PR CI run https://github.com/stablyai/orca/actions/runs/37241664070 passed on the same public head, including all five unit shards, relay integration, static/typechecks, selected Electron checks, both native IME jobs and Linux/Windows packaging. All 38 current-head check contexts are completed and successful or intentionally skipped. Pullfrog reviewed this exact head and found no new issues (#24099 (review)). No unresolved review thread remains. Native Windows/macOS engines, SSH and mobile are not newly validated; the body preserves those limits.
|
Thank you for the thorough validation and follow-up fixes! |

ELI5
Enter confirms Japanese or Korean text without saving or closing workspace details. A later deliberate Enter saves the complete value.
What Changed
Notes, display name, issue and PR/MR fields reuse Orca's existing IME Enter tracker. Ordinary saves, Cmd/Ctrl+Enter, Shift+Enter newlines, emoji selection and provider-specific links keep their existing behavior.
Notes resets composition ownership when its existing textarea ref detaches. The close/reopen unit controls deliberately keep the dialog component mounted to exercise hook lifetime; the normal sidebar unmounts the dialog when closed. These controls justify defensive cleanup, rather than demonstrate that normal production reopening was broken. The adjacent textarea-sizing module keeps the existing sizing behavior unchanged and the dialog within its file limit.
The Linux native fixture now presents only its owned app window on a fresh hosted CI display, after background startup. It checks Electron visibility and renderer focus before physical input. The earlier X11 run had an externally mapped X window, but Electron still reported it hidden and recorded no keyboard events. The production foreground policy is unchanged. A default-off diagnostic option records the separate Wayland input boundary without changing keystrokes, assertions or retries.
Why
#13282 removed workspace IME protection while reverting terminal IME changes. Reusing the existing tracker restores workspace behavior without restoring those terminal changes or adding another timing mechanism. Textarea detachment supplies the existing lifetime boundary for Notes cleanup.
Linked Issue
Fixes #24097
Reviewed against related contributor work: #10711, #11067, #13128 and #13282. The original implementation and native macOS recordings are @setodeve's; original commit
b30f095remains in the history, and the squash commit includesCo-authored-by: setodeve <keinick11@outlook.com>. No open duplicate referencing #24097 was found in issue-linked and targeted searches. #25038 addresses a separate issue and is retained.Visual Proof
Original native macOS recordings from @setodeve: before, after, other fields.
These paired hardware lifecycle checks ran on
cfdb4333. Their product code matchesce721146and this fixture-only follow-up exactly. Chromium composition in those hidden checks is distinct from the operating-system IBus engine used in Linux CI.Fresh Linux native proof on
11b48cbdd36cabb0f7bd18e1cedfbadc49ea3417: after the later Return the dialog is closed. The retainednative-notes-dom-trace.jsonin the native run's artifact separately proves the first Return kept the connected Notes textarea open with한글, then the second saved한글; the screenshot alone does not show the stored value.Testing
All 113 current focused tests pass: 85 feature controls, shared terminal composition tests, native engagement and workflow contracts. Canonical node, CLI and web typechecks, default source lint, anti-slop, format and the complete changed-code quality gate pass.
Fresh isolated native verification passes both lanes on exact head
11b48cbdd36cabb0f7bd18e1cedfbadc49ea3417, with zero retries. X11 verifies all four real-IME engagement receipts, the terminal byte controls, trusted Shift delivery, actual IBus Hangul composition, confirmation without saving, and a separate noncomposing Return saving the complete Notes value without a focus reset. All four Notes focus snapshots show Electron visibility and renderer focus. The two Return commands are separately injected; Electron marks the second as an auto-repeat, while its DOM event is trusted and noncomposing. This is native routing evidence, not a claim about human typing cadence.Wayland passes all nine exact Hangul-plus-digit lines across three fresh apps with the optional observers enabled. The original input timings and byte assertions remain. The retained protocol, Electron, DOM and terminal traces record every tested digit, with no main-process cancellation. Bounded main/renderer listeners report zero dropped records and the stderr size cap was not reached. These streams are not an atomic snapshot: protocol files stop before the later live byte counters (differences of 1,176, 1,836 and 1,836 bytes), so complete later protocol tails are not claimed. All owned apps exit cleanly; tracked X11 IBus/window-manager groups and the Wayland compositor group are empty after cleanup.
Required PR CI now runs on that same public head with Wayland diagnostics disabled. Both required native jobs now pass with diagnostics disabled. The actual synthetic merge checkout is
93c9e5dde553b8d46bb4876325b2ba94b4b9063e; all 24 reviewed feature, fixture and shared-source blobs match11b48cbexactly. GitHub workflow attempt 1 required maintainer approval without executing these tests; approval started attempt 2, which passed both native lanes with zero test retries. The merge checkout inherits other main-branch package and lock changes, so whole-tree or binary parity is not claimed. The complete required PR suite passes: all five unit shards, relay integration, static analysis/typechecks, selected Electron checks, Linux and Windows packaging, and the final verification gate. All 38 current-head check contexts are completed and successful or intentionally skipped; both required native lanes executed successfully.Earlier failures remain part of the evidence: required CI on
ce721146failed both native lanes. X11 Notes recorded zero Electron/DOM keyboard events and stopped before composition. Separately, Wayland lost Digit1 keydown/input in one of three repetitions. Its exact root cause remains unproved; an empty composition-end event alone is insufficient, and no speculative terminal product fix is included. Earlier diagnostic Wayland execution passed all nine byte comparisons with unchanged terminal product code and original timings. Observers and protocol debugging can affect timing, so that result alone does not replace a passing stock check.The optional full E2E typecheck has broad existing test errors and is not reported as passing. Native Windows/macOS IME engines, other CJK engines, SSH and mobile were not exercised by this follow-up.
AI Disclosure
Original contributor disclosure: OpenAI Codex (GPT-6) assisted implementation, native validation and review. Codex also assisted this follow-up's adversarial review, defensive cleanup, hidden hardware validation and isolated native fixture repair.
Review
Independent review found no new product defect. It verified all eight follow-up source files, the preserved native keystrokes and byte assertions, the two separate Notes Returns, evidence retention and cleanup. The new presentation guard permits Linux hosted CI's owned Xvfb session with background startup and refuses desktop/local use. The physical Shift witness, actual Hangul composition, no-save confirmation and deliberate-save assertions stay mandatory.
Bot review findings are addressed: bounded failure diagnostics preserve the original assertion; the mounted close/reopen controls are described accurately above. The sizing move preserves every sizing byte and avoids a file-limit exception. No parallel tracker or speculative timing workaround was added.
Agent skill upstream boundary
Notes
Folder workspaces, platform shortcuts, GitLab MR payloads and save failures remain covered. All agent-launched apps start with
ORCA_BACKGROUND_LAUNCH=1; native focus and presentation run only on hosted CI's owned isolated display. The user's desktop was never revealed or focused.Checklist