Skip to content

fix(desktop): preserve PATH order for Windows command shims - #4855

Open
weiox wants to merge 1 commit into
block:mainfrom
weiox:codex/fix-windows-command-path-order
Open

fix(desktop): preserve PATH order for Windows command shims#4855
weiox wants to merge 1 commit into
block:mainfrom
weiox:codex/fix-windows-command-path-order

Conversation

@weiox

@weiox weiox commented Aug 5, 2026

Copy link
Copy Markdown

Summary

Preserve PATH directory precedence when resolving Windows command shims.

Buzz previously searched every PATH directory for .exe files before searching for .cmd and .bat files. This allowed a later Windows Store codex.exe to override an earlier authenticated npm codex.cmd, causing codex login status to fail and managed agents to incorrectly enter setup mode.

Related issue

N/A - no duplicate found.

Testing

  • Windows .cmd shim resolution regression test
  • Windows login probe .cmd execution test
  • Managed-agent discovery tests: 78 passed
  • CLI probe tests: 2 passed

Signed-off-by: weiox <836678589@qq.com>
@weiox
weiox requested a review from a team as a code owner August 5, 2026 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant