Skip to content

fix: review_rate_limits unusable in Cloud OAuth mode - #199

Closed
zzstoatzz wants to merge 1 commit into
mainfrom
fix-rate-limits-workspace-id
Closed

fix: review_rate_limits unusable in Cloud OAuth mode#199
zzstoatzz wants to merge 1 commit into
mainfrom
fix-rate-limits-workspace-id

Conversation

@zzstoatzz

Copy link
Copy Markdown
Collaborator

this PR adds a workspace_id parameter to review_rate_limits — in Cloud OAuth mode the tool errored with workspace_id is required when using Prefect Cloud OAuth mode, but its input schema had no workspace_id parameter, so it was impossible to call.

details
  • threads workspace_id from the tool through get_rate_limits to both get_prefect_client and get_prefect_cloud_client
  • adds regression tests: the client factories receive the workspace_id, and the tool's input schema exposes it
  • caveat: /accounts/{account_id}/rate-limits/usage is an account-level path — I haven't been able to verify whether workspace-scoped OAuth tokens are authorized for it, so OAuth-mode calls may still be rejected server-side even with this fix. this at least makes the tool callable and surfaces the real answer

🤖 Generated with Claude Code

The tool errored with 'workspace_id is required when using Prefect
Cloud OAuth mode' but its input schema had no workspace_id parameter,
making it impossible to call. Thread workspace_id from the tool
through get_rate_limits to both client factories.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@zzstoatzz zzstoatzz closed this Aug 6, 2026
@zzstoatzz
zzstoatzz deleted the fix-rate-limits-workspace-id branch August 6, 2026 17:49
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