Skip to content

[Windows App] Local-file inline comments ignore English, digits, symbols and Backspace while Chinese IME input works #52092

Open

Description

@Akiba275

What version of the Codex App are you using (From “About Codex” dialog)?

  • Installed/running Windows package: OpenAI.Codex 26.1002.7124.0.
  • Bundled frontend package.json version: 26.1002.52244.
  • These versions were verified from the installed application package; the About dialog was not separately captured.

What subscription do you have?

ChatGPT Pro ($100, as reported by the user).

What platform is your computer?

Windows 11 Pro, build 22631. The PowerShell platform string requested by the issue template is:

Microsoft Windows NT 10.0.22631.0 x64

What issue are you seeing?

In the native local-file code viewer/editor in the Codex side pane, the inline comment input accepts Chinese IME text but ignores direct English/Latin letters, digits, punctuation and Backspace.

Latest manual observations from the affected user:

  • English letters, digits and symbols cannot be entered even before pressing Backspace. Backspace is not required to trigger the failure.
  • Chinese IME input can enter text.
  • Backspace cannot remove the comment text.
  • After rechecking, focus remains in the comment box and no changes appear in the underlying source file.

The surface here is the native local-code file comment UI, not an in-app browser webpage annotation or the CLI.

What steps can reproduce the bug?

  1. Open a local source-code file in the Codex side pane.
  2. Use the inline comment action on the file and click inside the comment input.
  3. Try typing ordinary English letters, digits and punctuation, for example a7!. They do not appear in the comment.
  4. Switch to a Chinese IME and compose/commit text such as 中文. Chinese text can appear.
  5. Press Backspace. The comment text is not deleted.
  6. Try ordinary letters/digits/symbols again. They still do not appear.

The user supplied the live-app observations above. A separate isolated packaged-component reproduction and its limitations are described below. This local input reproduction does not depend on model execution; session/token/context usage is not applicable to the isolated reproduction.

What is the expected behavior?

The comment input should accept ordinary characters and IME composition, support Backspace deletion, retain focus, and keep its input events separate from the underlying source-code editor.

Additional information

Duplicate search and related report

Related: #48836 reports inline file-comment input reaching the underlying source editor, with focus transfer and source-file modifications. The current user explicitly rechecked and observed neither focus loss nor source-file changes; the characteristic symptoms here are blocked ordinary input/Backspace with Chinese IME text still accepted.

A shared root cause with #48836 has not been established. This report adds a reproduction of input cancellation in the packaged editor component and a specific event-ownership diagnosis. Consolidation is welcome if maintainers determine that the same investigation covers both reports.

Packaged-component diagnosis

Read-only inspection of webview/assets/editor-8e54178844dd.js found that the code editor’s #Ye method identifies events using:

a = t => t.composedPath().includes(e)

Here e is the outer code-editing region. A slotted inline comment is nested within that region, so events originating in the comment also satisfy this predicate.

The same method handles beforeinput by explicitly allowing insertCompositionText, while calling preventDefault() and forwarding other input types to the code-input handler. A readable reduction of that logic is:

if (belongsToCodeRegion(event)) {
  if (event.inputType === "insertCompositionText") {
    return;
  }
  event.preventDefault();
  handleCodeInput(event.inputType, event.data);
}

This cancels the comment’s ordinary insertText and deleteContentBackward events while allowing composition text. The component also has composition-end handling; a complete fix should review the entire event-ownership path.

pierre-file-editor-1d74a63d288b.js wraps the inline annotation with data-pierre-editor-annotation; the slotted container also has data-annotation-slot. The original event predicate does not exclude these comment containers.

Isolated comparison using the installed components

A fresh headless Edge context loaded the original packaged code-editor class and packaged ProseMirror base editor, with a matching slotted annotation structure. File-host/highlighter adapters were minimal test substitutes. No running Codex window was instrumented, and the full application business layer was not loaded.

Test sequence: start with abc123 in the comment, cursor at the end; type a7!; compose/commit 中文; press Backspace once; type 456!@.

Test configuration After a7! After Chinese commit Final comment text
Standalone comment editor abc123a7! abc123a7!中文 abc123a7!中456!@
Comment inside original code editor abc123 abc123中文 abc123中文
Same nesting with a local event-guard change abc123a7! abc123a7!中文 abc123a7!中456!@

Event records showed beforeinput with insertText and deleteContentBackward was canceled only in the original nested configuration. Composition text was allowed. The comment retained focus and the test source document remained unchanged in this fixture. The reported text states were checked with assertions.

The local guard change excluded event paths through [data-pierre-editor-annotation] or [data-annotation-slot]. This supports excluding independent comment inputs from the outer code editor’s event handlers; it is a diagnostic experiment, not a proposed production-ready patch.

IME composition in the isolated test was driven through the browser protocol, not the native Windows IME candidate UI. Full live-app focus/selection behavior, clipboard paths, other keys and production integration still need maintainer verification.

Original editor component SHA-256:

3e01fd4e6f4c731ae00dd3b13ed79c66e60b958da77f710cd984b10ac8cbe435

The original predicate and beforeinput handler are on line 585 of this minified asset. Installed application files, application settings and user source files were not modified during the investigation.

Temporary workaround: provide the file path, line number and comment text in the main chat composer.

Activity

  1. added
    bug
    app
    windows-os
    on Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions