Skip to content

Windows Desktop: in-app terminal fails in Windows native mode; WSL terminal opens but errors when closed #25225

Open

Description

@kryyyyyy

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

26.527.31.26

What subscription do you have?

ChatGPT Plus / Pro account (please let me know if the exact plan is needed).

What platform is your computer?

Windows 11 x64 with WSL2 enabled.

What issue are you seeing?

I am seeing two related Codex Desktop integrated-terminal failures on Windows. The behavior differs depending on whether Codex Desktop is configured to run in Windows native mode or WSL mode.

Path 1: Windows native mode

Configuration:

Agent environment: Windows native
Integrated terminal: sidebar / in-app terminal

Actual behavior:

  • The Codex Desktop sidebar / in-app terminal cannot be opened.
  • Clicking the terminal entry/button does not bring up a usable integrated terminal.
  • The chat/thread remains visible, but the built-in terminal panel is unavailable.

Expected behavior:

  • In Windows native mode, the sidebar / in-app terminal should open normally.
  • The integrated terminal should start in the current thread or project working directory and remain independent from the chat thread lifecycle.

Path 2: WSL mode

Configuration:

Agent environment: Windows Subsystem for Linux
Integrated terminal shell: WSL

Actual behavior:

  • The sidebar / in-app terminal can be opened successfully in WSL mode.
  • However, closing the terminal triggers an error dialog.
  • This makes the terminal lifecycle unreliable: WSL mode gets further than Windows native mode, but terminal close/cleanup fails.

Expected behavior:

  • In WSL mode, opening and closing the integrated terminal should be clean and error-free.
  • Closing the terminal panel should only close the terminal session/panel. It should not produce an error, break the thread, or require restarting Codex Desktop.

Screenshot

Image

What steps can reproduce the bug?

Reproduction A: Windows native terminal cannot open

  1. Open Codex Desktop on Windows.
  2. Configure Codex Desktop to use Windows native mode.
  3. Open or create a thread/project.
  4. Try to open the sidebar / built-in integrated terminal.
  5. Observe that the integrated terminal does not open into a usable terminal session.

Reproduction B: WSL terminal opens but errors on close

  1. Open Codex Desktop on Windows.
  2. Configure Codex Desktop to use WSL mode.
  3. Open or create a thread/project.
  4. Open the sidebar / built-in integrated terminal.
  5. Observe that the terminal opens.
  6. Close the terminal.
  7. Observe that Codex Desktop shows an error dialog after terminal close.

Why I think these are related

Both symptoms are about Codex Desktop's integrated-terminal lifecycle on Windows:

  • Windows native mode fails at terminal startup/open.
  • WSL mode succeeds at terminal startup/open but fails during terminal close/cleanup.

This looks like a Windows Desktop terminal lifecycle issue, possibly involving different code paths for native Windows terminal process spawning and WSL terminal process cleanup.

Related issues

These look adjacent but do not seem to cover this exact two-path behavior:

Additional information

If helpful, I can provide:

  • the current config.toml desktop settings,
  • Codex Desktop logs around the terminal open/close attempts,
  • the WSL distro name and version.

Activity

  1. added
    bug
    app
    windows-os
    on May 30, 2026
  2. github-actions commented on May 30, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

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