Persist Codex usage stats#34
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 95aeac3d91
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7b00a1d2e0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Summary: - Add a SQLite-backed stats facade for Symphony runs and Codex sessions. - Persist run aggregates, completed session rows, and shutdown snapshots. - Surface lifetime totals and recent sessions in the dashboard/API. Rationale: - Token and runtime history should survive orchestrator restarts. - The raw SQLite shell stays isolated behind a testable Stats module. Tests: - make all Co-authored-by: Codex <codex@openai.com>
7b00a1d to
e9c8092
Compare
|
[codex] Changes since last review:
Commits: |
Context
Fixes #22. Symphony token and runtime stats reset on restart, which hides cumulative usage and completed-session history.
TL;DR
Persist run and Codex session stats in SQLite and show lifetime totals.
Summary
/api/v1/stateand the dashboard.Alternatives
/api/v1/statefields instead of adding another endpoint.Test Plan
make -C elixir allmix test test/symphony_elixir/stats_test.exs test/symphony_elixir/orchestrator_status_test.exs test/symphony_elixir/extensions_test.exs