Skip to content

Windows Codex local tool host exits during handshake after update #41241

Description

@985924401peng-lab

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

Powered by Codex & OWL 版本 26.820.80927

What subscription do you have?

plus

What platform is your computer?

Microsoft Windows NT 10.0.19045.0 x64

What issue are you seeing?

I am using the Microsoft Store version of the ChatGPT/Codex Windows app.

App package:
OpenAI.Codex 26.820.9563.0 x64
SignatureKind: Store

Workspace dependencies:
26.826.11250

Every local tool command fails before execution with:

code-mode host exited during handshake

Minimal reproduction:

  1. Open a Codex task.
  2. Ask Codex to run PowerShell command: Get-Location
  3. The command never starts and the handshake error is returned.

The issue started after a recent Codex update.

Troubleshooting already completed:

  • Fully exited all ChatGPT/Codex processes
  • Rebooted Windows multiple times
  • Repaired the Windows app
  • Diagnosed the workspace dependencies; diagnostics reported no problem
  • Reinstalled the workspace dependencies
  • Uninstalled and reinstalled the Microsoft Store ChatGPT app
  • Renamed the existing C:\Users\Lenovo.codex directory and tested with a newly created clean profile
  • Checked Windows Security protection history; no Codex/OpenAI process was blocked

The problem still occurs with a clean profile and clean reinstall.

Expected result:
Get-Location should return the current PowerShell working directory.

Actual result:
code-mode host exited during handshake

What steps can reproduce the bug?

Feedback ID: no-active-thread-01a045fd-1e2e-7673-be59-cc9d6fff1b92

What is the expected behavior?

Please fix it

Additional information

my ID : no-active-thread-01a045fd-1e2e-7673-be59-cc9d6fff1b92

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appbugSomething isn't workingtool-callsIssues related to tool callingwindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions