Skip to content

T100: the Claude plan backend on Windows - #84

Merged
imthi16 merged 1 commit into
mainfrom
task/T100-windows-claude
Nov 4, 2026
Merged

imthi16 merged 1 commit into
mainfrom
task/T100-windows-claude

Conversation

@imthi16

@imthi16 imthi16 commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Why

A Windows tester chose Claude plan on Setup. Test connection said only smoke failed: claude-cli exited with code 1.

What

  • The claude call gets a minimal environment. That list held only Unix names, so on Windows Claude Code could not find its login (USERPROFILE, APPDATA), and Node lacked SYSTEMROOT and TEMP. The list now also passes USERPROFILE, APPDATA, LOCALAPPDATA, SYSTEMROOT, SYSTEMDRIVE, TEMP, TMP, PATHEXT, COMSPEC, HOMEDRIVE, HOMEPATH and USERNAME. None of these is a secret.
  • A failing call now shows the CLI's own JSON result, up to 200 characters. stderr is still never shown.

Checked

  • A real call on Linux with an empty CLAUDE_CONFIG_DIR now says: claude-cli exited with code 1: Not logged in · Please run /login.
  • New test for the reason message and the Windows env names.
  • Full suite: 948 passed, 1 skipped. Ruff clean.

Not checked

  • A run on Windows. The cause comes from reading the code and the symptom; it was not reproduced on Windows.

The claude-cli call gets a minimal environment that held only Unix names,
so on Windows Claude Code could not find its login (USERPROFILE, APPDATA)
and Node lacked SYSTEMROOT and TEMP: Test connection said only "exited
with code 1". Those Windows names are passed now, and a failing call
shows the CLI's own JSON "result" (stderr is still never shown).
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T10:30:10.926132Z 95ae3d6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@imthi16
imthi16 merged commit c6ee9d1 into main Nov 4, 2026
5 checks passed
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.

2 participants