Skip to content

feat(cli): port functions list #5652

Open
7ttp wants to merge 9 commits into
supabase:developfrom
7ttp:feat/list-legacy
Open

feat(cli): port functions list #5652
7ttp wants to merge 9 commits into
supabase:developfrom
7ttp:feat/list-legacy

Conversation

@7ttp

@7ttp 7ttp commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Warning

WIP

@7ttp 7ttp requested a review from a team as a code owner June 22, 2026 17:46

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 60c2ccab85

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread apps/cli/src/legacy/commands/functions/list/list.handler.ts Outdated
Comment thread apps/cli/src/legacy/commands/functions/list/SIDE_EFFECTS.md Outdated
@7ttp 7ttp self-assigned this Jun 22, 2026
@7ttp 7ttp changed the title feat(cli): port list feat(cli): port functions list Jun 22, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c14b71cbf8

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread apps/cli/src/legacy/commands/functions/list/list.handler.ts
Comment thread apps/cli/src/legacy/commands/functions/list/list.handler.ts Outdated
Comment thread apps/cli/src/legacy/commands/functions/list/list.handler.ts Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 14b882a273

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread apps/cli/src/legacy/commands/functions/list/list.handler.ts Outdated
Comment thread apps/cli/src/legacy/commands/functions/list/list.handler.ts Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1992e9a3b3

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread apps/cli/src/legacy/commands/functions/list/list.handler.ts Outdated
Comment thread apps/cli/src/legacy/commands/functions/list/SIDE_EFFECTS.md
Comment thread apps/cli/src/legacy/commands/functions/list/list.handler.ts Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 012d9df0e5

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread apps/cli/src/legacy/commands/functions/list/SIDE_EFFECTS.md
Comment thread apps/cli/src/legacy/commands/functions/list/list.handler.ts Outdated
Comment thread apps/cli/src/legacy/commands/functions/list/list.handler.ts
Comment thread apps/cli/src/legacy/commands/functions/list/list.handler.ts Outdated
Comment thread apps/cli/src/legacy/commands/functions/list/list.handler.ts Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b99d43d285

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Effect.tapError(() => fetching?.fail() ?? Effect.void),
Effect.catch(mapListError),
);
if (response.status !== 200) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Require JSON content before decoding functions

For HTTP 200 responses with a missing or non-JSON Content-Type (for example a replay server returning text/plain JSON), this branch proceeds to parse and render the body. The Go client only sets JSON200 when strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200 in apps/cli-go/pkg/api/client.gen.go, and internal/functions/list/list.go then reports unexpected list functions status 200: <body> when JSON200 is nil. Check the response content type before entering the decode path so native functions list preserves that legacy failure mode.

Useful? React with 👍 / 👎.

yield* Effect.gen(function* () {
const fetching =
output.format === "text" ? yield* output.task("Fetching functions...") : undefined;
const response = yield* api.executeRaw(operationDefinitions.v1ListAllFunctions, { ref }).pipe(

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Disable API-client retries for Go-parity list calls

Because the legacy API layer builds makeApiClient without overriding retry options, this GET inherits applySupabaseRetryPolicy's default 5 retries for idempotent 5xx responses in packages/api/src/internal/client.ts. The Go path uses a plain http.Client from apps/cli-go/internal/utils/api.go and internal/functions/list/list.go reports the first V1ListAllFunctionsWithResponse status/error, so a transient 503 or replay fixture can now issue extra /functions requests or even succeed after a response the Go CLI would have returned as unexpected list functions status 503.

Useful? React with 👍 / 👎.

Comment thread apps/cli/src/legacy/commands/functions/list/SIDE_EFFECTS.md
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