fix(cli): handle blank project password prompt#5569
Open
jgoux wants to merge 1 commit into
Open
Conversation
Supabase CLI previewnpx --yes https://pkg.pr.new/supabase@5569Preview package for commit |
avallete
reviewed
Jun 13, 2026
| return yield* Effect.interrupt; | ||
| } | ||
| return value.trim(); | ||
| return typeof value === "string" ? value.trim() : ""; |
Member
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the interactive password prompt path used by
projects createwhen the user leaves the database password blank.@clack/promptscan 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.