Skip to content

v0.42.26.0 docs(supabase): update connection-string setup to new UI + Transaction pooler (#1848)#1875

Merged
garrytan merged 2 commits into
masterfrom
garrytan/fix-pr-1848-issues
Jun 5, 2026
Merged

v0.42.26.0 docs(supabase): update connection-string setup to new UI + Transaction pooler (#1848)#1875
garrytan merged 2 commits into
masterfrom
garrytan/fix-pr-1848-issues

Conversation

@garrytan

@garrytan garrytan commented Jun 5, 2026

Copy link
Copy Markdown
Owner

What

Updates the Supabase connection-string setup across the docs and gbrain init to match the current Supabase dashboard and to recommend the pooler gbrain is actually tuned for. Extends community PR #1848 by @FilipHarald, who caught that the tutorial walkthrough was written for the old UI.

Why

Supabase moved the connection string under Connect in the top navigation and now shows three options (Direct, Transaction pooler, Session pooler). The repo had drifted into contradiction:

  • some docs said "Connection pooler," others mislabeled port 6543 as the "Session pooler" (it's the Transaction pooler),
  • a few carried a stale warning to avoid the transaction pooler entirely (.begin() is not a function), which contradicts gbrain's current dual-pool behavior.

gbrain is built around the Transaction pooler (port 6543): resolvePrepare disables prepared statements there, and connection-manager routes migrations, DDL, and worker locks to a derived direct connection. Verified against Supabase's live 2026 docs (Connect UI, Supavisor terminology, prepared-statement handling).

The IPv4 footgun (now documented)

The direct connection gbrain derives for DDL/locks (db.<ref>.supabase.co:5432) is IPv6-only. On an IPv4-only host (most Render plans) reads work but sync silently skips pages. Tutorial §7c now leads with the free fix — point GBRAIN_DIRECT_DATABASE_URL at the Session pooler (port 5432, IPv4) — and keeps the IPv4 add-on as the paid alternative.

Files

  • docs/tutorials/personal-brain.md — §7b new Connect nav + three options + Transaction pooler; §7c rewritten for the IPv4 fix
  • src/commands/init.ts — prompt/warning copy → Transaction pooler + Connect nav
  • skills/setup/SKILL.md, docs/GBRAIN_VERIFY.md, docs/guides/live-sync.md — consistent labels; stale .begin() warnings reframed to the real IPv4 direct-connection gotcha
  • llms-full.txt — regenerated

Frozen per repo rules: skills/migrations/v0.5.0.md (historical migration) and CHANGELOG history.

Verification

  • bun run typecheck clean
  • bun run build:llms + bun test test/build-llms.test.ts (12 pass)
  • Consistency greps: no remaining "Session…6543" mislabels or stale .begin() references

🤖 Generated with Claude Code

garrytan and others added 2 commits June 4, 2026 21:09
…n pooler

Supabase moved the connection string under "Connect" in the top nav and now
shows three options (Direct, Transaction pooler, Session pooler). Update the
tutorial, gbrain init prompts, the setup skill, the verify runbook, and the
live-sync guide to recommend the Transaction pooler (port 6543) — which gbrain
is tuned for (prepared statements disabled, DDL/locks routed to a derived direct
connection).

Document the IPv4 footgun: the derived direct connection is IPv6-only, so on
IPv4-only hosts reads work but sync silently skips pages. Tutorial 7c now leads
with the free fix (GBRAIN_DIRECT_DATABASE_URL -> Session pooler, port 5432) and
keeps the IPv4 add-on as the paid alternative. Removes stale "transaction mode
breaks sync (.begin() is not a function)" warnings and the port-6543 "Session
pooler" mislabels.

Extends PR #1848 by @FilipHarald.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@garrytan garrytan merged commit 8058144 into master Jun 5, 2026
20 checks passed
uncfreak1255-code pushed a commit to uncfreak1255-code/gbrain that referenced this pull request Jun 5, 2026
… Transaction pooler (garrytan#1848) (garrytan#1875)

* docs(supabase): update connection-string setup to new UI + Transaction pooler

Supabase moved the connection string under "Connect" in the top nav and now
shows three options (Direct, Transaction pooler, Session pooler). Update the
tutorial, gbrain init prompts, the setup skill, the verify runbook, and the
live-sync guide to recommend the Transaction pooler (port 6543) — which gbrain
is tuned for (prepared statements disabled, DDL/locks routed to a derived direct
connection).

Document the IPv4 footgun: the derived direct connection is IPv6-only, so on
IPv4-only hosts reads work but sync silently skips pages. Tutorial 7c now leads
with the free fix (GBRAIN_DIRECT_DATABASE_URL -> Session pooler, port 5432) and
keeps the IPv4 add-on as the paid alternative. Removes stale "transaction mode
breaks sync (.begin() is not a function)" warnings and the port-6543 "Session
pooler" mislabels.

Extends PR garrytan#1848 by @FilipHarald.

* chore: bump version and changelog (v0.42.26.0)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
mgunnin added a commit to mgunnin/gbrain that referenced this pull request Jun 5, 2026
* upstream/master:
  v0.42.26.0 docs(supabase): update connection-string setup to new UI + Transaction pooler (garrytan#1848) (garrytan#1875)
  v0.42.25.0 fix(pricing): unify chat-model pricing into one canonical source; add Opus 4.8 (garrytan#1819) (garrytan#1827)
  v0.42.24.0 fix(minions): route lock claim/renewLock through direct session pool (garrytan#1822)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant