Skip to content

feat(realtime): add postgres_changes_wait capability - #106

Merged
grdsdev merged 5 commits into
mainfrom
guilherme/sdk-1650-realtime-postgres-changes-wait
Nov 26, 2026
Merged

grdsdev merged 5 commits into
mainfrom
guilherme/sdk-1650-realtime-postgres-changes-wait

Conversation

@grdsdev

@grdsdev grdsdev commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Registers realtime.subscriptions.postgres_changes_wait — the wait-for-server-confirmation option on postgres_changes subscriptions (postgres_changes_options.wait / .timeout), added to supabase-js in supabase-js#2630.
  • Adds a spec at specs/realtime/subscriptions/postgres_changes_wait.md describing the behavior, prerequisites, and error/timeout conditions in SDK-neutral terms.

Test plan

  • npm run validate — OK, capability matrix is valid
  • npm test — 195 passed
  • npm run typecheck — clean

Refs SDK-1650

Registers the wait-for-server-confirmation option on postgres_changes
subscriptions (see supabase-js#2630) so SDKs can declare compliance
against a stable feature ID.
@grdsdev
grdsdev requested a review from a team as a code owner August 28, 2026 09:11
@coderabbitai

coderabbitai Bot commented Aug 28, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 57 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a760aba7-3076-44b8-ad9e-fc8b1d559cb0
Commits

Reviewing files that changed from the base of the PR and between f442c17 and e6a2137.

Files selected for processing: 2

  • packages/capability-matrix/capabilities/realtime.yaml
  • packages/capability-matrix/specs/realtime/subscriptions/postgres_changes_wait.md

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • New Features
    • Added an opt-in option to wait for confirmation that Postgres change subscriptions are active and streaming.
    • Added configurable subscription confirmation timeouts, with a default of 15 seconds.
    • Documented prerequisites, behavior, and possible errors. Existing subscription behavior remains unchanged unless the option is enabled.

The change adds the realtime.subscriptions.postgres_changes_wait capability. It documents postgres_changes_options.wait and postgres_changes_options.timeout. When enabled, subscription success waits for server confirmation that Postgres change streaming is active. The specification documents prerequisites, unconfirmed-subscription and timeout errors, default behavior, and related specifications. The specification template and authoring guidance now place platform details in ## Behavior or ## Prerequisites and remove the separate ## Notes section.

Change: Feature

Merge Risk: Minimal · previous review f442c

This change adds documentation and a capability declaration for waiting on Postgres changes subscription confirmation. It does not alter runtime behavior, and no actionable merge risk was found.

- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7467309b-0d86-4523-bd23-866013d609a9
Commits

Reviewing files that changed from the base of the PR and between 1b0489b and f442c17.

Files selected for processing: 1

  • packages/capability-matrix/specs/realtime/subscriptions/postgres_changes_wait.md

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

A dedicated Notes section is redundant on a document that is already
free-form notes — fold platform/behavior asides into Behavior or
Prerequisites instead. Updates the template, the capability-matrix
skill's guidance, and the postgres_changes_wait spec.

Addresses review feedback on #106.

@spydon spydon 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.

Other than the comment about the links from Quintin; LGTM!

@grdsdev
grdsdev merged commit cac8325 into main Nov 26, 2026
6 checks passed
@grdsdev
grdsdev deleted the guilherme/sdk-1650-realtime-postgres-changes-wait branch November 26, 2026 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants