Repository navigation
cli: void init should also prompt for authentication + linking a project. - #40
Merged
Merged
Conversation
cpojer
disabled auto-merge
March 27, 2026 13:43
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>
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.
Right now, you can run
void init, then develop and only auth to void and link a project when runningvoid deploy. Imho that's confusing since when I run init, I want it to set up the project. This change makes it so thatvoid initprompts for whether it should auth and link.