Repository navigation
fix(server): update commands match a global styal install - #837
Merged
Merged
Conversation
A foreground styal server installed with `npm i -g @styal/cli` was told to run `npx @styal/cli@<version> serve`. That runs the new version once but leaves the installed `styal` command old, so the update notice returns on the next launch. Port upstream's installation detection onto the fork's npm identity. The server now proves a global install from the `lib/node_modules/@styal/cli` layout: the prefix's `bin/styal` must resolve to the running launcher, and a running platform executable must match the launcher's version and optional dependency. It advertises the result in the optional `serverInstallation` capability, along with npx, pnpm dlx, and bunx starts. The web update instructions for a foreground server now copy `npm install --global --prefix '<prefix>' @styal/cli@<version>` for a proven global install, and `serve` through the same runner otherwise. The service migration command is unchanged. Fork-Feature: server-update-guidance Co-authored-by: maria <maria@kuuro.net> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Upstream divergenceBoth sides are compared with upstream at the in-order tip
Upstream files whose difference changes (13)
|
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
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.
A styal server installed with
npm i -g @styal/cliand started from a terminal was givennpx @styal/cli@<version> serveas its update command. That runs the new version once but leaves the installedstyalcommand on the old version, so the update notice comes back on the next launch.This ports upstream's installation detection from pingdotgg#15539 to styal's npm identity. That upstream commit is already recorded on main without its changes, because its detection only recognized T3 Code's
t3package.lib/node_modules/@styal/clilayout:<prefix>/bin/styalmust resolve to the running launcher.@styal/cli-<platform>/styal) must match the launcher's version and its optional dependency.serverInstallationenvironment capability.npm install --global --prefix '<prefix>' @styal/cli@<version>, followed by a note to restartstyal;servethrough the same runner;npx @styal/cli@<version> serve, with a note that it doesn't update an installedstyalcommand.server-update-guidanceledger entry are updated.Validation
@styal/cliinto a scratch prefix withnpm install --global --prefix. Ran this branch's detection against the installed launcher, the global bin and the@styal/cli-linux-x64/styalexecutable. It reported{"kind":"npm-global","prefix":"<scratch prefix>"}. The legacydist/bin.mjsentry correctly reported nothing./opt/node tools; both were set with a temporary local override that isn't part of this change. The Connections update dialog showed the screenshot above. The prefix was quoted correctly, and Copy is labelled "Copy update command". The screenshot uses a synthetic environment name.These cases behave the same as upstream:
sudo.Written by an agent (Claude Code, claude-opus-5-5).