Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Codex CLI agent crashes with 401 unauthorized error on Windows

Aperta
#800 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
electron, node.js, typescript
Ambito
backend, desktop

Direzione di ricerca

Start by tracing how the Windows desktop app launches the Codex CLI for the AI Director and how it passes the user's authenticated environment; the issue does not name the relevant files or tests. Reproduce with the listed Windows and Codex CLI versions, then compare the launched process with a standalone codex session. Done means the AI Director starts with the existing ChatGPT login and queued tasks can run.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug os:windows
What happened?

Environment:

  • Windows 11
  • Munder Difflin v0.5.7
  • Node.js v26.13.0
  • Codex CLI v0.165.0

I installed Codex CLI using npm install -g @openai/codex and successfully logged in using ChatGPT. The standalone Codex CLI works correctly and can respond to prompts.

However, when Munder Difflin starts the AI Director using the Codex engine, the agent crashes with this error:

Error: account/read failed during TUI bootstrap: account/read failed: workspace routing discovery unauthorized (401) (code -32603)

The AI Director exits with code 1, and submitted tasks remain held in the queue.

I have restarted Munder Difflin and confirmed that the standalone Codex CLI still works. The problem only occurs when Munder Difflin launches the agent.

Expected behavior: The AI Director should start successfully using my authenticated Codex CLI account.

Could you please help me identify the cause and suggest a fix? I would prefer to use my existing ChatGPT/Codex login rather than configure a separate API key, if supported. I installed Munder Difflin using the official Windows .exe installer, not from source. Therefore, the npm install / node-pty rebuild step is not applicable to my installation.

Steps to reproduce
  1. Install Munder Difflin v0.5.7 on Windows.
  2. Install Node.js v26.13.0.
  3. Install Codex CLI using npm install -g @openai/codex.
  4. Run codex login and sign in using ChatGPT.
  5. Verify that codex login status reports Logged in using ChatGPT.
  6. Run codex in CMD and confirm that it can respond to a simple prompt.
  7. Configure a local Munder Difflin workspace and select the Codex engine for the AI Director.
  8. Start the AI Director.
  9. Observe the 401 unauthorized error and process exit code 1.
Image Image
Screenshot or screen recording
Image Image
Logs / stack trace
Error: account/read failed during TUI bootstrap: workspace routing discovery unauthorized (401) (code -32603)

process exited (code 1)
Operating system

Windows

OS version

Windows 11 Pro 25H2 (Build 26200.9711)

Munder Difflin version

0.5.7

Node version

v26.13.0

Agent CLI and version (if relevant)

Codex CLI v0.165.0

Pre-flight
  • I attached a screenshot or recording above.
  • I'm on the latest release, or I've said above why I can't be.
  • I re-ran npm install so node-pty is rebuilt for the current Electron ABI (source installs only).
  • I searched existing issues and this isn't a duplicate.
Lingua principale
TypeScript
Stelle
8.5k
Fork
1.2k
Merge medio
12h 44m
PR unite (30g)
65

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di HarnessMD/munder-difflin

Tutte le issue di HarnessMD/munder-difflin

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.