mirror of
https://github.com/different-ai/openwork
synced 2026-04-26 01:25:10 +02:00
1.7 KiB
1.7 KiB
Opencode DB Migration Recovery - verification guide
What changed
- Added a desktop command to run
opencode db migratefrom OpenWork. - Added workspace recovery flow to stop engine, migrate, and restart once.
- Added onboarding and settings UI entry points for "Fix migration".
- Increased first local boot health timeout for
host-startandbootstrap-local.
Screenshots in this folder
session-smoke-response.pngsettings-general.pngsettings-advanced.png
Note: this environment was connected to a remote workspace surface, so desktop-only migration controls were not rendered in Chrome MCP screenshots.
Third-party test steps
- Install dependencies and validate builds.
pnpm install
pnpm --filter @different-ai/openwork-ui typecheck
pnpm --filter @different-ai/openwork-ui build
pnpm --filter @different-ai/openwork-desktop tauri build --debug
- Run desktop app and verify recovery action appears.
pnpm --filter @different-ai/openwork-desktop tauri dev
-
In the desktop app, create or open a local workspace and force local startup preference.
-
Trigger a migration failure scenario (example: use an older
opencodebinary or stale.opencode/opencode.dbschema), then confirm:- onboarding error panel shows
Fix migration - settings -> Advanced shows
Migration recovery - clicking
Fix migrationruns migrate, then retries local start once
- onboarding error panel shows
-
Confirm fallback copy for older CLIs without
db migrate:- expected message points user to upgrading OpenCode.
-
Optional Docker + Chrome MCP gate for UI sanity:
packaging/docker/dev-up.sh
Use the printed Web UI URL, run one smoke prompt/response flow, then stop with the printed docker compose -p ... down command.