Skip to content

chore(repo): sync develop into next - #7662

Merged
supabase-cli-releaser[bot] merged 22 commits into
nextfrom
sync/develop-into-next
Nov 17, 2026
Merged

supabase-cli-releaser[bot] merged 22 commits into
nextfrom
sync/develop-into-next

Conversation

@supabase-cli-releaser

Copy link
Copy Markdown
Contributor

Merging develop into next conflicts. This branch starts at the tip of develop (5c4c7e8); next is at 91da602.

Conflicting files:

  • apps/cli/src/commands/functions/deploy/SIDE_EFFECTS.md

To resolve:

git fetch origin
git switch sync/develop-into-next
git merge origin/next
# resolve the conflicts, then commit
git push origin sync/develop-into-next

Approve to fast-forward next; do not use the merge button.

supabase-cli-releaser Bot and others added 21 commits November 16, 2026 10:26
This PR was automatically created to sync the generated `@supabase/api`
package with the latest Management API OpenAPI document.

Changes were detected in the upstream OpenAPI documents exposed by
`https://api.supabase.com/api/v1-json` and
`https://api.supabase.com/api/v2-json`.

Co-authored-by: jgoux <1443499+jgoux@users.noreply.github.com>
## TL;DR

`supabase bootstrap` on macOS asked for the keychain password up to 4
times, now it asks once

## what's hurting the user(s)?

every part of the cli that needs your access token read it from the
keychain again instead of reusing the first read
one `bootstrap` run does that 4-7 times, and `secrets list`, `projects
api-keys`, `projects list` and `orgs list` 2 to 3 times

macOS counts each read as a new access, so anyone who clicks Allow
instead of Always Allow gets a password prompt for every one of them

## now fixed by:

reading the keychain once and sharing that token with every caller in
the same run

login, logout and the credentials sweep clear it so a new or removed
token is picked up right away, and `--debug` output stays the same

## ref:

- missed in: #5331
- closes CLI-3135
## TL;DR

prefills the `bootstrap` directory prompt with the current dir so you
see and edit where the project lands

## whats improved?

the prompt starts with the current dir and a trailing slash, so Enter
keeps it in plain sight and typing `my-app` lands in a fresh subfolder

piped stdin and dumb terminals get the path as a placeholder, so scripts
and `--workdir` behave as before

## why?

blank meant the current dir without ever showing it, so a quick Enter
inside an existing project went straight to an overwrite prompt that
defaults to yes

<!-- linear:table-colwidths:364,363 -->
<table>
<thead>
<tr>
<th>before</th>
<th>after</th>
</tr>
</thead>
<tbody>
<tr>
<td>


https://github.com/user-attachments/assets/e1ca203b-6d73-48dd-a5ec-0f349fd52d15

</td>
<td>


https://github.com/user-attachments/assets/88028b6d-e22d-4a57-8a3e-ba948c9788f4

</td>
</tr>
</tbody>
</table>

## ref:

* closes:
[CLI-3137](https://linear.app/supabase/issue/CLI-3137/make-the-bootstrap-destination-directory-default-clearer)
This bumps studio from 2026.11.09-sha-1567384-r0 to
2026.11.16-sha-51bd16d-r0.


https://github.com/supabase/slim-services/releases/tag/studio-2026.11.16-sha-51bd16d-r0

Planned after supabase/slim-services published
2026.11.13-sha-64fad1a-r0. This branch is rewritten from develop
whenever a newer relevant release arrives.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Julien Goux <hi@jgoux.dev>
…7637)

## TL;DR

adds a real docker e2e for multiline functions `.env` values across
`stop` and `start` to the start lifecycle suite

## ref:

- followup to: #7607 & CLI-3131
This bumps storage from v1.95.0-r0 to v1.96.0-r0.


https://github.com/supabase/slim-services/releases/tag/storage-v1.96.0-r0

Planned after supabase/slim-services published v1.96.0-r0. This branch
is rewritten from develop whenever a newer relevant release arrives.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
## TL;DR

adds `supabase stack prune`, which destroys managed local stacks whose
project directory no longer exists

## whats introduced?

`supabase stack prune` finds the stacks whose saved project directory is
gone, like a deleted worktree or a moved project, and destroys them with
their data after one confirmation.

