Skip to content

cli: void init should also prompt for authentication + linking a project. - #40

Merged
cpojer merged 1 commit into
mainfrom
void-init-auth
Mar 27, 2026
Merged

cpojer merged 1 commit into
mainfrom
void-init-auth

Conversation

@cpojer

@cpojer cpojer commented Mar 27, 2026

Copy link
Copy Markdown
Member

Right now, you can run void init, then develop and only auth to void and link a project when running void deploy. Imho that's confusing since when I run init, I want it to set up the project. This change makes it so that void init prompts for whether it should auth and link.

CleanShot 2026-03-27 at 16 14 53@2x

@cpojer
cpojer requested a review from Brooooooklyn March 27, 2026 07:16
@cpojer
cpojer enabled auto-merge (squash) March 27, 2026 07:45
@cpojer
cpojer disabled auto-merge March 27, 2026 13:43
@cpojer
cpojer merged commit 15c30a9 into main Mar 27, 2026
11 of 12 checks passed
@cpojer
cpojer deleted the void-init-auth branch March 27, 2026 13:48
cpojer pushed a commit that referenced this pull request Sep 11, 2026
…n-text bug (#40)

* fix(api): retry worker upload and harden migration parsing on CF plain-text bug

The previous fix (3fbceb2) only addressed createAssetUploadSession, but
the same CF WfP bug ("Assets have already been uploaded" as plain text
instead of JSON) can also affect the worker upload PUT and downstream
worker invocations via dispatch. This caused migrateResponse.json() to
throw a SyntaxError that the sanitizer missed due to JSON.parse
truncating the original text.

Three-layer fix:
- Retry worker upload PUT up to 3 times on plain-text CF responses
- Read migration response as text first to detect CF bug before parsing
- Improve sanitizer to catch truncated SyntaxError form

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix(test): mock CF API in admin deploy count test to prevent CI timeout

The test creates a user with a project, causing queryBatchProjectUsage
to fire a real fetch to CF Analytics Engine. In CI this hangs (no valid
token/network) until the 5s timeout. Other tests in the same describe
block avoid this because they create users without projects, so the
query short-circuits on empty projectIds.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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