Repository navigation
0.2.20
A Rust (Cargo) preview no longer pretends to be a frame: it opens in its own window, with an honest build status, and the agent is told what that means. The ZIP import wait says the real time.
Added
- A card instead of "refused to connect". For a project whose app keeps its own frame policy (Laravel Rust and other Cargo apps;
publicOrigin), the Studio does not mount the preview iframe. The Preview panel shows why (the app protects itself from embedding, its security headers forbid frames, and its session cookies do not work inside another site's frame), the build state (building, ready, failed), and Open in new window, where sign-in, the admin and forms work. The window is reused: later clicks bring it to the front. Vite and Go templ previews stay in the frame, unchanged. (Studio ADR 0006, ADR 0005.) - Build state on the host seam.
GET /projects/:idand/projects/:id/statuscarrypublic_origin/publicOriginand, for such projects,build(state: building | ready | failed, the step, crates compiled, the end of the log, redacted). The preview isstarting, not ready, while the cargo-dev status page holds the port, so the first start no longer reports "ready" at the first HTTP answer. - Import progress. While a Rust ZIP is being imported, the status carries
setup(toolchain, fetch, build, the last output line, crates compiled so far) and the import wait shows it. - The agent knows. A short host note in front of each prompt for such projects: the preview runs through cargo-dev, the Studio shows it in its own window, a framed "refused to connect" is expected, and the server binary is not to be debugged. Two read-only files in the project, refreshed every 3 s during a run:
.vibechat/preview-status.jsonand.vibechat/preview.log(the last 150 lines, secrets masked). They are kept out of git and out of the file tree; the sandbox is unchanged (no ports, no host files).
Changed
- The wait hint is honest. Go: about half a minute. Rust: the first start installs the toolchain and does a cold build, which takes several minutes (5 to 10 on a server with 2 vCPU). Strings in the Studio are RU and EN.
- Runner-agnostic wording. "Vite runner" is gone from the preview strings and comments; the messages say "preview".
Known limitations
- The cold Rust build time itself is unchanged (it is the compiler on your CPUs). Rust is still installed lazily, on a Rust project's first start, and by ZIP import only. The setup wizard and the package postinstall do not install it.
- A browser can block the new window if it is not opened by a click; the card button is a click, so it normally works. A host older than 0.2.20 does not send
publicOrigin, so the Studio keeps the iframe for it. - The agent's
preview.logand status are a snapshot every 3 s, not a live stream.
Upgrade note
Server: sudo vibechat-server update (or Settings > Server > Update now; the desktop app and the server should be on the same version). No data migration. Check every asset against this release's SHA256SUMS.