`--dry-run` only lists them, `--yes` skips the question for CI and
agents, and `--output-format json` lists what was removed.

a stack whose directory still exists is never selected, and each
directory is checked again right before its stack is destroyed. `stack
destroy` and `stack list` behave as before.

## why?

stacks of deleted worktrees and moved directories keep their data and
can keep running. finding them meant reading `stack list` and checking
each project path by hand before passing the ids to `stack destroy`.

agents create and remove worktrees all the time, so these piled up with
no way to find them.

## ref:

- related: #7568
- related: #7269
- closes: CLI-2548
A newer slim release rebuilt its `slim-bump/<service>` branch from
`develop` and force-pushed it, which dropped any commit a maintainer had
pushed to make the bump pass CI (as on #7634).

The apply step still generates every bump from the `develop` checkout,
so no code from the branch runs while the app token is available. When
the branch's open PR carries commits authored by someone other than the
workflow, those commits are cherry-picked onto the fresh bump; merge
commits and the workflow's own superseded commits are dropped. A replay
conflict fails the run with manual steps. A leftover branch without an
open PR is rebuilt as before.

Every push now uses `--force-with-lease` on the tip read just before, so
a push that lands mid-run is never overwritten.

The PR body the workflow writes and ADR 0026 "Hotfix and upgrade pickup"
describe the new behavior.
## Summary

Most `db` commands have pinned to the Supabase CA. `db dump` and `db
push` did not. Ensure the CA is pinned for all commands

## Linked issue

Closes #cli-3140



## Checklist

- [x] The PR title follows [Conventional
Commits](https://www.conventionalcommits.org/) (e.g. `fix(cli): …`).
- [x] Tests added or updated for the change.
- [x] From the repository root, `pnpm check:all` passes; relevant
package tests pass for every touched workspace, and `pnpm types:check`
passes for each touched TypeScript workspace (or workspace declaring
it).

---------

Co-authored-by: 7ttp <117663341+7ttp@users.noreply.github.com>
This bumps realtime from v2.165.0-r0 to v2.167.0-r0.


https://github.com/supabase/slim-services/releases/tag/realtime-v2.167.0-r0

Planned after supabase/slim-services published v2.167.0-r0. A newer
relevant release rewrites this branch from develop and replays any
commits others pushed to it.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
## TL;DR
Teardown now waits up to 60s (exponential backoff capped at 2s) for
another stack's Docker prune, instead of a fixed ~10s attempt budget.

- `stop.e2e.test.ts › stop --no-backup --debug reports real pruned
containers, volumes, and network`: `stop` failed with `failed to prune
containers: Error response from daemon: a prune operation is already
running`. Docker serializes prunes per daemon, and another stack's
container/volume prune in the same shard held the lock longer than the
40 × 250ms retry window in `docker-remove-all.ts`. The wait is now
bounded by elapsed time, and an exhausted wait names how long it waited
and how many attempts it made. This affects `stop` and the `start`
rollback teardown for users running several stacks too.

## ref
spotted in:
https://github.com/supabase/cli/actions/runs/42601796698/job/129107821033

---
_Generated by [Claude
Code](https://claude.ai/code/session_01MBEk1MjMxzzyP1gVeMiWys)_

---------

Co-authored-by: Claude <noreply@anthropic.com>
## TL;DR
Fixes one whole-stack flake and adds named diagnostics to two flakes
whose cause is still unknown.

- `whole-stack.podman.lifecycle.e2e.test.ts › writes stay confined…`:
Studio's metadata call returned 502. On a cold engine, Studio was still
in its `preparing` stage when the traffic wake budget ran out. The flow
now calls `prepare` on Studio before the request, so the request only
exercises the lazy wake.
- `Pooler.integration.test.ts › serves Pooler SQL against the owned
database`: this test only ever reported its 120s test timeout. Each
phase (database start/readiness/relay, and the pooler's
start/readiness/connect/query/stop for each runtime and mode) now has a
named guard deadline, so a stall names the step that hung. The
`phaseDeadline` helper moves to `packages/stack/tests/` and the storage
suite now shares it.
- `advisors.live.test.ts › reads advisor findings over the database
connection` (and its sibling, which failed in the same run): when `db
advisors` returns no findings, the test now reports the table's RLS
flag, the `anon` and `authenticated` SELECT privileges, and the exposed
schemas as the lint session's role sees them.

## ref
spotted in:
-
https://github.com/supabase/cli/actions/runs/43413521407/job/131845624205
-
https://github.com/supabase/cli/actions/runs/43413521407/job/131845624199
-
https://github.com/supabase/cli/actions/runs/43401298717/job/131804505472

---
_Generated by [Claude
Code](https://claude.ai/code/session_01MBEk1LMouEhCXP5bABWjgJ)_

---------

Co-authored-by: Claude <noreply@anthropic.com>
## TL;DR

Two flakes with unknown causes now fail with the details needed to find
the real cause.

- `contract.native-tls.integration.test.ts › consumer contract
(stack/native over api.tls, project pair)`: the run failed with `Owner
response unavailable; the request outcome is uncertain: HttpError: `.
The RPC client error message for a serialized HTTP failure drops the
transport kind and the nested causes. The stack error now names the
transport kind, each nested message and the socket error code, for
example `HttpError TransportError: Transport error (POST …): fetch
failed: other side closed (UND_ERR_SOCKET)`.
- `Mail.integration.test.ts › keeps a captured email after a native mail
stop and start`: the mailbox came back empty (`expected [] to include
'persistence-test'`) without showing which process replied. Readiness
accepts any 2xx on the port. Mailpit prints no line after its HTTP bind,
so a bind-line readiness check can't confirm the bind. After each start
the test now checks that the Mailpit answering uses this instance's
database (`/api/v1/info`), and adds Mailpit's output and port to each
failure.

## ref

spotted in:
-
https://github.com/supabase/cli/actions/runs/43201489194/job/131125766890
-
https://github.com/supabase/cli/actions/runs/43176200373/job/131040928003

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01MBEk1MLMsKMitQvScEUGE1

---------

Co-authored-by: Claude <noreply@anthropic.com>
This bumps auth from v2.197.0-r0 to v2.198.0-r0.

https://github.com/supabase/slim-services/releases/tag/auth-v2.198.0-r0

Planned after supabase/slim-services published v2.198.0-r0. A newer
relevant release rewrites this branch from develop and replays any
commits others pushed to it.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…en 0.4.0 (#7608)

## Summary

`supabase gen types --lang swift` now builds the `supabase-typegen`
generator from supabase-swift's source, through `@supabase/typegen`
0.4.0 (SDK-3045, supabase/sdk#361). This PR does two things:

1. **Passes `HOME` and `XDG_CACHE_HOME` to the Swift driver.** The
driver reads them from the filtered environment the generator layer
gives it, to find its cache of built binaries. Before this PR, the layer
passed only `PATH`, `PATHEXT` and `ComSpec`. The cache path became
relative and resolved against the working directory, so binaries landed
inside the user's project. Other languages do not change: the spawned
tool already inherits the full environment, and the Dart driver reads
nothing from this object.
2. **Bumps `@supabase/typegen` from 0.3.4 to 0.4.0.** With it, the Swift
driver:
- builds `supabase-typegen` from source at a supabase-swift commit, and
caches the binary by commit. It no longer downloads a prebuilt binary;
- picks the commit from the new `--swift-typegen-source
<version|branch|sha|path>` flag, else from the supabase-swift pin in the
nearest `Package.resolved`, else from the latest 3.x release (with a
notice on stderr);
- drops `SUPABASE_TYPEGEN` and the `PATH` fallback. The flag's
local-path form covers what `SUPABASE_TYPEGEN` did.

The CLI needs no code for the new flag. It renders language flags from
the registry's option specs, so `--swift-typegen-source` appears with
the bump, like `--swift-access-control`. Like every language flag, it is
in the mutex group with `--remote`, `--linked` and `--project-ref`.

The driver change is not marked as breaking. The Swift generator is
still alpha in supabase-swift, so 0.4.0 is a minor bump.

## Linked issue

Linear: CLI-3138 (replaces CLI-3134). Driver: SDK-3045.

- [x] The linked issue is **open** and carries the
`open-for-contribution` label (or I'm a Supabase maintainer).

## How it was tested

- End to end, with the CLI from this branch (`bun apps/cli/src/main.ts
gen types --lang swift --db-url …`), a Postgres 17 container with a
table, an enum, a view and a function, and Swift 6.4 on macOS. The cache
was a fresh `XDG_CACHE_HOME`.

  | Case | Result |
  | -- | -- |
| `--swift-typegen-source main`, no `Package.resolved` | Built
supabase-swift `main` (`f4f132a`) from source in 212 s, cached it, and
printed the `@Table` structs, the enum and the function. |
| Same, again, with `--swift-access-control public` | Used the cached
binary in 2 s. The output is `public`. |
| `Package.resolved` two levels up pins `main` at `f4f132a` | `Using
branch main at f4f132a…, pinned in ../../Package.resolved.` Cached, 2 s,
same output. |
| No pin, no flag | Fails: supabase-swift has no 3.x release yet. The
message names `--swift-typegen-source`. |
| `--swift-typegen-source f4f132a` | Fails before git runs: an
abbreviated SHA is refused. |
| `--swift-typegen-source 3.0.0-alpha.1` | Fails: no tag
`v3.0.0-alpha.1` yet. |
| `--swift-typegen-source ./supabase-swift` (a clone) | Built in the
checkout in 203 s. Same output as the other builds. The checkout has no
git changes after the build. |

No run wrote files into the project folders, and no scratch folders were
left in `$TMPDIR`.

- Unit and integration tests:
- `types.generator.integration.test.ts` runs a fake `supabase-typegen`
from the cache under `XDG_CACHE_HOME`, and under `HOME`. The cache is
now keyed by the pinned commit SHA.
- `types.integration.test.ts` checks that `--swift-typegen-source`
reaches the generator, and that it is rejected with `--project-ref`.
- `types.generator.unit.test.ts` checks that only the Swift generator
gets the flag.
- All unit tests pass (7655). The integration tests for
`src/commands/gen` pass (271).
- In the full integration run, 3 TLS tests in
`db-connection.sql-pg.integration.test.ts` fail on my machine. They
passed in CI on the previous head, and this PR does not touch that code.
A compute logs test failed once and passes when run alone.
- `oxfmt`, `oxlint`, `tsc` and `knip` are clean. A frozen `pnpm install`
passes.

## Checklist

- [x] The PR title follows [Conventional
Commits](https://www.conventionalcommits.org/) (e.g. `fix(cli): …`).
- [x] Tests added or updated for the change.
- [x] Relevant package tests pass for every touched workspace, and the
touched TypeScript workspace type-checks. Locally, `lint:check`,
`fmt:check` and `knip:check` pass. `lint:actions:check` did not run,
because `jactionlint` is not installed, and this PR changes no workflow.

## Why now

supabase-swift v3 launches as Public Alpha on 2026-12-11. Its demo flow
is `supabase gen types --lang swift`. This PR must ship in a CLI release
before that date.

<!-- ci retrigger -->

---------

Co-authored-by: Andrew Valleteau <avallete@users.noreply.github.com>
Co-authored-by: avallete <8771783+avallete@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This bumps storage from v1.96.0-r0 to v1.96.2-r0.


https://github.com/supabase/slim-services/releases/tag/storage-v1.96.2-r0

Planned after supabase/slim-services published v1.96.2-r0. A newer
relevant release rewrites this branch from develop and replays any
commits others pushed to it.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This bumps realtime from v2.167.0-r0 to v2.168.0-r0.


https://github.com/supabase/slim-services/releases/tag/realtime-v2.168.0-r0

Planned after supabase/slim-services published v2.168.0-r0. A newer
relevant release rewrites this branch from develop and replays any
commits others pushed to it.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
`functions deploy`, `projects create` and `bootstrap` call the
Management API with `executeRaw` and build their own status errors, so a
plan-gate denial (`entitlement_required`) reached the user without the
upgrade hint, the JSON `error.entitlement` or the
`cli_upgrade_suggested` event that `mapHttpError` callers already get. I
moved the envelope read into one shared function,
`planGateFromResponse`, and both paths now use it.

**Changed:**
- **Plan-gated project create**: I made `projects create` and
`bootstrap` (which shares the create step) handle a 4xx that carries the
envelope: each prints the upgrade hint once, adds `entitlement` to the
JSON error, fires `cli_upgrade_suggested` and classifies the error as
`plan_limit`.
- **Plan-gated function deploy**: I applied the same handling to
function create, update, API deploy and bulk update.
- **`mapHttpError`**: I switched it to read the envelope from the body
text it already holds, through the same shared function. Its behavior is
unchanged.

**Note:** a `--use-api` deploy of several functions still reports its
failures as one aggregate error with no entitlement. I left that path
for a follow-up.

## Linear
- fixes GROWTH-1484
The gateway CORS live test intermittently failed on the live job in two
ways, both from a brief 403 on the freshly created staging project:

- Staging answered the two \`OPTIONS /rest/v1/\` probes with a bare 403
and no CORS headers, so the stack-versus-staging comparison failed.
- \`functions deploy\` got a 403 from the Management API's
list-functions call.

The staging readiness gate now also waits for both REST preflight probes
to stop answering 403 before staging is recorded, and \`functions
deploy\` is retried (5s apart, up to 12 times) when it fails with a 403.
Other deploy failures still fail immediately, and the
stack-versus-staging assertion is unchanged.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
This bumps postgrest from v16.5-r0 to v16.6-r0.


https://github.com/supabase/slim-services/releases/tag/postgrest-v16.6-r0

Planned after supabase/slim-services published v16.6-r0. A newer
relevant release rewrites this branch from develop and replays any
commits others pushed to it.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
## TL;DR
The routed-peer plain probe now ignores SIGPIPE, so it reports the
proxy's close instead of dying.

- `HttpProxy.integration.test.ts › gives a routed peer inside the bridge
network no plain byte, but TLS`: the namespace `bash` probe failed with
`Process interrupted due to receipt of signal: 'SIGPIPE'`. The proxy
closes a plain connection from a non-loopback peer. When that close
arrives before `printf >&3` writes the request, bash dies of SIGPIPE,
and the `&&` chain never reaches the read. The probe now uses the
api.tls probe pattern from #7590: `trap '' PIPE`, a write that can fail
without stopping the chain, and the read that reports the close.

## ref
spotted in:
https://github.com/supabase/cli/actions/runs/43972802044/job/133669050994

---
_Generated by [Claude
Code](https://claude.ai/code/session_01MBEk1LoYxzbfzYDtuz4z4F)_

Co-authored-by: Claude <noreply@anthropic.com>
@supabase-cli-releaser
supabase-cli-releaser Bot requested review from a team and supabase-oss as code owners November 17, 2026 10:22
@supabase-cli-releaser supabase-cli-releaser Bot added the do not merge Approve to apply; do not merge. label Nov 17, 2026
# Conflicts:
#	apps/cli/src/commands/functions/deploy/SIDE_EFFECTS.md
@supabase-cli-releaser

Copy link
Copy Markdown
Contributor Author

Claude resolved the merge of next

I resolved the only conflict, a notes-list clash in the functions deploy SIDE_EFFECTS.md, by keeping both bullets. One is develop's note on plan-gated denials and the other is next's note on DockerResourceCreateError and the Docker daemon suggestion.

File Resolution
apps/cli/src/commands/functions/deploy/SIDE_EFFECTS.md Kept develop's plan-gated denial bullet followed by next's Docker network and volume creation error bullet, then removed all conflict markers.

Quick checks. The merged tree passes check:all and unit tests.

Approve to fast-forward next once checks pass (workflow run).

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🤖 AI Review

Both independent reviews completed with no findings. Verified that the sole sync resolution preserves both branches’ documentation entries in functions/deploy/SIDE_EFFECTS.md without conflict markers or contradictory behavior. No merge-introduced issues identified.

Findings

No issues found.

Stats

Claude findings: 0 · Codex findings: 0 · Confirmed: 0 · Refuted: 0 · Uncertain: 0


Models: claude-opus-5-5 + gpt-6.1-sol · Trigger: manual · Workflow run

This review runs once per PR. A maintainer can request another with a /ai-review comment.

@supabase-oss supabase-oss 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.

CI is green and the AI review raised nothing the merge introduced, so this approves Claude's resolution of the sync (https://github.com/supabase/cli/actions/runs/44065201989).

@supabase-cli-releaser
supabase-cli-releaser Bot merged commit d2d2b7a into next Nov 17, 2026
48 of 49 checks passed
@supabase-cli-releaser
supabase-cli-releaser Bot deleted the sync/develop-into-next branch November 17, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not merge Approve to apply; do not merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants