Skip to content

feat: support device auth login#36

Merged
Loongphy merged 4 commits intoLoongphy:mainfrom
Captain-Pam:feat/device-auth-login
Mar 28, 2026
Merged

feat: support device auth login#36
Loongphy merged 4 commits intoLoongphy:mainfrom
Captain-Pam:feat/device-auth-login

Conversation

@Captain-Pam
Copy link
Copy Markdown
Contributor

@Captain-Pam Captain-Pam commented Mar 27, 2026

Summary

Add --device-auth support to codex-auth login by delegating to codex login --device-auth and preserving
the existing account import flow.

Note

Add --device-auth flag to codex-auth login command

  • Adds a device_auth field to LoginOptions and parses --device-auth in the login subcommand, forwarding it to the spawned codex login process.
  • Updates help text, usage section, and examples in cli.zig to document the new flag.
  • Fixes runCodexLogin to treat non-zero exit from the codex process as error.CodexLoginFailed, which was previously ignored.
  • Adds BDD and end-to-end tests covering flag forwarding, duplicate-flag errors, and failure propagation via a fake codex binary.

Macroscope summarized a653825.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 28, 2026

Open in StackBlitz

@loongphy/codex-auth-darwin-arm64

npx https://pkg.pr.new/@loongphy/codex-auth-darwin-arm64@36

@loongphy/codex-auth-darwin-x64

npx https://pkg.pr.new/@loongphy/codex-auth-darwin-x64@36

@loongphy/codex-auth-linux-x64

npx https://pkg.pr.new/@loongphy/codex-auth-linux-x64@36

@loongphy/codex-auth-win32-x64

npx https://pkg.pr.new/@loongphy/codex-auth-win32-x64@36

@loongphy/codex-auth

npx https://pkg.pr.new/@loongphy/codex-auth@36

commit: a653825

@Loongphy Loongphy merged commit aa5d690 into Loongphy:main Mar 28, 2026
10 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