Repository navigation
fix(desktop): show running CLI version, check for updates, and squash relay init migration - #194
Merged
Conversation
… relay init migration
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.
Distinguishes the running CodeWork server's version from the installed CLI binary in Setup and Settings → Machines, adds non-blocking CLI update detection with a one-click Update Now action that restarts an already-running server, and squashes Relay's pre-release database migrations into a single initial migration.
App Server & Contract
latestCliVersiontoLocalServerStatusinapps/contract/src/contract.ts.Cli.latestVersion) inapps/server/src/cli.tsandapps/server/src/health.ts(HEAD .../releases/latestredirect onlatest,releases/tags/develondev/canary; 1h TTL, 5m retry when unreachable; overridable viaCODEWORK_RELEASE_URL).Cli.installto restart the local server automatically when one is already running instead of leaving the previous process alive.Desktop UI
versionOfhelper inapps/web/src/settings/machines/service.tsx(semver-aware update check, prefers running server version over installed CLI version) and updatedstateOf/whereOfso a running server always reportsRunningeven if no default CLI binary is installed.Install the CodeWork CLI) reopenable, added a muted warning triangle indicator when a newer CLI release is available, and wired Update Now (with live running version shown in Step 2 asRunning · v<version>and mismatch warning when installed and running versions differ).This Machinerow and detail page) to show the running server version, surface mismatches with the installed CLI, and offer Update Now when an update is available.Relay
2026113001_workspace_slug(slugcolumn andworkspace_account_slugunique constraint) into2026112901_initininfra/relay/src/migrations.tsso fresh deployments start from a single initial migration.Testing
vp run verify(all package builds,vp check, package typechecks, knip): passed.vp checkon all 7 modifiedapps/files andtypecheckon@codeworksh/contract,@codeworksh/server, and@codeworksh/web: passed.infra/relay:vp check,typecheck, andpnpm test(2test files,10/10tests): passed.apps/server:vp test test/health.test.ts test/launch.test.ts(2test files,4/4tests): passed.agent-browser --cdp 9222): verifiedv0.8.0 installedwith the warning triangle +Running · v0.10.0, clicked Update Now, and confirmed~/.codework/bin/codeworkupgraded tov0.10.0, the server restarted automatically, and the warning cleared.Built with Gemini (Antigravity).
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.