# Upstream issues

> The Supabase issues better-supabase works around, where each workaround lives and what to remove when the fix ships.

Source: https://bettersupabase.com/docs/upstream-issues

better-supabase works around gaps in Supabase's packages until they are fixed
upstream. This page lists each upstream issue it depends on, the code that
works around it and what changes when the fix ships.
[Supabase packages](/docs/supabase-packages) lists the packages themselves.

## How to use this page [#how-to-use-this-page]

When you upgrade a Supabase package, check the status of every row for that
package here. If a fix is in the release you are upgrading to, remove or
change the workaround in the same pull request as the upgrade, then update
the row (or delete it once the workaround is gone). Each workaround site has a
code comment that names the issue (`supabase/ssr#315`, for example), so
searching the code for the issue finds every place to change.

Statuses were last checked on 2026-12-01. "Fixed on main" means the issue is
closed upstream but no release contains the fix yet. A row whose workaround is
"None" tracks an issue that costs better-supabase something (bundle size, a
check it can't make) without code to remove. Paths are relative to
`packages/better-supabase` unless they name the repository root or the docs.

## supabase/supabase-js [#supabasesupabase-js]

Covers auth-js, postgrest-js, realtime-js and storage-js, which live in the
supabase-js monorepo.

| Upstream issue                                                                                                                                        | What it blocks                                                                                      | Our workaround (path)                                                                                                                     | Remove or change when fixed                                                                                               | Status |
| ----------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------ |
| [#2891](https://github.com/supabase/supabase-js/issues/2891) ([comment](https://github.com/supabase/supabase-js/issues/2891#issuecomment-7307193097)) | During an Auth outage, auth-js retries a refresh for up to 30 seconds and then clears the session   | `coalescingFetch` answers an outage with a 400, and the outage branch keeps the session (`src/auth/ssr-client.ts`, `src/auth/resolve.ts`) | Drop the synthetic 400 and the outage branch                                                                              | Open   |
| [#2715](https://github.com/supabase/supabase-js/issues/2715)                                                                                          | auth-js removes an expired session when the refresh is rate-limited (429) or times out (408)        | The outage branch keeps the session (`src/auth/resolve.ts`)                                                                               | Remove with the #2891 workaround                                                                                          | Open   |
| [#2940](https://github.com/supabase/supabase-js/issues/2940)                                                                                          | Server clients built per request each refresh the same refresh token                                | `coalescingFetch` (`src/auth/ssr-client.ts`) and the `raced` branch (`src/auth/resolve.ts`)                                               | Pass the coordinator and remove the coalescing; keep `raced` until the coordinator covers requests after the reuse window | Open   |
| [#2941](https://github.com/supabase/supabase-js/issues/2941)                                                                                          | `oauth.listGrants` and `revokeGrant` need a stored session                                          | `withBearerGrants` (`src/server/oauth-grants.ts`)                                                                                         | Call `listGrants({ jwt })` and `revokeGrant({ clientId, jwt })`                                                           | Open   |
| [#2942](https://github.com/supabase/supabase-js/issues/2942)                                                                                          | Auth methods take no `AbortSignal`                                                                  | Timeout `fetch` wrappers (`src/next/sign-in.ts`, `src/auth/ended.ts`, `src/auth/ssr-client.ts`, `src/auth/sign-in.ts`)                    | Pass a signal per call                                                                                                    | Open   |
| [#2943](https://github.com/supabase/supabase-js/issues/2943)                                                                                          | `signUp` with PKCE leaves the verifier behind when a session comes back                             | The commit expires the verifier cookie (`src/next/sign-in.ts`)                                                                            | Remove the `maxAge: 0` rewrite                                                                                            | Open   |
| [#2748](https://github.com/supabase/supabase-js/issues/2748)                                                                                          | A retryable refresh failure makes signed-in data requests use the anon key                          | None; only the proxy refreshes on the server                                                                                              | Re-check browser clients                                                                                                  | Open   |
| [#2726](https://github.com/supabase/supabase-js/issues/2726)                                                                                          | `getUser(jwt)` removes the stored session when the JWT has no active session                        | Session checks use a client with `persistSession: false` (`src/auth/ended.ts`)                                                            | Nothing to remove                                                                                                         | Open   |
| [#2892](https://github.com/supabase/supabase-js/issues/2892)                                                                                          | Auth's 403 `session_not_found` reaches callers as `AuthSessionMissingError` without a code          | Treats a missing-session error as an ended session (`src/auth/ended.ts`)                                                                  | Check the error code                                                                                                      | Open   |
| [#2893](https://github.com/supabase/supabase-js/issues/2893)                                                                                          | No admin API for SAML SSO providers                                                                 | Calls `/auth/v1/admin/sso/providers` with the secret key (`src/blocks/sso/sso.ts`)                                                        | Call `auth.admin`                                                                                                         | Open   |
| [#2894](https://github.com/supabase/supabase-js/issues/2894)                                                                                          | Every per-request server client builds Realtime and Storage                                         | None                                                                                                                                      | Re-measure the per-request client cost                                                                                    | Open   |
| [#2895](https://github.com/supabase/supabase-js/issues/2895)                                                                                          | `rpc(..., { get: true })` sends objects as `[object Object]` and joins arrays without quoting       | `queryArgs` sends objects as JSON (`src/core/postgrest-executor.ts`)                                                                      | Drop the object case in `queryArgs`                                                                                       | Open   |
| [#2823](https://github.com/supabase/supabase-js/issues/2823)                                                                                          | `rpc()` with `get` or `head` sends a `Date` as `Date.toString()`                                    | `encodeArguments` sends every `Date` as ISO 8601 (`src/ir/wire.ts`)                                                                       | Nothing to remove; a test pins GET `Date` arguments                                                                       | Open   |
| [#2947](https://github.com/supabase/supabase-js/issues/2947)                                                                                          | The URL length limit can't be read before a request                                                 | Reads the field through a loose type (`src/core/postgrest-executor.ts`); `chunkRead` splits long `in` lists (`src/core/in-chunks.ts`)     | Read the public limit; the chunking stays                                                                                 | Open   |
| [#2896](https://github.com/supabase/supabase-js/issues/2896)                                                                                          | `channel(topic)` returns the open channel and ignores new params, and removal isn't shared          | `joinTopic` shares one channel per topic (`src/realtime/channels.ts`)                                                                     | Remove the sharing                                                                                                        | Open   |
| [#2897](https://github.com/supabase/supabase-js/issues/2897)                                                                                          | No public `isManualToken()` and no exported Realtime interfaces                                     | Reads `_isManualToken` (`src/realtime/auth.ts`) and casts the relay client (`src/realtime/relay.ts`)                                      | Call `isManualToken()` and implement the interfaces                                                                       | Open   |
| [#2948](https://github.com/supabase/supabase-js/issues/2948)                                                                                          | `on('presence')` throws after join                                                                  | The shared channel registers presence for every subscriber up front (`src/realtime/channels.ts`)                                          | Register presence on demand                                                                                               | Open   |
| [#2958](https://github.com/supabase/supabase-js/issues/2958)                                                                                          | auth-js has no `subscribe`/`getSnapshot` pair for a store                                           | `bindClient` keeps its own auth snapshot (`src/client/bind.ts`) and `watchAuthIdentity` reads it (`src/next/client/auth-identity.ts`)     | Read the auth store directly                                                                                              | Open   |
| [#2960](https://github.com/supabase/supabase-js/issues/2960)                                                                                          | Auth events don't say what changed (user, claims or only the expiry)                                | `identityKey` compares the user and claims (`src/query/user-change.ts`, `src/next/client/auth-identity.ts`)                               | Use the event detail                                                                                                      | Open   |
| [#2968](https://github.com/supabase/supabase-js/issues/2968)                                                                                          | `removeChannel` leaves at once, so a remount leaves and joins again                                 | Channels linger for `lingerMs` after the last leave (`src/realtime/channels.ts`, `src/realtime/live.ts`)                                  | Remove the linger                                                                                                         | Open   |
| [#2971](https://github.com/supabase/supabase-js/issues/2971)                                                                                          | No connectivity signal: auth keeps refreshing and Realtime keeps reconnecting offline               | `createConnectionBridge` pauses both from `useOffline()` (`src/next/offline/connection.ts`)                                               | Remove the bridge                                                                                                         | Open   |
| [#2898](https://github.com/supabase/supabase-js/issues/2898)                                                                                          | Storage uploads take no `AbortSignal`                                                               | Signed uploads go through `XMLHttpRequest` (`src/storage/progress.ts`)                                                                    | Pass the signal to storage-js                                                                                             | Open   |
| [#2944](https://github.com/supabase/supabase-js/issues/2944)                                                                                          | Storage uploads report no progress                                                                  | `xhrUpload` and `xhrSend` (`src/storage/progress.ts`, `src/blocks/attachments/client.ts`)                                                 | Upload through storage-js with `onUploadProgress`                                                                         | Open   |
| [#2899](https://github.com/supabase/supabase-js/issues/2899)                                                                                          | No resumable (TUS) uploads                                                                          | Attachments upload with one PUT to a signed URL (`src/blocks/attachments/client.ts`)                                                      | Offer resumable uploads through storage-js                                                                                | Open   |
| [#2900](https://github.com/supabase/supabase-js/issues/2900)                                                                                          | The public and transform URL builders need a client                                                 | Builds the image URLs itself (`src/storage/image-url.ts`)                                                                                 | Call the exported builders                                                                                                | Open   |
| [#2946](https://github.com/supabase/supabase-js/issues/2946)                                                                                          | storage-js pulls a `Buffer` polyfill and iceberg-js into browser bundles                            | None                                                                                                                                      | Re-measure the bundle baselines                                                                                           | Open   |
| [#2901](https://github.com/supabase/supabase-js/issues/2901)                                                                                          | auth-js, realtime-js and functions-js have no `exports` map and no `sideEffects`                    | None                                                                                                                                      | Re-measure the bundle baselines                                                                                           | Open   |
| [#2902](https://github.com/supabase/supabase-js/issues/2902)                                                                                          | Exact pins on the sub-packages install duplicate copies                                             | None                                                                                                                                      | Re-check the lockfile for duplicate copies                                                                                | Open   |
| [#151](https://github.com/supabase/supabase-js/issues/151)                                                                                            | supabase-js can't be tree-shaken                                                                    | None                                                                                                                                      | Re-measure the bundle baselines                                                                                           | Open   |
| [#885](https://github.com/supabase/supabase-js/issues/885)                                                                                            | Errors are returned, not thrown, by default                                                         | Repositories return a `Result` (`src/core/result.ts`)                                                                                     | Nothing to remove                                                                                                         | Open   |
| [#2963](https://github.com/supabase/supabase-js/issues/2963)                                                                                          | `tracePropagation` skips Auth requests                                                              | The OpenTelemetry page passes `tracedFetch()` as `auth.fetch` (`src/otel/index.ts`)                                                       | Drop `tracedFetch()` from the docs                                                                                        | Open   |
| [#2964](https://github.com/supabase/supabase-js/issues/2964)                                                                                          | A mistyped table name costs about 5 million type instantiations and a spurious TS2589               | None; the `supabaseJs` case of `tests/types/perf` (repository root) measures it                                                           | Run `update` on the type benchmark                                                                                        | Open   |
| [#2965](https://github.com/supabase/supabase-js/issues/2965)                                                                                          | An unknown embed on a table many tables reference costs about 3 million instantiations and no error | None; measured by the same case                                                                                                           | Run `update` on the type benchmark                                                                                        | Open   |
| [#2967](https://github.com/supabase/supabase-js/issues/2967)                                                                                          | `rpc()` takes no per-request `fetch`, `retry` or URL length limit                                   | A call's `fetch` reaches `from()` only; `$rpc` and function sources use the client's (`src/core/postgrest-executor.ts`)                   | Pass `fetch` to `rpc()`                                                                                                   | Open   |
| [#2972](https://github.com/supabase/supabase-js/issues/2972)                                                                                          | No `diagnostics_channel` events for requests                                                        | `otel()` builds its spans from `betterSupabase.events` (`src/otel/index.ts`)                                                              | Subscribe to the channels                                                                                                 | Open   |
| [#2974](https://github.com/supabase/supabase-js/issues/2974) ([PR #2629](https://github.com/supabase/supabase-js/pull/2629))                          | auth-js's `webauthn.dom.d.ts` fails with `skipLibCheck: false` on TypeScript 6.0 to 7.1             | `tests/types/declarations` (repository root) reports it without failing                                                                   | Drop its `KNOWN` entry                                                                                                    | Open   |

## supabase/ssr [#supabasessr]

| Upstream issue                                     | What it blocks                                                                                    | Our workaround (path)                                                                                       | Remove or change when fixed                              | Status |
| -------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- | ------ |
| [#315](https://github.com/supabase/ssr/issues/315) | Concurrent server refreshes of one refresh token race                                             | `coalescingFetch` (`src/auth/ssr-client.ts`)                                                                | Remove `coalescingFetch`                                 | Open   |
| [#316](https://github.com/supabase/ssr/issues/316) | `clearAuthCookiesAtScopes` sends no cache headers                                                 | `NO_STORE` (`src/auth/ssr-client.ts`)                                                                       | Use the headers it passes                                | Open   |
| [#317](https://github.com/supabase/ssr/issues/317) | No option to send `Sb-Forwarded-For` on server refreshes                                          | Sets the header and the secret key on the refresh request (`src/auth/ssr-client.ts`, `src/next/sign-in.ts`) | Use the option                                           | Open   |
| [#318](https://github.com/supabase/ssr/issues/318) | No `exports` map, and the ESM build has extensionless imports                                     | None                                                                                                        | Re-check the Node entry tests                            | Open   |
| [#324](https://github.com/supabase/ssr/issues/324) | No exported session reader or cookie name rule                                                    | `sessionCookieName` and `getStored` (`src/auth/session.ts`)                                                 | Use the exported helpers and keep the memo layer         | Open   |
| [#325](https://github.com/supabase/ssr/issues/325) | No exported cookie storage for an auth-only browser client                                        | None                                                                                                        | Revisit the lite browser client (ADR 0846)               | Open   |
| [#326](https://github.com/supabase/ssr/issues/326) | No refresh-only server auth client for proxies                                                    | `refreshCookieSession` builds a full server client (`src/auth/ssr-client.ts`)                               | Use the auth-only client and re-measure the proxy bundle | Open   |
| [#327](https://github.com/supabase/ssr/issues/327) | No compact cookie encoding, and `tokens-only` isn't stable                                        | `SessionEncoding` (`src/auth/session.ts`)                                                                   | Offer the compact encoding                               | Open   |
| [#328](https://github.com/supabase/ssr/issues/328) | The README says middleware runs once per navigation, which doesn't hold for Next.js 16 `proxy.ts` | None; ADR 0117 covers the prefetches                                                                        | Nothing to remove                                        | Open   |
| [#308](https://github.com/supabase/ssr/issues/308) | A host-only cookie survives a `domain` change and shadows the new session                         | `clearCookieSession` clears the old scopes (`src/auth/ssr-client.ts`)                                       | Re-check the scopes option                               | Open   |
| [#302](https://github.com/supabase/ssr/issues/302) | Server and browser clients disagree on the storage key when both names are set                    | None                                                                                                        | Nothing to remove                                        | Open   |
| [#333](https://github.com/supabase/ssr/issues/333) | The browser client doesn't notice a cookie the server rotated or cleared                          | `watchStorage` re-reads the session when the tab becomes visible (`src/client/bind.ts`)                     | Remove `watchStorage`                                    | Open   |

## supabase/server [#supabaseserver]

| Upstream issue                                        | What it blocks                                                                                                         | Our workaround (path)                                                                                           | Remove or change when fixed                                                                       | Status |
| ----------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------ |
| [#198](https://github.com/supabase/server/issues/198) | One remote JWKS resolver per process                                                                                   | `sharedJwks` caches the key set and passes it inline (`src/auth/resolve.ts`, `src/core/jwks-cache.ts`)          | Pass the JWKS URL again                                                                           | Open   |
| [#199](https://github.com/supabase/server/issues/199) | Inline JWKS builds a new key set per verification                                                                      | None; the inline set from #198's workaround pays this cost                                                      | Re-measure verification                                                                           | Open   |
| [#200](https://github.com/supabase/server/issues/200) | HS256 tokens without a `kid` are rejected (Supabase Lite)                                                              | `verifyHs256` (`src/auth/hs256.ts`)                                                                             | Remove `hs256.ts`                                                                                 | Open   |
| [#201](https://github.com/supabase/server/issues/201) | `resolveEnv` resolves keys for clients that never verify                                                               | None                                                                                                            | Re-measure client creation                                                                        | Open   |
| [#202](https://github.com/supabase/server/issues/202) | `createContextClient` builds an unused auth client                                                                     | None                                                                                                            | Re-measure client creation                                                                        | Open   |
| [#203](https://github.com/supabase/server/issues/203) | The `@nestjs/common` peer excludes NestJS 12                                                                           | None                                                                                                            | Widen the NestJS test matrix                                                                      | Open   |
| [#212](https://github.com/supabase/server/issues/212) | `JWTClaims` lacks the claims Auth issues and a type parameter                                                          | Casts API key claims (`src/auth/claims.ts`)                                                                     | Drop the cast                                                                                     | Open   |
| [#213](https://github.com/supabase/server/issues/213) | `unauthorizedResponse` can't set RFC 6750 parameters, and there is no `insufficient_scope` response                    | Builds the challenges (`src/mcp/mcp.ts`)                                                                        | Use the upstream responses                                                                        | Open   |
| [#214](https://github.com/supabase/server/issues/214) | `resourceMetadataResponse` can't advertise `scopes_supported` or `resource_documentation`                              | Writes the document itself when they are set (`src/mcp/mcp.ts`)                                                 | Use `resourceMetadataResponse` for every case                                                     | Open   |
| [#215](https://github.com/supabase/server/issues/215) | No scope gate for OAuth access tokens                                                                                  | Checks scopes itself (`src/auth/access-token.ts`, `src/mcp/mcp.ts`)                                             | Use `withRequiredScopes`                                                                          | Open   |
| [#216](https://github.com/supabase/server/issues/216) | No composable entries for API key auth, `userClaims` and `authMode`                                                    | Own entries (`src/auth/claims.ts`)                                                                              | Use the upstream entries                                                                          | Open   |
| [#217](https://github.com/supabase/server/issues/217) | `withSupabase` doesn't read the `@supabase/ssr` session cookie                                                         | Reads the cookie itself (`src/auth/resolve.ts`, `src/server/entries/upstream.ts`)                               | Use the upstream cookie source                                                                    | Open   |
| [#218](https://github.com/supabase/server/issues/218) | No key resolver, `clockTolerance` or default issuer check                                                              | `sharedJwks` (`src/core/jwks-cache.ts`) and the issuer check (`src/auth/resolve.ts`)                            | Use the verifier options                                                                          | Open   |
| [#219](https://github.com/supabase/server/issues/219) | Protected resource URLs are wrong off Edge Functions and behind its gateway, and there is no RFC 9728 well-known route | `discovery` (`src/mcp/http.ts`)                                                                                 | Use the upstream URLs and route                                                                   | Open   |
| [#220](https://github.com/supabase/server/issues/220) | No RFC 9457 Problem Details option                                                                                     | None; better-supabase answers Problem Details itself                                                            | Nothing to remove                                                                                 | Open   |
| [#221](https://github.com/supabase/server/issues/221) | No hook to reject tokens whose session has ended                                                                       | `sessionStatus` (`src/auth/ended.ts`, `src/auth/resolve.ts`, `src/auth/access-token.ts`)                        | Plug the check into the hook                                                                      | Open   |
| [#229](https://github.com/supabase/server/issues/229) | `resolveEnv` reads `process.env` by a computed name, so Next.js 16.5 drops durability from `"use cache"` entries       | None; better-supabase reads its env the same way, and BS646 skips Next.js 16.5 (`src/cli/doctor/next-cache.ts`) | Make our env reads static, re-run `tests/next-durable-cache` on 16.5 and turn BS646 back on there | Open   |
| [#230](https://github.com/supabase/server/issues/230) | `resolveEnv` takes no prefix for Vercel integration variables                                                          | `withEnvPrefix` (`src/env/index.ts`)                                                                            | Pass the prefix to `resolveEnv`                                                                   | Open   |

## supabase/middleware [#supabasemiddleware]

| Upstream issue                                          | What it blocks                                                                 | Our workaround (path)                                        | Remove or change when fixed | Status |
| ------------------------------------------------------- | ------------------------------------------------------------------------------ | ------------------------------------------------------------ | --------------------------- | ------ |
| [#53](https://github.com/supabase/middleware/issues/53) | The Workers `ExecutionContext` (`waitUntil`) is dropped                        | Carries it on ctx under a symbol (`src/bridges/edge.ts`)     | Remove the symbol           | Open   |
| [#62](https://github.com/supabase/middleware/issues/62) | No published framework bridges                                                 | Own bridges (`src/bridges/`)                                 | Use the upstream bridges    | Open   |
| [#63](https://github.com/supabase/middleware/issues/63) | No in-place `bufferRequest`                                                    | `bufferInPlace` (`src/bridges/shared.ts`)                    | Use the export              | Open   |
| [#64](https://github.com/supabase/middleware/issues/64) | No optional prerequisites                                                      | None in better-supabase                                      | Nothing to remove           | Open   |
| [#50](https://github.com/supabase/middleware/issues/50) | `withCors` with `credentials: true` and the default origin reflects any origin | `corsConfig` never sets `credentials` (`src/server/cors.ts`) | Nothing to remove           | Open   |

## supabase/auth and supabase/storage [#supabaseauth-and-supabasestorage]

| Upstream issue                                                                              | What it blocks                                                                      | Our workaround (path)                                                                             | Remove or change when fixed          | Status |
| ------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------ | ------ |
| [auth#2972](https://github.com/supabase/auth/issues/2972)                                   | `admin.deleteUser` reports a refused delete only as `unexpected_failure`            | Matches the message and probes the delete in a rolled-back block (`src/server/delete-account.ts`) | Map the error code                   | Open   |
| [auth#2610 (comment)](https://github.com/supabase/auth/issues/2610#issuecomment-7307075247) | OAuth access tokens carry the `authenticated` audience, not the resource (RFC 8707) | Accepts `authenticated` (`apps/docs/content/docs/(docs)/auth/server.mdx`)                         | Check the resource audience          | Open   |
| [storage#1779](https://github.com/supabase/storage/issues/1779)                             | Signed uploads, TUS included, can't be bound to a size or content type              | Only the bucket limits apply (`src/storage/connect.ts`, `reserveResumable`)                       | Bind the reserved upload             | Open   |
| [auth#2979](https://github.com/supabase/auth/issues/2979)                                   | MFA recovery codes have no hosted config field or CLI key                           | `recoveryCodes` is off by default in the MFA controllers (`src/blocks/mfa/client.ts`)             | Document the setting on the MFA page | Open   |

## supabase/cli [#supabasecli]

| Upstream issue                                       | What it blocks                                                         | Our workaround (path)                                                                                             | Remove or change when fixed                           | Status                              |
| ---------------------------------------------------- | ---------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- | ----------------------------------- |
| [#7767](https://github.com/supabase/cli/issues/7767) | `@supabase/config/io` needs `effect`                                   | Loads it lazily and falls back to smol-toml (`src/cli/supabase-config.ts`)                                        | Update the note once a release loads without `effect` | Closed; 1.13.0 still needs `effect` |
| [#7768](https://github.com/supabase/cli/issues/7768) | The CLI doesn't report its bundled pg-delta version                    | `db diff` plans with its own pinned pg-delta                                                                      | Compare the versions in doctor                        | Open                                |
| [#7896](https://github.com/supabase/cli/issues/7896) | Declarative sync has no `--check` exit code                            | None in better-supabase                                                                                           | Nothing to remove                                     | Open                                |
| [#7897](https://github.com/supabase/cli/issues/7897) | `stack prune` leaves unreadable, branch-deleted and idle stacks        | `prunePlan` (`src/cli/stacks.ts`)                                                                                 | Call the CLI's prune                                  | Open                                |
| [#7898](https://github.com/supabase/cli/issues/7898) | `db reset --remote` runs out of shared memory                          | None in better-supabase                                                                                           | Nothing to remove                                     | Open                                |
| [#7899](https://github.com/supabase/cli/issues/7899) | Stack commands reject `-o`, and `db advisors` prints three JSON shapes | The `--env` fallback (`src/cli/stack-status.ts`) and `parseAdvisorOutput` (`src/cli/doctor/cli-advisors.ts`)      | Read one shape                                        | Open                                |
| [#7900](https://github.com/supabase/cli/issues/7900) | No snapshot command or supported path to the bundled Postgres tools    | Reads the CLI's cache (`src/cli/baseline/pg-tools.ts`)                                                            | Call the CLI                                          | Open                                |
| [#7901](https://github.com/supabase/cli/issues/7901) | `db lint` can't ignore a SQLSTATE and prints nothing when clean        | None in better-supabase                                                                                           | Nothing to remove                                     | Open                                |
| [#7902](https://github.com/supabase/cli/issues/7902) | A failed `db reset` leaves only Postgres running                       | None; stop and start the stack                                                                                    | Nothing to remove                                     | Open                                |
| [#7903](https://github.com/supabase/cli/issues/7903) | A schema-scoped declarative sync drops event triggers                  | Keeps event triggers apart and reports missing ones (`src/sql/pipeline/unscoped.ts`, `src/cli/doctor/modules.ts`) | Remove the finding                                    | Open                                |

## postgrest-typegen (supabase/sdk) [#postgrest-typegen-supabasesdk]

supabase/sdk takes no external issues, so the typegen issues filed after
2026-12-01 live in supabase/supabase.

| Upstream issue                                                      | What it blocks                                                                | Our workaround (path)                                                              | Remove or change when fixed           | Status                               |
| ------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ------------------------------------- | ------------------------------------ |
| [sdk#382](https://github.com/supabase/sdk/issues/382)               | Function arguments come back in no fixed order                                | `argumentPositionsSql` and `orderArgsByPosition` (`src/cli/introspect/typegen.ts`) | Remove both                           | Fixed on main (latest release 0.8.1) |
| [sdk#383](https://github.com/supabase/sdk/issues/383)               | Importing the package builds its schemas (about 90 ms)                        | Loaded lazily (`src/cli/introspect/typegen.ts`)                                    | Re-measure CLI startup                | Fixed on main (latest release 0.8.1) |
| [sdk#384](https://github.com/supabase/sdk/issues/384)               | No dependency-free types entry for `GeneratorMetadata`                        | A copy of the contract (`src/config/generator-metadata.ts`)                        | Re-export the types                   | Fixed on main (latest release 0.8.1) |
| [sdk#385](https://github.com/supabase/sdk/issues/385)               | No option for stable ids instead of oids                                      | `stabilizeMetadata` (`src/cli/introspect/typegen.ts`)                              | Use the option                        | Open                                 |
| [sdk#386](https://github.com/supabase/sdk/issues/386)               | The `oxfmt` peer is pinned exactly                                            | The `oxfmt` peer range and override (`pnpm-workspace.yaml`)                        | Raise the floor and drop the override | Fixed on main (latest release 0.8.1) |
| [supabase#54365](https://github.com/supabase/supabase/issues/54365) | The fixes on sdk main aren't released                                         | The workarounds in the rows above                                                  | Remove them with the release          | Open                                 |
| [supabase#54366](https://github.com/supabase/supabase/issues/54366) | `introspect()` returns the types of every schema                              | `pruneTypes` (`src/cli/introspect/typegen.ts`)                                     | Remove it                             | Open                                 |
| [supabase#54367](https://github.com/supabase/supabase/issues/54367) | An external language outside the registry can't run                           | Documented on the gen page (`apps/docs/content/docs/(reference)/cli/gen.mdx`)      | Update the page                       | Open                                 |
| [supabase#54368](https://github.com/supabase/supabase/issues/54368) | `GeneratorMetadata` has no constraints, indexes, policies, triggers or grants | `getExtras` (`src/cli/introspect/extras.ts`)                                       | Read the upstream section             | Open                                 |
| [supabase#54369](https://github.com/supabase/supabase/issues/54369) | `rpcFunctions` goes stale when the document is filtered                       | `withoutRpcFunctions` (`src/cli/introspect/typegen.ts`)                            | Remove it                             | Open                                 |

## supabase/pg-toolbelt (pg-delta and pg-topo) [#supabasepg-toolbelt-pg-delta-and-pg-topo]

| Upstream issue                                                                                                                                     | What it blocks                                                                                               | Our workaround (path)                                                                 | Remove or change when fixed                                          | Status                                                |
| -------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------- | -------------------------------------------------------------------- | ----------------------------------------------------- |
| [#595](https://github.com/supabase/pg-toolbelt/issues/595)                                                                                         | `grant ... on all tables in schema` needs a table of that name                                               | BS317 reports bulk grants (`src/cli/doctor/pgdelta.ts`)                               | Re-check BS317                                                       | Fixed on main (pg-topo 1.0.0-alpha.8 is the latest)   |
| [#689](https://github.com/supabase/pg-toolbelt/issues/689)                                                                                         | A bulk grant can sort after a per-object revoke and re-open the object                                       | BS317 (`src/cli/doctor/pgdelta.ts`)                                                   | Retire BS317 once a release with PR #702 is pinned and #704 is fixed | Open                                                  |
| [#704](https://github.com/supabase/pg-toolbelt/issues/704)                                                                                         | The shadow loader applies plain file order before pg-topo's, so `schema apply` still hits #689 after PR #702 | BS317 (`src/cli/doctor/pgdelta.ts`)                                                   | Retire BS317 with #689                                               | Open                                                  |
| [#596](https://github.com/supabase/pg-toolbelt/issues/596)                                                                                         | Core types are missing from pg-topo's built-ins                                                              | `PG_TOPO_BUILTIN_TYPES` (`src/cli/doctor/pg-topo.ts`)                                 | Drop the built-ins                                                   | Open                                                  |
| [#597](https://github.com/supabase/pg-toolbelt/issues/597)                                                                                         | Unqualified built-in calls resolve to `public`                                                               | `isPlatformRef` skips `public` functions (`src/cli/doctor/pg-topo.ts`)                | Remove that case                                                     | Open                                                  |
| [#598](https://github.com/supabase/pg-toolbelt/issues/598)                                                                                         | Repeated `create schema if not exists` is a duplicate producer                                               | BS722 skips schema and extension repeats (`src/cli/doctor/pg-topo.ts`)                | Remove the filter                                                    | Open                                                  |
| [#599](https://github.com/supabase/pg-toolbelt/issues/599) ([comment](https://github.com/supabase/pg-toolbelt/issues/599#issuecomment-7307249254)) | Statement ids carry no name, line or column                                                                  | `locate` maps `<input:n>` ids (`src/cli/doctor/pg-topo.ts`)                           | Read the id                                                          | Open                                                  |
| [#600](https://github.com/supabase/pg-toolbelt/issues/600)                                                                                         | Diagnostic details are inside `message`                                                                      | BS722 splits the message (`src/cli/doctor/pg-topo.ts`)                                | Read the details                                                     | Open                                                  |
| [#601](https://github.com/supabase/pg-toolbelt/issues/601)                                                                                         | No schema-level external providers or Supabase preset                                                        | Platform schemas and extension types in `isPlatformRef` (`src/cli/doctor/pg-topo.ts`) | Use the preset                                                       | Open                                                  |
| [#602](https://github.com/supabase/pg-toolbelt/issues/602)                                                                                         | pg-topo ships a second libpg_query build                                                                     | None; both parsers install                                                            | Re-measure the install size                                          | Open                                                  |
| [#603](https://github.com/supabase/pg-toolbelt/issues/603)                                                                                         | No helper to provision a proof target                                                                        | `cloneStackDatabase` (`src/cli/in-stack-diff.ts`)                                     | Use the helper                                                       | Open                                                  |
| [#604](https://github.com/supabase/pg-toolbelt/issues/604)                                                                                         | No per-diagnostic `isBlockingDiagnostic`                                                                     | Calls `hasBlockingDiagnostics` per diagnostic (`src/cli/in-stack-diff.ts`)            | Call `isBlockingDiagnostic`                                          | Fixed on main (pg-delta 1.0.0-alpha.61 is the latest) |
| [#605](https://github.com/supabase/pg-toolbelt/issues/605)                                                                                         | The npm `latest` tag points at 0.0.0                                                                         | Exact pins in the catalog (`pnpm-workspace.yaml`)                                     | Nothing to remove                                                    | Open                                                  |
| [#606](https://github.com/supabase/pg-toolbelt/issues/606)                                                                                         | A PG18 virtual generated column is created as stored                                                         | None                                                                                  | Re-test virtual columns in `db diff`                                 | Fixed on main (pg-delta 1.0.0-alpha.61 is the latest) |
| [#609](https://github.com/supabase/pg-toolbelt/issues/609)                                                                                         | A column `%type` in a function signature resolves to a missing type                                          | None                                                                                  | Re-check BS721 findings                                              | Fixed on main (pg-topo 1.0.0-alpha.8 is the latest)   |
| [#610](https://github.com/supabase/pg-toolbelt/issues/610)                                                                                         | An array parameter gets its element type's signature                                                         | BS721 matches calls by name (`src/cli/doctor/pg-topo.ts`)                             | Re-check with #663                                                   | Fixed on main (pg-topo 1.0.0-alpha.8 is the latest)   |
| [#663](https://github.com/supabase/pg-toolbelt/issues/663)                                                                                         | Call argument types are inferred from literals and matched exactly                                           | BS721 matches calls by name (`src/cli/doctor/pg-topo.ts`)                             | Match by type                                                        | Open                                                  |
| [#666](https://github.com/supabase/pg-toolbelt/issues/666)                                                                                         | PG18 syntax fails to parse and drops its whole input                                                         | None                                                                                  | Re-check the pg-topo group on PG18                                   | Open                                                  |
| [#668](https://github.com/supabase/pg-toolbelt/issues/668)                                                                                         | A primary key and a unique index on the same columns are duplicate producers                                 | BS722 skips constraint repeats (`src/cli/doctor/pg-topo.ts`)                          | Remove the filter                                                    | Open                                                  |
| [#690](https://github.com/supabase/pg-toolbelt/issues/690)                                                                                         | A self-recursive function reports its own call as unresolved                                                 | None; BS721 skips `public` functions                                                  | Nothing to remove                                                    | Open                                                  |
| [#691](https://github.com/supabase/pg-toolbelt/issues/691)                                                                                         | pg-delta and pg-topo don't export `./package.json`                                                           | None                                                                                  | Print the resolved versions in doctor                                | Open                                                  |
| [#692](https://github.com/supabase/pg-toolbelt/issues/692)                                                                                         | Merged fixes aren't released (pg-delta alpha.62, pg-topo alpha.9)                                            | The exact pins (`pnpm-workspace.yaml`, AGENTS.md "Pre-release pins")                  | Bump the pins and re-check the fixed rows above                      | Open                                                  |
| [#693](https://github.com/supabase/pg-toolbelt/issues/693)                                                                                         | Changing a stored generated column's expression drops and re-adds the column                                 | None in better-supabase                                                               | Nothing to remove                                                    | Open                                                  |
| [#694](https://github.com/supabase/pg-toolbelt/issues/694)                                                                                         | Schema apply ignores the duplicate producers schema lint reports                                             | BS722 (`src/cli/doctor/pg-topo.ts`)                                                   | Re-check BS722                                                       | Open                                                  |
| [#658 (comment)](https://github.com/supabase/pg-toolbelt/issues/658#issuecomment-7307248095)                                                       | A `do` block that reads the catalog runs before the tables exist                                             | BS318 (`src/cli/doctor/pgdelta.ts`, `src/cli/doctor/declarative-safety.ts`)           | Re-check BS318                                                       | Open                                                  |

## supabase-community/pg-parser [#supabase-communitypg-parser]

| Upstream issue                                                   | What it blocks                                    | Our workaround (path)                                                                | Remove or change when fixed                               | Status |
| ---------------------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------------------------------------------ | --------------------------------------------------------- | ------ |
| [#36](https://github.com/supabase-community/pg-parser/issues/36) | No Postgres 18 grammar                            | Reads with the 17 grammar                                                            | Add 18 to `PG_VERSIONS` (`scripts/gen-pg-node-fields.ts`) | Open   |
| [#37](https://github.com/supabase-community/pg-parser/issues/37) | No PL/pgSQL parse                                 | None                                                                                 | Read function bodies                                      | Open   |
| [#38](https://github.com/supabase-community/pg-parser/issues/38) | No synchronous parse once loaded                  | None                                                                                 | Re-measure the schema reader                              | Open   |
| [#39](https://github.com/supabase-community/pg-parser/issues/39) | No `split`                                        | `statementEnds` (`src/cli/schema-reader/statement-ends.ts`)                          | Use `split`                                               | Open   |
| [#40](https://github.com/supabase-community/pg-parser/issues/40) | No node field schema or walker                    | `scripts/gen-pg-node-fields.ts` and `src/cli/schema-reader/node-fields.generated.ts` | Remove the generator                                      | Open   |
| [#41](https://github.com/supabase-community/pg-parser/issues/41) | No deparse options                                | None                                                                                 | Nothing to remove                                         | Open   |
| [#42](https://github.com/supabase-community/pg-parser/issues/42) | No 0.1.8 release, which pg-toolbelt #602 waits on | The 0.1.7 pin (`pnpm-workspace.yaml`)                                                | Bump the pin                                              | Open   |
| [#43](https://github.com/supabase-community/pg-parser/issues/43) | Positions are UTF-8 byte offsets                  | `Source` keeps the text as bytes (`src/cli/schema-reader/source.ts`)                 | Index the string                                          | Open   |

## supabase/mcp [#supabasemcp]

The repository was `supabase-community/supabase-mcp`; GitHub redirects the old
links.

| Upstream issue                                     | What it blocks                                                           | Our workaround (path)                                                                                                 | Remove or change when fixed                       | Status |
| -------------------------------------------------- | ------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------- | ------ |
| [#659](https://github.com/supabase/mcp/issues/659) | `createSupabaseMcpHandler` binds the platform and token when it is built | One handler per request, closed when the response ends (`src/mcp/sdk/supabase.ts`)                                    | Build one handler and resolve options per request | Open   |
| [#637](https://github.com/supabase/mcp/issues/637) | `execute_sql` skips the destructive confirmation for quoted identifiers  | `supabaseMcp` and `supabaseMcpHandler` default to read-only (`src/ai-sdk/mcp/supabase.ts`, `src/mcp/sdk/supabase.ts`) | Nothing to remove                                 | Open   |
| [#532](https://github.com/supabase/mcp/issues/532) | `execute_sql` runs `MERGE ... DELETE` without the confirmation           | Read-only by default, as above                                                                                        | Nothing to remove                                 | Open   |
| [#395](https://github.com/supabase/mcp/issues/395) | `list_tables` defaults to `public` only                                  | None                                                                                                                  | Nothing to remove                                 | Open   |
| [#124](https://github.com/supabase/mcp/issues/124) | `get_advisors` has no pagination                                         | None                                                                                                                  | Nothing to remove                                 | Open   |
| [#257](https://github.com/supabase/mcp/issues/257) | The local stack's MCP endpoint fails OAuth                               | None                                                                                                                  | Re-check the local `url` example                  | Open   |

## Supabase Lite [#supabase-lite]

Lite has no public repository, so its issues live in supabase/supabase and
link [discussion #51242](https://github.com/orgs/supabase/discussions/51242),
which asks for the repository.

| Upstream issue                                              | What it blocks                                                             | Our workaround (path)                                                                                            | Remove or change when fixed        | Status |
| ----------------------------------------------------------- | -------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------- | ------ |
| [#54376](https://github.com/supabase/supabase/issues/54376) | Lite issues HS256 tokens without a `kid` and serves an empty JWKS          | `verifyHs256` (`src/auth/hs256.ts`) and the Lite page (`apps/docs/content/docs/(docs)/(data)/platform/lite.mdx`) | Remove `hs256.ts` with server #200 | Open   |
| [#54377](https://github.com/supabase/supabase/issues/54377) | `Prefer: tx=rollback` commits the write                                    | None                                                                                                             | Nothing to remove                  | Open   |
| [#54378](https://github.com/supabase/supabase/issues/54378) | `lite init` scaffolds a JWT secret that `lite upgrade` rejects             | The env check rejects secrets under 32 characters (`src/env/index.ts`)                                           | Re-check the Lite page             | Open   |
| [#54379](https://github.com/supabase/supabase/issues/54379) | API key checks are off when no keys are configured                         | None                                                                                                             | Nothing to remove                  | Open   |
| [#54380](https://github.com/supabase/supabase/issues/54380) | PGlite lacks `realtime.messages`, `realtime.topic()` and `storage.objects` | `LITE_PLATFORM_SQL` shims (`src/lite/runtime.ts`)                                                                | Remove the shims                   | Open   |
| [#54381](https://github.com/supabase/supabase/issues/54381) | The SQLite drivers have no `rpc()` or `DEFAULT auth.uid()`                 | BS328 and BS329 (`src/cli/doctor/lite.ts`) and the `RPC_UNAVAILABLE` guard (`src/core/postgrest-executor.ts`)    | Retire BS328 and the guard         | Open   |
| [#54382](https://github.com/supabase/supabase/issues/54382) | The `next` tag is stale and nothing is released since 0.11.0               | The `>=0.11.0 <0.12` peer (`pnpm-workspace.yaml`)                                                                | Widen the peer                     | Open   |

## Other Supabase projects [#other-supabase-projects]

| Upstream issue                                                                 | What it blocks                                                                      | Our workaround (path)                                                                                                                         | Remove or change when fixed                   | Status |
| ------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------- | ------ |
| [Queues discussion #54363](https://github.com/orgs/supabase/discussions/54363) | `pgmq_public` has no `set_vt`, so Data API workers can't extend a lease or back off | `extend` returns `false` (`src/blocks/queue/backends.ts`), documented on the [limitations page](/docs/guides/limitations#jobs-over-postgrest) | Call `set_vt`                                 | Open   |
| [Discussion #54373](https://github.com/orgs/supabase/discussions/54373)        | Enum equality and `like` aren't leakproof, so RLS queries skip their indexes        | BS642 (`src/cli/doctor/policy-count.ts`)                                                                                                      | Retire BS642                                  | Open   |
| [supabase/pg_net#110](https://github.com/supabase/pg_net/issues/110)           | pg_net has no retries                                                               | Outgoing webhooks retry with backoff (`src/blocks/webhooks/outgoing.ts`)                                                                      | Nothing to remove                             | Open   |
| [Discussion #54157](https://github.com/orgs/supabase/discussions/54157)        | Database Webhooks aren't signed with Standard Webhooks                              | The webhooks block signs its own deliveries (`src/blocks/webhooks/signers.ts`)                                                                | Accept signed Database Webhooks               | Open   |
| [supabase/realtime#2689](https://github.com/supabase/realtime/issues/2689)     | Broadcast replay starts from a time, not from the last message received             | `createReplayCursor` replays from before the disconnect and drops duplicates by id (`src/realtime/replay.ts`)                                 | Replay from the last message id               | Open   |
| [Discussion #54447](https://github.com/orgs/supabase/discussions/54447)        | Queues have no push delivery with signed, retried HTTP posts                        | `dispatch_workflow_deliveries` posts with pg_net and its own signature (`src/sql/modules/workflow-sdk.ts`)                                    | Deliver through Queues push                   | Open   |
| [PostgREST#2998](https://github.com/PostgREST/postgrest/issues/2998)           | PostgREST has no `Idempotency-Key` support                                          | The idempotency block and idempotent Server Actions (`src/blocks/queue/idempotency.ts`, `src/next/action-idempotency.ts`)                     | Let writes through the Data API carry the key | Open   |

## stripe/sync-engine [#stripesync-engine]

The billing module reads the tables of Stripe Sync Engine 1.0.32 and 0.48.5 (decision 1272). npm 1.0.32 was built from a commit that is on no branch, and the default branch `dev` is an unreleased rewrite with another table shape, so revisit decision 1272 when it ships.

| Upstream issue                                                                                                                                     | What it blocks                                                                                              | Our workaround (path)                                                                                | Remove or change when fixed                                                              | Status                            |
| -------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | --------------------------------- |
| [#357](https://github.com/stripe/sync-engine/issues/357)                                                                                           | 1.x migrations on a 0.48 database run `drop schema stripe cascade`                                          | Upgrade step 2 says to back up, recreate dependent views and backfill (`billing.mdx`, decision 1272) | Pass the opt-in instead, if one ships                                                    | Open                              |
| [#337](https://github.com/stripe/sync-engine/issues/337) ([our comment](https://github.com/stripe/sync-engine/issues/337#issuecomment-7308285125)) | 1.0.32 skips `entitlements.active_entitlement_summary.updated`, so `stripe.active_entitlements` stays empty | Route that event to `handleAnyEvent` (`entitlements.mdx`, `billing.mdx` step 4)                      | Send every event to `processWebhook` again, after checking lost entitlements are deleted | Open                              |
| [#336](https://github.com/stripe/sync-engine/issues/336) ([our comment](https://github.com/stripe/sync-engine/issues/336#issuecomment-7308285610)) | 1.0.32's backfill leaves out canceled subscriptions                                                         | Caveat in `billing.mdx` step 3 and decision 1272                                                     | Drop the caveat once a 1.x release lists with `status: "all"`                            | Open (PR #338 only changes `dev`) |
| [#358](https://github.com/stripe/sync-engine/issues/358)                                                                                           | `SUPPORTED_WEBHOOK_EVENTS` is `undefined` at run time                                                       | Use `sync.webhook.getSupportedEventTypes()` (`billing.mdx` step 5)                                   | Drop the caveat in decision 1272                                                         | Open                              |
| [#268](https://github.com/stripe/sync-engine/issues/268) ([our comment](https://github.com/stripe/sync-engine/issues/268#issuecomment-7308286179)) | Two events in the same second keep the older state                                                          | `revalidateObjectsViaStripeApi` guidance in decision 1272                                            | Remove once 1.x compares with `>=` (PRs #279 and #303)                                   | Open (`dev` uses `>=`)            |