Skip to content

fix auth adoption provider fallback#254

Merged
zbeyens merged 1 commit into
mainfrom
codex/auth-start-provider-and-check
Apr 29, 2026
Merged

fix auth adoption provider fallback#254
zbeyens merged 1 commit into
mainfrom
codex/auth-start-provider-and-check

Conversation

@zbeyens
Copy link
Copy Markdown
Member

@zbeyens zbeyens commented Apr 29, 2026

  • Auto release

🐛 Fixes local auth preset report
🟢 95-100% confidence

Phase 🧪 Tests 🌐 Browser
Reproduced 🔴 targeted test failed with missing Start provider error ➖ N/A
Verified 🟢 full bun check ➖ N/A

Outcome

  • Raw Convex TanStack Start auth adoption no longer requires src/lib/convex/convex-provider.tsx; missing provider files now produce a skipped plan entry with manual wiring guidance.
  • Organization auth docs now steer Stripe-style external plugin work to authAction, and simple organization writes to ctx.orm.
  • Local bun check now runs fixtures:check:auto, so fixture package drift is refreshed before the strict fixture comparison.
  • Convex adoption runtime scenarios use add auth --no-codegen followed by explicit kitcn codegen, avoiding the hanging migration path while keeping generated-file validation.

Verified

  • bun test packages/kitcn/src/cli/registry/items/auth/auth-item.test.ts --test-name-pattern "raw Convex Start auth adoption does not require kitcn provider file" failed before the fix, passed after.
  • bun test packages/kitcn/src/cli/registry/items/auth/auth-item.test.ts
  • bun test ./tooling/scenarios.test.ts
  • bun run fixtures:check:auto
  • bun run scenario:test -- raw-start-auth-adoption
  • bun check

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
better-convex Ready Ready Preview, Comment Apr 29, 2026 3:32pm

Request Review

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 29, 2026

⚠️ No Changeset found

Latest commit: c6aedd3

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes changesets to release 2 packages
Name Type
kitcn Patch
@kitcn/resend Patch

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c6aedd3b53

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

content: '',
kind: 'scaffold',
manualActions: [
`Wrap your existing Convex provider with ConvexAuthProvider using src/lib/convex/auth-client.ts, or place the provider at ${normalizedPath} before rerunning auth adoption.`,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Use detected client path in Start fallback guidance

When convex-provider.tsx is missing, the new manual-action message always tells users to wire src/lib/convex/auth-client.ts, but Start projects without a src/ layout resolve this client under lib/convex (from projectContext.convexClientDir). In that common layout, following this guidance points to a non-existent file and can leave auth wiring broken after a “successful” add run; the message should be derived from the same resolved client directory used elsewhere.

Useful? React with 👍 / 👎.

@zbeyens zbeyens merged commit 0a2dde8 into main Apr 29, 2026
7 checks passed
@zbeyens zbeyens deleted the codex/auth-start-provider-and-check branch April 29, 2026 17:17
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