Skip to content

Create dashboard run on register_run - #41

Merged
susheem-k merged 1 commit into
mainfrom
fix/register-creates-dashboard-run
Jul 24, 2026
Merged

Create dashboard run on register_run#41
susheem-k merged 1 commit into
mainfrom
fix/register-creates-dashboard-run

Conversation

@susheem-k

Copy link
Copy Markdown
Collaborator

Summary

  • register_run now upserts a dashboard runs row so Admin list/detail show the run without a separate create_run.
  • Ledger __run_total__ spend overlays cost_micros on get/list; halt/clear keep the dashboard row in sync.
  • Bumps package to 0.1.3 (CHANGELOG + __version__) so this can ship via the Release workflow after merge.

Test plan

  • pytest tests/test_store.py::test_register_run_creates_dashboard_row passes
  • Start control plane, call register_run (or run a client that only registers), confirm the run appears on Admin Dashboard without an explicit create_run
  • After spend, dashboard cost matches ledger; halt/clear update status/reason as expected
  • After merge: Actions → Release → Run workflow on main (empty tag → v0.1.3) and confirm PyPI agent-tokenops==0.1.3

Made with Cursor

Admin list/detail read the runs table; registration alone must surface the run
without a separate create_run. Bumps to 0.1.3.

Co-authored-by: Cursor <cursoragent@cursor.com>
@susheem-k
susheem-k merged commit 39455df into main Jul 24, 2026
3 checks passed
@susheem-k
susheem-k deleted the fix/register-creates-dashboard-run branch July 24, 2026 15:29
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