Skip to content

Stop creating organizations in v1; send org-less sessions to v2 - #2498

Merged
RhysSullivan merged 1 commit into
mainfrom
v1-stop-org-creation
Nov 5, 2026
Merged

RhysSullivan merged 1 commit into
mainfrom
v1-stop-org-creation

Conversation

@RhysSullivan

@RhysSullivan RhysSullivan commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

v1 no longer creates organizations. Every new organization is created in Executor v2.

  • POST /api/auth/create-organization creates nothing. It answers OrganizationCreationMoved (410) with v2's sign-up URL.
  • The document gate sends a signed-in session with no organization to v2's sign-up page (V2_SIGN_UP_URL) instead of /create-org. A session with a pending invitation into an existing org goes to a new /join page instead. That page keeps the invitation list from the old /create-org page. The client gate sends org-less sessions to /join mid-session, and /join forwards to v2 when there is nothing to accept.
  • /create-org redirects every signed-in session to v2's sign-up page.
  • The org switcher's "Create organization" dialog is replaced by a "New organization in Executor v2" link. It opens /create-org in a new tab, like the sidebar's other v2 links.
  • Removed: the create-org form, /setup-mcp (only reached after creating an org), the free-org limit, and WorkOS createOrganization / createMembership.

Members of existing orgs are unaffected. Sign-in, invitations, org switching, the moved-org redirect, freeze and MCP forwarding work as before.

Tests are in #2499. This layer alone fails e2e because the e2e harness still creates orgs through the old endpoint. The tests layer moves it to seeding orgs in the WorkOS emulator.

Org switcher with the v2 link

Join page for an invited user with no organization

@RhysSullivan
RhysSullivan added this pull request to stack #2500 November 5, 2026 04:43
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
executor-cloud d1919a0 Nov 05 2026, 04:46 AM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
executor-marketing d1919a0 Commit Preview URL

Branch Preview URL
Nov 05 2026, 04:45 AM

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Cloudflare preview

Torn down — the PR is closed.

@pkg-pr-new

pkg-pr-new Bot commented Nov 5, 2026

Copy link
Copy Markdown

Open in StackBlitz

@executor-js/cli

npm i https://pkg.pr.new/@executor-js/cli@2498

@executor-js/config

npm i https://pkg.pr.new/@executor-js/config@2498

@executor-js/execution

npm i https://pkg.pr.new/@executor-js/execution@2498

@executor-js/sdk

npm i https://pkg.pr.new/@executor-js/sdk@2498

@executor-js/codemode-core

npm i https://pkg.pr.new/@executor-js/codemode-core@2498

@executor-js/runtime-quickjs

npm i https://pkg.pr.new/@executor-js/runtime-quickjs@2498

@executor-js/plugin-file-secrets

npm i https://pkg.pr.new/@executor-js/plugin-file-secrets@2498

@executor-js/plugin-graphql

npm i https://pkg.pr.new/@executor-js/plugin-graphql@2498

@executor-js/plugin-keychain

npm i https://pkg.pr.new/@executor-js/plugin-keychain@2498

@executor-js/plugin-mcp

npm i https://pkg.pr.new/@executor-js/plugin-mcp@2498

@executor-js/plugin-onepassword

npm i https://pkg.pr.new/@executor-js/plugin-onepassword@2498

@executor-js/plugin-openapi

npm i https://pkg.pr.new/@executor-js/plugin-openapi@2498

executor

npm i https://pkg.pr.new/executor@2498

commit: d1919a0

@RhysSullivan
RhysSullivan marked this pull request as ready for review November 5, 2026 04:51
@RhysSullivan
RhysSullivan merged commit f7fe804 into main Nov 5, 2026
26 of 44 checks passed
@RhysSullivan RhysSullivan mentioned this pull request Nov 5, 2026
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