What happened?
ChatGPT Plus/Pro Codex subscription login fails when I launch pi with Node 26.0.0.
Failed to login to ChatGPT Plus/Pro (Codex Subscription): Unexpected token ', "d�5��"... is not valid JSON
Same pi install and same OAuth flow work with Node 26.1.0.
Steps to reproduce
- Launch pi with Node
26.0.0 explicitly:
/path/to/node-26.0.0/bin/node "$(command -v pi)"
- Run
/login.
- Select
Use a subscription.
- Select
ChatGPT Plus/Pro (Codex Subscription).
- Complete the browser login.
- pi shows the JSON parse error above.
Control:
/path/to/node-26.1.0/bin/node "$(command -v pi)"
Repeating the same /login flow with Node 26.1.0 succeeds and saves credentials.
Expected behavior
Codex subscription login should complete successfully, or pi should show a clear runtime-specific diagnostic for affected Node versions.
Version
- pi:
0.75.0
- also observed with pi
0.74.1 before narrowing this to Node 26.0.0
- failing runtime: Node
v26.0.0, process.versions.undici=8.0.2
- working runtime: Node
v26.1.0, process.versions.undici=8.2.0
- OS: macOS
What happened?
ChatGPT Plus/Pro Codex subscription login fails when I launch pi with Node
26.0.0.Same pi install and same OAuth flow work with Node
26.1.0.Steps to reproduce
26.0.0explicitly:/path/to/node-26.0.0/bin/node "$(command -v pi)"/login.Use a subscription.ChatGPT Plus/Pro (Codex Subscription).Control:
/path/to/node-26.1.0/bin/node "$(command -v pi)"Repeating the same
/loginflow with Node26.1.0succeeds and saves credentials.Expected behavior
Codex subscription login should complete successfully, or pi should show a clear runtime-specific diagnostic for affected Node versions.
Version
0.75.00.74.1before narrowing this to Node26.0.0v26.0.0,process.versions.undici=8.0.2v26.1.0,process.versions.undici=8.2.0