Skip to content

fix(cli): warn when a host worker's deps are missing, and route update output through the feedback layer#616

Merged
geodro merged 1 commit into
mainfrom
fix/cli-feedback-and-vite-worker-readiness
Jun 24, 2026
Merged

fix(cli): warn when a host worker's deps are missing, and route update output through the feedback layer#616
geodro merged 1 commit into
mainfrom
fix/cli-feedback-and-vite-worker-readiness

Conversation

@geodro

@geodro geodro commented Jun 24, 2026

Copy link
Copy Markdown
Member

Two post-1.26.0 CLI fixes.

A freshly linked project that declares a host worker like vite but hasn't installed its JS dependencies used to drop that worker silently, so it just read as vite not running with no clue why. Both the link path and WorkerStartForSite now surface a single shared message through hostWorkerNotReadyMsg, which fires only for a host worker on a node project and points at lerd setup rather than a bare npm ci so the advice still holds for bun, yarn and pnpm projects. The message lives in one place so the preflight gate and the link-time skip read identically, and it stays empty for container workers so they keep their existing dependency note.

The update command's service-restart and rollback output now speaks the same styled feedback vocabulary as the rest of the CLI instead of the old ==> and --> prefixes. A restart that doesn't take is rendered with a new amber Step.Warn rather than a red cross, since the binary swap already succeeded and a stuck restart is a warning, not a failure of the update itself.

…e output through the feedback layer

A freshly linked project that declares a host worker like vite but hasn't had its JS dependencies installed used to drop that worker silently, so it just read as "vite isn't running" with no clue why. Both the link path and WorkerStartForSite now surface a single shared message through hostWorkerNotReadyMsg, which fires only for a host worker on a node project and points at lerd setup rather than a bare npm ci so the advice still holds for bun, yarn and pnpm projects. The message lives in one place so the preflight gate and the link-time skip read identically, and it stays empty for container workers so they keep their existing dependency note.

The update command's service-restart and rollback output now speaks the same styled feedback vocabulary as the rest of the CLI instead of the old ==> and --> prefixes. A restart that doesn't take is rendered with a new amber Step.Warn rather than a red cross, since the binary swap already succeeded and a stuck restart is a warning, not a failure of the update itself.
@geodro geodro merged commit b2311d7 into main Jun 24, 2026
3 checks passed
iabduul7 pushed a commit to iabduul7/lerd that referenced this pull request Jun 26, 2026
…-worker-readiness

(cherry picked from commit b2311d7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant