Skip to content

IDE chat repeatedly remounts while idle, flickering and interrupting Chinese IME composition #49917

Open

Description

@DoraemonXia

Idle IDE chat repeatedly remounts and interrupts IME composition when account-query errors change

What version of the IDE extension are you using?

openai.chatgpt, stable version 26.928.31416.

The behavior also occurred before switching from a preview installation to stable. Switching to stable did not by itself resolve it.

What subscription do you have?

ChatGPT sign-in. The subscription tier has not been recorded for this report.

Which IDE are you using?

VS Code 1.135.0 on macOS, using Remote SSH to a Linux server.

What platform is your computer?

Local: Darwin 25.1.0 arm64 arm (uname -mprs). Remote extension host: Linux x86_64.

What issue are you seeing?

An authenticated local chat visibly flickered approximately every 3–4 seconds, including while idle. Its transcript briefly disappeared and returned. The composer DOM node was repeatedly replaced, interrupting Chinese IME composition: after a few characters, the composition could become unconverted pinyin.

The extension host also logged repeated account-query fetch failures. I do not claim that all network failures cause this issue, or that every error/retry transition was individually timestamp-correlated.

What steps can reproduce the bug?

Observed reproduction conditions (not yet a minimal deterministic reproduction):

  1. Use VS Code on macOS with a Linux Remote SSH extension host and the extension version above.
  2. Sign in with ChatGPT and open an existing local conversation in the Codex IDE webview.
  3. In the affected environment, account-query requests repeatedly fail/retry. Leave the conversation idle and observe its transcript and composer for at least 20 seconds.
  4. Try composing a sentence with a Chinese IME. During the flicker, the composer can be recreated and composition is interrupted.

What is the expected behavior?

Account-metadata fetch errors and retries should not unmount the active conversation or replace its composer DOM node. The transcript should remain visible and IME composition should continue uninterrupted, while existing permission and account-deactivation behavior remains intact.

Additional information

Runtime evidence

  • Before the workaround, a 20-second observation recorded repeated transcript disappearance, including ten content-state transitions.
  • A bounded DOM diagnostic confirmed repeated replacement of the contenteditable element.
  • React Fiber inspection identified MJn as the highest recreated component; its parent vfi retained its instance. The account-root key and the local-thread layout wrapper branch remained stable.

Candidate root cause

In webview/assets/app-initial-9cbfb5c07b41.js, vfi receives an account-query error as c and alternates between a wrapper and its bare children:

H = c == null ? jsx(S4e, { children: V }) : V;

S4e resolves to MJn (nZ) from app-initial-4bd9e54bcd58.js. This component always returns its children; it only reads the router location and uses memoization. Adding/removing it changes the React tree shape and recreates the descendant conversation and composer.

Targeted local workaround

Keep that component mounted:

H = jsx(S4e, { children: V });

The existing m permission/account-deactivation checks and dfi branch remain unchanged. No authentication, proxy, or backend configuration was changed by this workaround.

Validation and limitations

The patched JavaScript passes syntax checking. An independent source review confirmed that the wrapper has no access-control behavior. After loading the patch, 65 read-only accessibility snapshots over 16 seconds showed persistent conversation content and composer, with no empty samples. Before the patch, the same symptom recurred within this observation duration.

This is a short observation, not a guarantee about all scenarios. Sustained use and real IME composition still need user verification. Temporary instrumentation was removed. Updating or reinstalling the extension may replace the local workaround.

Suggested regression coverage

Render the authenticated local conversation while the account-query error transitions between absent and present/retrying. Verify that the conversation subtree and the composer DOM node retain identity and that IME composition is not interrupted. Preserve the existing account-deactivation and permission behavior.

