Skip to content

test(terminal): cover live macOS Korean syllable flush - #12284

Merged
AmethystLiang merged 1 commit into
mainfrom
jinjing/test-macos-korean-live-preedit
Aug 3, 2026
Merged

AmethystLiang merged 1 commit into
mainfrom
jinjing/test-macos-korean-live-preedit

Conversation

@AmethystLiang

Copy link
Copy Markdown
Contributor

Summary

  • Extend the native macOS 2-Set Korean terminal test with the reported physical rkskek sequence.
  • Before Enter, assert that 가나 has reached xterm while the active native preedit visibly contains 다.
  • After committing, assert exact 가나다\n PTY bytes and 가나다\r xterm data.
  • Preserve the existing 한글 and leading-vowel native scenarios from current main.

Screenshots

No visual change.

Testing

  • pnpm lint
  • pnpm typecheck
  • pnpm test
  • pnpm build
  • Added or updated high-quality tests that would catch regressions, or explained why tests were not needed

Ran:

  • Native macOS 2-Set Korean headful E2E: 3 passed, including the live 가나 plus 다 preedit boundary and exact final PTY bytes.
  • 269 focused terminal IME tests across 17 files.
  • Node and web TypeScript checks.
  • Focused Oxlint, React Doctor, Oxfmt, and git diff --check.
  • The native E2E setup rebuilt the Electron app and bundled CLI successfully.

AI Review Report

Reviewed the native event boundary before and after Enter, including the failure mode where an immediate Enter masks a one-syllable display lag. The test now separates physical typing from composition commit and verifies both the user-visible preedit and the exact committed bytes.

Cross-platform compatibility was checked. This PR changes only a macOS-gated native E2E test; Linux/IBus, Windows IME, SSH and folder-workspace routing, shortcuts, labels, paths, shell behavior, production Electron code, and runtime behavior are unchanged. The broader terminal IME suite passed 269 tests covering Windows, Linux/IBus, Chinese, Japanese, Vietnamese, Sogou/fcitx, cancellation, and deduplication event shapes.

Security Audit

No production command execution, dependency, IPC, authentication, secret, or path-handling changes. The macOS-only test invokes fixed AppleScript commands with the Electron numeric process ID and fixed physical key codes, and runs only behind ORCA_E2E_NATIVE_MACOS_KOREAN=1.

Notes

PR #12280 typed gksrmf and pressed Enter in the same native batch, which could not observe the reported live rkskek state. The runtime composition fixes are already on main via #12278 and #12280; this PR closes the native regression-test gap.

@coderabbitai

coderabbitai Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f5ad79c1-f26f-4e3c-a3dd-c408f87da6ca

📥 Commits

Reviewing files that changed from the base of the PR and between 40d5f36 and d40cf4f.

📒 Files selected for processing (1)
  • tests/e2e/terminal-macos-2set-korean-native.spec.ts

📝 Walkthrough

Walkthrough

The macOS Korean IME scenario runner now supports delayed key input, intermediate preedit assertions, native composition commits, and final PTY output checks. A new end-to-end test verifies that 가나 is committed while 다 remains in preedit, with final output 가나다.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the added macOS Korean syllable flush test coverage.
Description check ✅ Passed The description includes all required sections, test results, cross-platform review, security audit, and platform-specific notes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant