Skip to content

fix(cli): handle blank project password prompt#5569

Open
jgoux wants to merge 1 commit into
developfrom
julien/fix-empty-project-password-prompt
Open

fix(cli): handle blank project password prompt#5569
jgoux wants to merge 1 commit into
developfrom
julien/fix-empty-project-password-prompt

Conversation

@jgoux

@jgoux jgoux commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Fixes the interactive password prompt path used by projects create when the user leaves the database password blank.

@clack/prompts can return no string value for that blank password entry. The output adapter was calling .trim() directly, which crashed before the project creation flow could generate the fallback password. The adapter now normalizes non-string prompt results to an empty string so existing command-level fallback behavior can run.

@jgoux jgoux requested a review from a team as a code owner June 12, 2026 21:02
@jgoux jgoux enabled auto-merge June 12, 2026 21:05
@github-actions

Copy link
Copy Markdown

Supabase CLI preview

npx --yes https://pkg.pr.new/supabase@5569

Preview package for commit f2320ac.

return yield* Effect.interrupt;
}
return value.trim();
return typeof value === "string" ? value.trim() : "";

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Shouldn't that have been caught by type checking ? If the value can be undefined, we should've got an "need an optional operator" warning, or something. I think the root cause of the issue is deeper.

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.

2 participants