[codex] fix Windows IME abort restore ordering#234
Closed
millionart wants to merge 46 commits into
Closed
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
Summary
Idleonly after restore for the same session, preventing a new session from racing in and causing the old snapshot to be discarded.Insertingguard that prevents starting a new dictation during TSF submit.Root Cause
abort_recording_with_errorsetstate.phasetoIdlebefore callingrestore_prepared_windows_ime_session. Since restore is guarded bystate.session_id, a new dictation could start in that gap, advance the session id, and make the old prepared IME snapshot get discarded instead of restored.Validation
cargo test --manifest-path openless-all/app/src-tauri/Cargo.toml --lib --no-runcargo check --manifest-path openless-all/app/src-tauri/Cargo.tomlNote: directly running the target test binary in this local Windows/Tauri environment exits before Rust test execution with
STATUS_ENTRYPOINT_NOT_FOUND (0xc0000139), so the executable build was verified with--no-run.PR Type
Enhancement, Bug fix, Tests
Description
Add Windows TSF session flow
Fix abort restore ordering race
Add non-TSF fallback controls
Expand smoke and regression tests
Diagram Walkthrough
File Walkthrough
1 files
Scope session resources and restore ordering13 files
Capture and restore Windows IME profilesAdd named-pipe IME submit transportPrepare, submit, and restore IME sessionsDefine IME pipe messages and namingRegister Windows IME modules and commandAdd IME status types and preferenceAdd Unicode and clipboard fallback insertionExpose Windows IME status commandSurface Windows IME controls in settingsAdd English Windows IME stringsAdd Chinese Windows IME stringsExtend frontend types for IME statusWire frontend IPC for IME status4 files
Update Windows packaging preflight checksAdd MSVC packaging wrapper scriptPackage Windows IME installer artifactsDefine the Windows IME C++ build1 files
Adjust Windows insertion smoke coverage1 files
Add Windows IME-related Rust dependencies26 files