Skip to content

[codex] Add aggregate API balance queries#205

Open
KilimiaoSix wants to merge 1 commit intoqxcnm:mainfrom
KilimiaoSix:codex/aggregate-api-balance-query
Open

[codex] Add aggregate API balance queries#205
KilimiaoSix wants to merge 1 commit intoqxcnm:mainfrom
KilimiaoSix:codex/aggregate-api-balance-query

Conversation

@KilimiaoSix
Copy link
Copy Markdown
Contributor

@KilimiaoSix KilimiaoSix commented May 10, 2026

Summary

  • add aggregate API balance query storage/RPC fields and refresh endpoint
  • show balance status/actions in the aggregate API page
  • add built-in generic, One API/New API panel, and custom balance query templates
  • make generic balance checks fallback from /user/balance to /v1/usage
  • harden web runtime probing so /api/runtime transient failures recover automatically

Notes

  • custom templates are restricted to relative paths and simple dot JSON paths

Closes #163

Validation

  • pnpm -C apps run build:desktop
  • pnpm -C apps exec eslint src/components/modals/aggregate-api-modal.tsx
  • pnpm -C apps run test:runtime
  • cargo test -p codexmanager-service generic_balance_extractor_accepts_usage_balance_shape -- --nocapture
  • cargo test -p codexmanager-core migrations -- --nocapture
  • cargo check -p codexmanager-service
  • local RPC refresh verified through the generic fallback path

@KilimiaoSix KilimiaoSix force-pushed the codex/aggregate-api-balance-query branch from 75c0dad to 786538b Compare May 10, 2026 17:40
@KilimiaoSix KilimiaoSix deleted the codex/aggregate-api-balance-query branch May 10, 2026 17:46
@KilimiaoSix KilimiaoSix restored the codex/aggregate-api-balance-query branch May 10, 2026 17:51
@KilimiaoSix KilimiaoSix reopened this May 10, 2026
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.

[Feature] 聚合api这边增加类似cc switch一样的可选余额检测

1 participant