Repository navigation
fix: let Freestyle desktop previews reach ready again - #7654
Open
reachjalil wants to merge 3 commits into
Open
reachjalil wants to merge 3 commits into
reachjalil wants to merge 3 commits into
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub. 3 Skipped Deployments
|
…E_DB Isolated test, preview and dev profiles set OPENCODE_DB, and OpenWork hands that same path to its own v2 engine. Once v2 initialized it, engine v1 exited with "Database is not empty and has no session table", the server never became ready, and the Freestyle desktop preview snapshot failed every build. Treat that exit like the default-path collision: move only v1's database to OpenWork's own storage and retry. The v1 to v2 history migration reads the moved database, which now wins over the explicit path. The Freestyle desktop preview now prints the engine database's tables and the desktop log's notable lines when startup fails. Signed-off-by: Jalil <reachjalil@gmail.com>
…esktop ready check A signed-out desktop now provisions the openwork-free provider and selects its model. The Freestyle preview's pristine check still expected the retired default model and no providers at all, so the snapshot never reached ready. Accept the built-in free provider and its model; any other provider or model still fails the check. On failure, report the model state the check saw. Signed-off-by: Jalil <reachjalil@gmail.com>
Signed-off-by: Jalil <reachjalil@gmail.com>
reachjalil
force-pushed
the
fix/freestyle-desktop-preview-ready
branch
from
November 21, 2026 01:18
60d4476 to
567b309
Compare
This branch was previously deployed
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.
What is this about?
Freestyle desktop previews (
pnpm world up preview-desktop --place freestyle) failed on every build, so nobody could open a desktop preview on Freestyle.What problem does it solve?
Two causes stopped the preview at its ready check, and the failure said nothing useful.
What was the situation before?
OPENCODE_DBHow is this implemented?
apps/server/src/managed-opencode.ts: the v2-owned-database recovery from fix(server): start engine v1 when a standalone OpenCode v2 owns storage #6662 now also applies whenOPENCODE_DBis explicit. OpenWork hands that same path to its own v2 engine, so isolated test, preview and dev profiles hit the collision.apps/server/src/opencode-history.ts: after that move, the v1 to v2 history migration reads the moved database first.packages/world-freestyle/src/desktop-state.mjs: the pristine check acceptsopenwork-freeand its model; any other provider or model still fails.packages/world-freestyle/src/desktop-runtime.mjs: on startup failure, print the engine database tables and the desktop log's notable lines.What else changed?
apps/server/test/managed-opencode-shared-database.test.ts.Release note
OpenWork starts again when OpenCode is pointed at a custom database (
OPENCODE_DB) that OpenCode v2 already uses.Evidence
bun test test/managed-opencode-shared-database.test.ts: 3 pass; server typecheck clean.