[AI-assisted] fix(status): restore Codex usage windows#79505
[AI-assisted] fix(status): restore Codex usage windows#79505brokemac79 wants to merge 1 commit intoopenclaw:mainfrom
Conversation
|
Thanks for the context here. I did a careful shell check against current Close: current main already contains the Codex usage-window restoration through merged work that covers both So I’m closing this as already implemented rather than keeping a duplicate issue open. Review detailsBest possible solution: Keep the current-main implementation from the merged status/Codex fix and close this redundant branch without merging extra compatibility or test churn. Do we have a high-confidence way to reproduce the issue? Do we have a high-confidence way to reproduce the issue? Not against current main: the old source-level regression was clear, but current main now routes Codex-harness Is this the best way to solve the issue? Is this the best way to solve the issue? Yes for the repository state now: the already-merged fix uses the effective runtime provider and scoped agent directory, which is the narrow maintainable solution; this PR no longer needs to merge. Security review: Security review cleared: No concrete security or supply-chain concern found; the PR touches status routing/scoping and tests only. What I checked:
Likely related people:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 3ff0da799387; fix evidence: commit 7872909709ac, main fix timestamp 2026-05-09T10:53:09Z. |
7be9b6d to
5fd9ffd
Compare
|
Rebased this branch onto current Validation run locally on the rebased head
I also attempted live local |
5fd9ffd to
3dc33c5
Compare
|
Rebased this branch onto current Validation on rebased head
Fresh GitHub checks are now running on the new head. |
Summary
/statusCodex-runtimeopenai/*usage lookups through the effectiveopenai-codexauth/usage provideropenclaw status --usageto the scanned config/default agent dir so per-agent Codex OAuth profiles are visibleVerification
corepack pnpm test src/auto-reply/reply/commands-status.test.ts src/commands/status-runtime-shared.test.ts src/commands/status.test.tscorepack pnpm exec oxfmt --check --threads=1 CHANGELOG.md src/status/status-text.ts src/commands/status-runtime-shared.ts src/commands/status-runtime-shared.test.ts src/commands/status.command.ts src/commands/status.test.ts src/auto-reply/reply/commands-status.test.tscorepack pnpm check:changelog-attributionscorepack pnpm check:changedgit diff --check origin/main...HEADcodex review --base origin/main -c model_reasoning_effort="medium"Real behavior proof
openai/*status output selected OpenAI Codex auth, but usage routing still looked up the plainopenaiprovider, so Codex quota windows were omitted from/statusandopenclaw status --usage.fix-codex-usage-status-79312at head7be9b6d3c9, with the local OpenClaw source tree run through Corepack/pnpm.corepack pnpm exec tsx -e "import { resolveUsageProviderId } from './src/infra/provider-usage.shared.ts'; const modelProvider = 'openai'; const selectedStatusAuthProvider = 'openai-codex'; const selectedUsageProvider = resolveUsageProviderId(selectedStatusAuthProvider) ?? resolveUsageProviderId(modelProvider); console.log('modelProvider=' + modelProvider); console.log('selectedStatusAuthProvider=' + selectedStatusAuthProvider); console.log('selectedUsageProvider=' + selectedUsageProvider); console.log('statusUsageRoute=' + (selectedUsageProvider === 'openai-codex' ? 'codex-quota-windows-enabled' : 'missing'));"from the patched checkout.openaimodels running under the Codex auth path toopenai-codex, which is the provider that owns Codex quota-window loading. The focused status verification also rendered theUsage:line for this route and confirmed the Claude CLI Anthropic fallback remains onanthropic.Fixes #79312.