Skip to content

Show Codex account usage in Decodex App#51

Merged
yvette-carlisle merged 3 commits into
mainfrom
xy/decodex-app-account-usage
May 18, 2026
Merged

Show Codex account usage in Decodex App#51
yvette-carlisle merged 3 commits into
mainfrom
xy/decodex-app-account-usage

Conversation

@yvette-carlisle
Copy link
Copy Markdown
Member

@yvette-carlisle yvette-carlisle commented May 18, 2026

Summary

  • add server-owned /api/accounts routes for cached Codex account usage and account mutations
  • route Decodex App account list/select/clear/logout/import/use through decodex serve, with helper retained only for streamed account_login
  • reuse an existing local decodex serve instead of starting duplicates; if no server is present, start the bundled decodex serve --api-only so App-owned servers do not poll Linear or dispatch work
  • remove the generic helper fallback for account commands: non-login account operations must be served by the server
  • show plan plus 5h / 7d remaining usage chips and preload account state so the first menu click is not empty
  • package and sign the bundled decodex server binary alongside decodex-app-helper

Verification

  • cargo make check-rust
  • cargo make check-vstyle-rust
  • cargo test -p decodex api_only -- --nocapture
  • cargo test -p decodex operator_state_endpoint_serves_account_api_snapshot -- --nocapture
  • cargo test -p decodex list_response_merges_usage_snapshot -- --nocapture
  • swift build --package-path apps/decodex-app
  • cargo make test-decodex-app-stage
  • ./apps/decodex-app/script/build_and_run.sh --verify
  • git diff --check

Operational Notes

  • Rebased onto origin/main at 32d83fab.
  • Existing full decodex serve instances remain the source of truth for App/WebUI state.
  • App-started servers are API-only and publish automation_disabled; they do not tick registered projects or touch Linear queues.
  • On this machine, the App was restarted and reused the already-running 127.0.0.1:8912 pubfi server instead of starting another server.

@yvette-carlisle yvette-carlisle force-pushed the xy/decodex-app-account-usage branch from aaf7981 to b06e72a Compare May 18, 2026 15:05
@yvette-carlisle yvette-carlisle force-pushed the xy/decodex-app-account-usage branch from fa9f222 to 43fa59b Compare May 18, 2026 15:52
@yvette-carlisle yvette-carlisle marked this pull request as ready for review May 18, 2026 15:52
@yvette-carlisle yvette-carlisle merged commit b898470 into main May 18, 2026
14 checks passed
@yvette-carlisle yvette-carlisle deleted the xy/decodex-app-account-usage branch May 18, 2026 15:54
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