Tam Nhu Tran
22f091689f
fix(codex): harden duplicate-email account actions
2026-03-30 15:30:11 -04:00
Tam Nhu Tran
c73f33872a
feat(cliproxy): support duplicate-email codex accounts
...
- keep Codex team and personal auth files as separate identities
- resolve quota and live monitor stats by token file-backed account id
- surface duplicate-aware account labels across the dashboard and variant UI
2026-03-30 15:30:11 -04:00
Tam Nhu Tran
3ea9d2fc34
fix(settings): stabilize websearch and quota checks
2026-03-25 16:31:55 -04:00
Tam Nhu Tran
fc3600e922
fix: improve quota diagnostics and oauth refresh handling
2026-03-07 11:09:15 +07:00
Tam Nhu Tran
9031e5a085
fix(cliproxy): log unknown codex quota window labels
...
- detect and de-duplicate unclassified quota window labels
- emit diagnostics in verbose/debug modes for API label drift
- add unit tests for unknown-label extraction behavior
2026-02-17 20:53:03 +07:00
Tam Nhu Tran
4fc19c4390
feat(cliproxy): expose codex weekly reset schedule in quota views
2026-02-15 09:48:39 +07:00
kaitranntt
ad8327d17e
test(cliproxy): add unit tests for quota fetchers and auth utilities
...
Add comprehensive unit tests for:
- buildCodexQuotaWindows(): window parsing, clamping, reset time calculation
- buildGeminiCliBuckets(): bucket grouping, model series, token types
- resolveGeminiCliProjectId(): project ID extraction from account field
- sanitizeEmail(): email to filename conversion
- isTokenExpired(): token expiry validation
Also removes unused 'preferred' field from GEMINI_CLI_GROUPS (YAGNI)
39 new tests covering edge cases:
- Percentage clamping (0-100, 0-1)
- Missing/null fields
- camelCase/snake_case API responses
- Empty inputs
- Invalid date strings
Addresses code review feedback on PR #395
2026-01-29 15:01:26 -05:00