Activity

  1. added
    bug
    extension
    connectivity
    on Oct 1, 2026
  2. DoraemonXia commented on Oct 1, 2026

    @DoraemonXia
    Author

    Thanks for flagging these related reports. I reviewed both:

    These could be manifestations of a shared frontend defect. The platform/product difference (Windows desktop versus macOS VS Code with a Linux Remote SSH extension host) does not rule out a duplicate.

    This report adds a candidate code-level explanation in the IDE build: vfi conditionally inserts/removes the S4e/MJn wrapper depending on the account-query error. React Fiber and DOM inspection identified the remount boundary and replacement of the composer. Keeping that wrapper mounted was followed by a short observation without transcript disappearance or a missing composer. This remains limited validation, not a guarantee of a complete fix.

    I have not inspected the affected Windows desktop bundles or confirmed that they contain the same conditional wrapper and error transitions. For now, I am keeping this issue open as related diagnostic evidence, rather than asserting that it is a distinct bug or a confirmed duplicate. If the shared root cause is confirmed, this report can be consolidated with the appropriate existing issue and closed as a duplicate, preserving the code-level findings and regression-test suggestion.

  3. DoraemonXia commented on Oct 1, 2026

    @DoraemonXia
    Author

    Additional observation from the same environment: queued message steering can silently do nothing

    This may be a separate defect. I have not established a shared root cause with the remounting issue above.

    Environment: VS Code on macOS with a Linux Remote SSH extension host, openai.chatgpt stable 26.928.31416, using an npm CLI 0.159.3 app-server. The narrow wrapper workaround described above was installed when this occurred; no queue/admission logic was patched. This is not yet a clean-build or deterministic reproduction, and a relationship to the workaround has not been ruled out.

    Observed behavior:

    • During an active task with three queued follow-ups, clicking the queued item's "Steer" button (Chinese UI: "引导") appeared to have no effect or visible error. The user also reported unresponsive input/send controls; the composer could receive focus during inspection.
    • The backend continued processing the active task. The affected window's extension log recorded 16 occurrences of "Failed to send queued message" with "Queued follow-up changed before dispatch" over approximately 22 minutes.

    Static inspection of this installed build places that error in the queue adapter's pre-dispatch checks, before the steering RPC. The same generic error can result from a disposed adapter, queue eligibility failure, admission/control-ownership failure, or a mismatch between the current and captured queued item. It is checked around asynchronous preparation. The error text alone does not show which condition failed or prove that the user edited a message.

    The UI handler catches this error, logs the warning, and returns without a user-visible error. That explains the silent failure, but not the underlying state transition. The running CLI is above this build's threadQueue minimum (0.148.0-alpha.14); stale UI version/state information has not been excluded.

    Recovery observation:

    • After backing up queued text, I ran VS Code's "Developer: Reload Webviews" in the affected window, rather than reloading the entire window or restarting the extension host.
    • The extension host, app-server, and existing CLI process PIDs and start times remained unchanged. Session records showed normal serial turn completion/continuation with no observed aborted turn or duplicated user message.
    • The user then confirmed the controls were usable again. No separate successful turn/steer receipt was captured. Importantly, natural queue continuation had already begun before the reload, so automatic dispatch is not evidence that the reload fixed steering.

    Suggested diagnostics/regression coverage: distinguish the failed pre-dispatch condition internally; surface a recoverable explanation when a queued steer cannot be dispatched; test queue snapshot and control ownership transitions across async preparation, long-running turns, multiple views, and webview disposal/recreation. Do not bypass the consistency or ownership checks.

    No raw session transcripts, queued prompt contents, account identifiers, private server names, or server addresses are included. If this observation should be tracked separately, please advise and I can open a focused issue.

  4. coder-12138 commented on Oct 3, 2026

    @coder-12138

    Additional user report on 2026-10-03: similar panel flickering and prompt-input interruption persists in Codex VS Code extension version 26.930.31 (version exactly as reported).

    Observed behavior:

    • Only the Codex panel flickers; the rest of the VS Code window does not.
    • Every flicker interrupts prompt input and causes the user's input attempt to fail. This affects basic usability, not just appearance.
    • Rolling back to the version used last week resolves the flickering/input problem. The exact older version number has not been provided.
    • In the user's setup, the older version does not offer GPT-6.1 Sol, so rollback prevents them from using the new model they upgraded to try.

    Expected behavior: keep the active conversation and prompt composer stable, preserve ongoing input, and allow GPT-6.1 Sol to be used without these interruptions.

    This is a user-observed regression report. The account-query/React remount explanation in the original issue has not been independently verified for version 26.930.31. Local OS, VS Code version, subscription tier, Remote SSH status, and diagnostic logs have not yet been provided.

    Please investigate whether the existing fix/diagnosis also applies to 26.930.31 and provide a fix or a workaround that retains GPT-6.1 Sol availability.

  5. vovastoock commented on Oct 5, 2026

    @vovastoock

    I can confirm this issue on Windows as well.
    The exact symptoms are:

    • the Codex chat constantly flickers or reloads
    • the composer loses focus
    • when I move the cursor inside already typed text, it jumps back to the end
    • the model picker closes almost immediately, so selecting GPT-6.1 Sol is nearly impossible
    • reinstalling the extension and restarting VS Code does not help
      I tested multiple versions.
      26.5917.62051 works normally, but GPT-6.1 Sol is not available there.
      26.5928.31416 introduced the flickering and focus reset.
      I also tested the newer 26.5930.51102, and unfortunately the problem is still exactly the same.
      Rolling back to 26.5917.62051 immediately fixes the flickering, cursor reset, and model picker behavior.
      So this does not appear to be related to my VS Code installation, proxy configuration, or Windows setup. It is reproducible specifically on the newer Codex extension builds.
      The issue makes the extension practically unusable for normal work. Please keep this issue open until the remount/flicker problem itself is fixed, not only the disappearing or queued messages.
  6. vovastoock commented on Oct 6, 2026

    @vovastoock

    Update: I tested the newly released VS Code extension version 26.5930.61225 on Windows.
    Unfortunately, the issue is still fully reproducible.
    Symptoms are unchanged:

    • the Codex chat keeps flickering/reloading
    • the composer repeatedly loses focus
    • the caret jumps back to the end while editing existing text
    • the model picker closes almost immediately, making model selection practically impossible
      I have now reproduced the same regression on:
      26.5928.31416
      26.5930.51102
      26.5930.61225
      Rolling back to 26.5917.62051 immediately restores normal UI behavior, although GPT-6.1 Sol is unavailable there.
      So the latest release still does not appear to contain a fix for the remount/flicker issue described in this ticket.
  7. EvanZhu0721 commented on Oct 6, 2026

    @EvanZhu0721

    Additional evidence from the Windows Codex desktop app: the installed desktop bundle contains the same conditional-wrapper pattern described in this issue. This addresses the earlier question about whether the Windows desktop symptoms share that code path.

    Environment and observed reproduction

    • Windows x64, Codex MSIX package versions 26.928.2636.0 and, after an automatic update, 26.930.7945.0. The detailed bundle/runtime inspection below is for 26.930.7945.0.
    • The chat repeatedly appeared to refresh, sometimes every few seconds, including while idle. During Chinese IME composition, candidate selection was interrupted.
    • No extra sidebar needed to be open. Restarting the app and disabling the translucent background did not resolve it.
    • In the affected environment, account-query requests experienced connection resets. These are observed reproduction conditions, not a deterministic network-fault reproduction; we have not established that every network error causes a remount.

    Runtime and bundle evidence

    Bounded DOM, input-event, and React Fiber diagnostics found:

    1. The entire chat layout container was repeatedly removed and recreated, with replacement of the ProseMirror editor. This was a subtree remount, not a full page reload. Previously sampled main, renderer, and GPU processes also retained their PIDs/start times across an episode.
    2. One captured input sequence showed compositionstart, followed about 47 ms later by a focus() call from a ResizeObserver callback, then compositionend and blur of the old editor. This documents the input disruption; it does not establish ResizeObserver as the initiating cause.
    3. The Fiber ancestry at the layout-removal boundary alternated between having and not having the pft component below I$.
    4. The account-query error read from the corresponding live component cache was net::ERR_CONNECTION_RESET.

    In app://-/assets/app-primary-c45f4947797f.js, I$ reads {data:s,error:c}=jx(). After its existing account-deactivation/access-control branch, its final render selection is:

    oe = c == null ? (0, R$.jsx)(pft, { children: ae }) : ae;

    The wrapper is:

    function pft(e) {
      let t = (0, mft.c)(4), { children: n } = e,
          { pathname: r, search: i } = Rm(), a;
      return t[0] !== n || t[1] !== r || t[2] !== i
        ? (a = n, t[0] = n, t[1] = r, t[2] = i, t[3] = a)
        : a = t[3], a;
    }

    It reads the route and returns its children. Adding/removing this component changes the React tree shape even though the returned visual content is identical. This matches the mechanism identified in the original IDE report.

    Narrow workaround and validation limits

    For this one desktop session, a reversible runtime patch made JSX creation return props.children only when the component type was exactly this pft wrapper. This keeps the success/error branches structurally consistent. All other JSX calls, the existing account-deactivation/access-control branch, and network configuration were left unchanged. The installed MSIX/ASAR files were not edited.

    After one final transition out of the cached old wrapper, no further whole-layout removal was recorded for approximately 2 minutes 50 seconds, although error events continued. The user also reported that the visible redraw had stopped during this observation. This is short-term evidence supporting the diagnosis, not proof of a permanent or comprehensive fix. Normal local editor changes were counted separately from whole-layout removal.

    Suggested upstream fix / regression coverage

    Keep the component hierarchy stable when the account-metadata query transitions between success, error, and retry states, while preserving the existing account-deactivation and permission behavior. Assert that the conversation subtree and composer DOM node retain identity, including during active IME composition and while idle.

    This may help consolidate the related Windows desktop reports, including #50364; their individual network failures have not been proven identical. No raw transcripts, typed text, account identifiers, credentials, or local filesystem paths are included here.

  8. AuricTW commented on Oct 30, 2026

    @AuricTW

    I also experience intermittent interruption of Chinese IME composition in the Codex desktop app on Windows.

    • OS: Windows 11, build 26200, x64
    • Codex desktop package: OpenAI.Codex 26.1027.3384.0

    Sometimes a terminal window pops up while Codex is in use, and the Chinese text I am composing is interrupted before I press Enter to confirm the candidate. In some cases I have to retype the affected text.

    The interrupted IME composition resembles the reports in this issue. I have not established whether the terminal popup and the UI remount described here share a root cause, and I have not captured a process trace or a reliable reproduction yet.

  9. JayhZz commented on Nov 4, 2026

    @JayhZz

    Additional confirmation: Windows VS Code + Remote SSH to Ubuntu (Chinese IME interruption)

    I encountered the same behavior while using the Codex VS Code extension on Windows, connected to Ubuntu via Remote SSH.

    Observed behavior

    • The Codex chat panel repeatedly flickered/reloaded.
    • While typing Chinese with an IME, the candidate/composition window disappeared before I selected a character, leaving raw Latin pinyin in the composer.
    • Rolling back once did not help; the version shown in my VS Code extension details at that point was 26.930.51102 (as displayed; I have not independently verified the build ID).

    Confirmed workaround

    • After installing 26.917.62051, both the periodic flickering and Chinese IME composition interruptions disappeared in my environment.
    • The underlying Remote SSH development workflow remained the same.

    Suggestion for maintainers
    This looks like a version-dependent regression in the Codex chat UI in a Remote SSH setup, although I have not captured logs or confirmed the precise cause. Please investigate whether the account-query error/retry-related component remount described in the issue also occurs in affected newer builds. A regression test could retain the identity of the chat composer across account-query loading/error/retry transitions and verify uninterrupted compositionstart → compositionend handling with a Chinese IME.

    The rollback is a temporary user-level workaround, not a source-level fix. Thanks!

  10. JackieYangon commented on Nov 4, 2026

    @JackieYangon

    Additional confirmation: Windows VS Code + Remote SSH to Ubuntu (Chinese IME interruption)

    I encountered the same behavior while using the Codex VS Code extension on Windows, connected to Ubuntu via Remote SSH.

    Observed behavior

    • The Codex chat panel repeatedly flickered/reloaded.
    • While typing Chinese with an IME, the candidate/composition window disappeared before I selected a character, leaving raw Latin pinyin in the composer.
    • Rolling back once did not help; the version shown in my VS Code extension details at that point was 26.930.51102 (as displayed; I have not independently verified the build ID).

    Confirmed workaround

    • After installing 26.917.62051, both the periodic flickering and Chinese IME composition interruptions disappeared in my environment.
    • The underlying Remote SSH development workflow remained the same.

    Suggestion for maintainers
    This looks like a version-dependent regression in the Codex chat UI in a Remote SSH setup, although I have not captured logs or confirmed the precise cause. Please investigate whether the account-query error/retry-related component remount described in the issue also occurs in affected newer builds. A regression test could retain the identity of the chat composer across account-query loading/error/retry transitions and verify uninterrupted compositionstart → compositionend handling with a Chinese IME.

    The rollback is a temporary user-level workaround, not a source-level fix. Thanks!

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

    bugconnectivityextension

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions