Skip to content

[codex] fix local profile setup#3

Draft
iamkhurams wants to merge 1 commit intoribato22:mainfrom
iamkhurams:codex-fix-local-profile-setup
Draft

[codex] fix local profile setup#3
iamkhurams wants to merge 1 commit intoribato22:mainfrom
iamkhurams:codex-fix-local-profile-setup

Conversation

@iamkhurams
Copy link
Copy Markdown

What changed

  • Added a friendly API root response at / while keeping REST routes under /api/v1.
  • Auto-creates a default account when a registered user has a workspace but no active account.
  • Creates the default account during registration so the profile creation flow has an account to attach to.

Why

Local setup could reach the dashboard and API, but creating a WhatsApp profile failed because the local database had a user/workspace without an account. The admin UI expects an account before it can create a profile, so WhatsApp Web.js never got to the connection step.

Validation

  • pnpm --filter api typecheck
  • Verified /api/docs returns 200
  • Verified /api/v1/accounts returns the default account
  • Verified a temporary profile create/connect returned connecting for WhatsApp Web.js
  • Verified headless Chrome can launch locally for WhatsApp Web.js

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