Skip to content

feat: refresh all account usage for list and switch#58

Merged
Loongphy merged 3 commits intomainfrom
codex/all-accounts-refresh-debug
Apr 15, 2026
Merged

feat: refresh all account usage for list and switch#58
Loongphy merged 3 commits intomainfrom
codex/all-accounts-refresh-debug

Conversation

@Loongphy
Copy link
Copy Markdown
Owner

@Loongphy Loongphy commented Apr 15, 2026

Summary

  • list and switch now fetch usage limits for all accounts before rendering (before: only the active account refreshed)
  • show account status like 401 and 403 in list and switch
  • add list --debug to inspect current account and request info, for example:
codex-auth list --debug
[debug] usage refresh start: accounts=3 concurrency=3
[debug] request usage: personal@example.com
[debug] request usage: work@example.com | Acme Team
[debug] request usage: backup@example.com
[debug] response usage: personal@example.com status=200
[debug] updated usage: personal@example.com 5h=82% weekly=64%
[debug] response usage: work@example.com | Acme Team status=403
[debug] response usage: backup@example.com status=401
[debug] usage refresh done: attempted=3 updated=1 failed=2 unchanged=0

issues

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 15, 2026

Open in StackBlitz

@loongphy/codex-auth-darwin-arm64

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

@loongphy/codex-auth-darwin-x64

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

@loongphy/codex-auth-linux-arm64

npx https://pkg.pr.new/@loongphy/codex-auth-linux-arm64@58

@loongphy/codex-auth-linux-x64

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

@loongphy/codex-auth-win32-arm64

npx https://pkg.pr.new/@loongphy/codex-auth-win32-arm64@58

@loongphy/codex-auth-win32-x64

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

@loongphy/codex-auth

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

commit: 7e1bc3e

@Loongphy Loongphy changed the title Refresh all account usage for list and switch feat: refresh all account usage for list and switch Apr 15, 2026
@Loongphy Loongphy merged commit 4eb521f into main Apr 15, 2026
12 checks passed
@Loongphy Loongphy deleted the codex/all-accounts-refresh-debug branch April 15, 2026 12:03
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.

1 participant