Skip to content

Show usage budget before querying SQL details - #373

Merged
andy-xu-db merged 1 commit into
mainfrom
feature/usage-budget-first
Aug 25, 2026
Merged

Show usage budget before querying SQL details#373
andy-xu-db merged 1 commit into
mainfrom
feature/usage-budget-first

Conversation

@andy-xu-db

@andy-xu-db andy-xu-db commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • show current budget spend and threshold before starting a SQL warehouse
  • prompt users before querying detailed token and estimated cost usage
  • skip SQL warehouse discovery and price lookup when details are declined

Testing

  • uv run pytest tests/test_usage.py
  • uv run ruff check src/ucode/usage.py tests/test_usage.py

Full test suite reaches an unrelated existing Claude user-agent e2e failure where no request reaches the local capture server.

🥞 Stacked PR

Use this link to review incremental changes.


@andy-xu-db
andy-xu-db enabled auto-merge (squash) August 24, 2026 17:22
@andy-xu-db

Copy link
Copy Markdown
Collaborator Author

/merge

@andy-xu-db
andy-xu-db force-pushed the feature/usage-budget-first branch from c353f45 to b41c1d1 Compare August 25, 2026 20:26
@andy-xu-db
andy-xu-db merged commit 598df53 into main Aug 25, 2026
2 checks passed
@andy-xu-db
andy-xu-db deleted the feature/usage-budget-first branch August 25, 2026 20:32
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.

2 participants