Skip to content

feat(cli): add query-timeout flag to gen types command#5274

Merged
avallete merged 3 commits into
developfrom
claude/ts-shim-flag-parity-pEsyv
May 18, 2026
Merged

feat(cli): add query-timeout flag to gen types command#5274
avallete merged 3 commits into
developfrom
claude/ts-shim-flag-parity-pEsyv

Conversation

@avallete
Copy link
Copy Markdown
Member

@avallete avallete commented May 18, 2026

Adds support for a --query-timeout flag to the supabase gen types command, allowing users to specify a maximum timeout for database queries during type generation.

Changes:

  • Added queryTimeout string flag to the types command configuration with optional modifier
  • Updated the types handler to pass the --query-timeout argument to the underlying proxy when the flag is provided
  • Flag is optional and only included in the command arguments when explicitly set by the user

Closes: #5275

https://claude.ai/code/session_01RA5Zbm2H5o28poUJ3hJWTJ

The Go CLI exposes --query-timeout (default 15s) on supabase gen types
to bound the database query, but the legacy TS shim did not declare it,
so the flag was rejected at the shim's arg-parsing layer before reaching
the Go binary.

Add the flag to the command definition and forward it through the proxy
handler when present.

Refs CLI-1483
@avallete avallete requested a review from a team as a code owner May 18, 2026 14:01
@avallete avallete mentioned this pull request May 18, 2026
@avallete avallete enabled auto-merge (squash) May 18, 2026 14:14
@avallete avallete merged commit 99501d8 into develop May 18, 2026
12 of 14 checks passed
@avallete avallete deleted the claude/ts-shim-flag-parity-pEsyv branch May 18, 2026 14:30
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.

gen types rejects --query-timeout

3 participants