Codex CLI agent crashes with 401 unauthorized error on Windows
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
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
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
- Install Munder Difflin v0.5.7 on Windows.
- Install Node.js v26.13.0.
- Install Codex CLI using
npm install -g @openai/codex. - Run
codex loginand sign in using ChatGPT. - Verify that
codex login statusreportsLogged in using ChatGPT. - Run
codexin CMD and confirm that it can respond to a simple prompt. - Configure a local Munder Difflin workspace and select the Codex engine for the AI Director.
- Start the AI Director.
- Observe the 401 unauthorized error and process exit code 1.
Screenshot or screen recording
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 installsonode-ptyis 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
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di HarnessMD/munder-difflin
-
Skills catalog shows Install for skills that are already installedForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
HarnessMD/munder-difflin#793 ·
I maintainer di solito rispondono entro 1 giorno
-
Monitor dispatch input is too small to send messagesForse già presa @rajpreetcodes l’ha presa 17 giorni fa. Apertabug os:macos
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
HarnessMD/munder-difflin#720 ·
I maintainer di solito rispondono entro 1 giorno
-
JetBrains Junie CLIApertaenhancement
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
HarnessMD/munder-difflin#510 ·
I maintainer di solito rispondono entro 1 giorno
-
Ask Me counter counts down as questions are answered (5/5 to 1/5), which reads as questions disappearingForse di nuovo libera @xiechimon l’ha presa 44 giorni fa e non c’è nessuna pull request aperta. Apertabug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
HarnessMD/munder-difflin#267 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Improved Task ManagamentApertaenhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
HarnessMD/munder-difflin#798 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di HarnessMD/munder-difflin
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
components-web-app/docs#307 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
localstack/localstack-mcp-server#112 ·
I maintainer di solito rispondono entro 1 giorno
-
area:frontend kind:bug priority:p1 ready
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
bug ready-for-agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
PhyberApex/kuroshiro#1687 ·
I maintainer di solito rispondono entro 1 giorno
-
Performance (Web Vitals) collector: LCP/FCP from background tabs are not discarded, inflating p75Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
umami-software/umami#4720 ·
I maintainer di solito rispondono entro 3 giorni