Description
Description
When using Codex OAuth (auth.json), the plugin reports the error: Token conflict. Run codex to log in again after 8 days.
Observed Behavior
Both Codex and the codex CLI remain authenticated and continue working normally, despite the plugin error.
Workaround
Increasing REFRESH_AGE_MS in plugin.js prevents the error and allows the plugin to function correctly without reauthentication.
Possible Causes
- Token refresh may not be functioning correctly.
- The plugin attempts to refresh tokens based on a hardcoded age instead of checking whether a refresh is actually required.
Steps to Reproduce
- Configure the plugin to use Codex OAuth via
auth.json.
- Use the plugin normally for several days.
- After approximately 8 days, observe the error: Token conflict. Run
codex to log in again.
- Verify that both Codex and the
codex CLI are still authenticated and functioning normally.
- Modify
REFRESH_AGE_MS in plugin.js to a longer duration.
- Observe that the plugin resumes normal operation without requiring reauthentication.
Expected Behavior
Report the correct session and weekly usage.
Actual Behavior
Reports an error: Token conflict. Run codex to log in again.
OpenUsage Version
0.6.24
Operating System
macOS (Apple Silicon)
Screenshots
No response
Additional Context
No response
Description
Description
When using Codex OAuth (
auth.json), the plugin reports the error: Token conflict. Run codex to log in again after 8 days.Observed Behavior
Both Codex and the
codexCLI remain authenticated and continue working normally, despite the plugin error.Workaround
Increasing
REFRESH_AGE_MSinplugin.jsprevents the error and allows the plugin to function correctly without reauthentication.Possible Causes
Steps to Reproduce
auth.json.codexto log in again.codexCLI are still authenticated and functioning normally.REFRESH_AGE_MSinplugin.jsto a longer duration.Expected Behavior
Report the correct session and weekly usage.
Actual Behavior
Reports an error: Token conflict. Run
codexto log in again.OpenUsage Version
0.6.24
Operating System
macOS (Apple Silicon)
Screenshots
No response
Additional Context
No response