Skip to content

fix: make sync reliably update worker version#99

Merged
gricha merged 3 commits intomainfrom
fix/sync-updates-worker
Jan 12, 2026
Merged

fix: make sync reliably update worker version#99
gricha merged 3 commits intomainfrom
fix/sync-updates-worker

Conversation

@gricha
Copy link
Copy Markdown
Owner

@gricha gricha commented Jan 11, 2026

Summary

  • Ensure worker server is started via /usr/local/bin/perry (avoid PATH shadowing from old ~/.npm-global/bin/perry).
  • During workspace sync, add ~/.local/bin/perry -> /usr/local/bin/perry to make perry inside containers resolve to the synced binary.
  • When syncing, if the worker is already running but on a different version, restart it so /health matches the expected version.
  • Increase API timeout for perry sync (and the post-update sync) to avoid client-side 30s timeouts when syncing many workspaces.

Repro / Verification

  • workspace-perry5 previously had worker stuck on 0.3.13 due to PATH shadowing; after sync it reports the updated version via http://127.0.0.1:7392/health.

Comment thread src/workspace/manager.ts
const health = (await response.json().catch(() => null)) as { version?: string } | null;
if (health?.version === desiredVersion) {
return;
}

This comment was marked as outdated.

@gricha gricha merged commit 0e21918 into main Jan 12, 2026
8 checks passed
@gricha gricha deleted the fix/sync-updates-worker branch January 12, 2026 01:43
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