Skip to content

Show usage budget before querying SQL details - #373

Open
andy-xu-db wants to merge 3 commits into
mainfrom
feature/usage-budget-first
Open

Show usage budget before querying SQL details#373
andy-xu-db wants to merge 3 commits into
mainfrom
feature/usage-budget-first

Conversation

@andy-xu-db

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.

@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

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