fix(wix-vibe-headless): write wix-config.js only when it still holds placeholders - #985
Merged
Merged
Conversation
…placeholders Base44 now writes src/rest/wix-config.js at app creation, from ids it already holds. deploy.cjs ran after that and overwrote it from its flags, putting the transcription this file exists to remove straight back in. Now: a config carrying values is left alone; placeholders get the flags. That covers the host-written case and the agent's own edit without distinguishing between them. Also drops the uuid shape check and the anonymous-token mint added in #980. Neither belongs in an install step — the shape check rejected nothing a wrong-but-well-formed id would trip, and the mint made the step fail on Wix's availability. deploy.cjs is back to being synchronous with no network calls, and STEP 1 keeps skills a host already installed rather than reinstalling over them.
ayal
force-pushed
the
fix/host-written-wix-config-wins
branch
from
August 12, 2026 18:49
46ce51b to
ab7ea35
Compare
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.
Why
Base44 now writes
src/rest/wix-config.jsat app creation (apper#20021), from the client id on the create request and a site id resolved from the Wix API — neither passes through a prompt.deploy.cjsruns after that, on the agent's first turn, andwriteWixConfigwas an unconditionalwriteFileSync. So the agent's prompt-transcribed ids overwrote the host's correct ones, and the transcription this file exists to remove was straight back in. Without this change the platform-side write has no effect on Base44.Change
Write only when the file still holds the placeholders. A config already carrying values is left exactly as it is — no comparison, no precedence rules, no reporting of what was ignored. It doesn't matter whether those values came from the host at creation or from the agent's own edit; either way this script has nothing better to put there.
Also removes the validation added in #980 — the uuid shape check and the anonymous-token mint against Wix. Neither belongs in an install step: the shape check catches nothing that a wrong-but-well-formed id would trip, and the mint made the step's success depend on Wix being reachable.
deploy.cjsis synchronous again with no network calls, and no longer has a failure exit of its own.STEP 1 keeps skills a host already installed (
existsSyncon eachSKILL.md) instead of reinstalling over them, and the sentences promising verification are gone frombase44.mdand the placeholder file.Net: -70 / +33.
Verified
Ran
deploy.cjsagainst a fixture on all four paths:already_set, file untouchedwrittenwritten(the shared copy lays the placeholder first)Row 1 is the Cozy Knit regression: that corrupted id shipped a storefront where every call failed
Wix OAuth failed: 400.