Skip to content

Move remote PCs to the remote-v2 runtime - #21

Merged
devswha merged 1 commit into
mainfrom
chore/remote-bundle-v2
Sep 24, 2026
Merged

devswha merged 1 commit into
mainfrom
chore/remote-bundle-v2

Conversation

@devswha

@devswha devswha commented Sep 24, 2026

Copy link
Copy Markdown
Owner

Summary

Remote PCs run the server code from their remote-vN bundle, and remote-v1 predates 0.3.0. So remote PCs still had the old chat paging, Codex conversation and send paths, even though the connection server runs 0.3.0. This raises REMOTE_BUNDLE_VERSION to "2".

  • New installs download the remote-v2 release, into ~/.local/share/herdr-web-ui/remote-v2.
  • A PC already connected with a v1 bridge is refused with "An incompatible bridge is already registered…" until the user runs Update bridge…. Its herdr sessions are kept.
  • docs/remote-pcs.md now describes the versioning in general terms (remote-vN = REMOTE_BUNDLE_VERSION), and says the bundle release has to be published before the app release that carries the new number.
  • The CHANGELOG gets an Unreleased entry.

Release order

  1. Merge this PR, then push the remote-v2 tag on the merge commit. The workflow checks that the tag matches REMOTE_BUNDLE_VERSION, builds and smoke-tests all four platforms, and publishes the release with --latest=false.
  2. After that, cut app release 0.3.1. Until then, installs keep pointing at remote-v1.

Testing

  • bun run typecheck passes and bun test passes 294/294.
  • The linux-x64 v2 bundle builds locally, and remote-bundle-smoke.ts passes (startup, isolated socket, authentication).
  • bun run test:ssh passes with the v2 bundle: real OpenSSH and an isolated herdr, covering install, remote terminal, chat, reconnect, a failed install preserving sessions, bridge update, host key change and removal.
  • v1 → v2 upgrade, end to end (scratch script, isolated sshd and HOME):
    • v0.3.0 installed the published remote-v1 bundle from GitHub and opened a remote workspace.
    • A v2 server with the same state refused the v1 bridge and left it running.
    • Update bridge installed remote-v2 and reconnected, and the remote workspace was still there.
  • The four-platform bundle workflow was dispatched on this branch before any tag. See the run linked in the comments.

Note: while a v1 bridge is refused, the PC shows Reconnecting… with the error, not a failed state. Update bridge… lives under the PC's manage button. This is how an incompatible bridge already behaves; it could be made more prominent later.

🤖 Generated with Claude Code

The remote-v1 bundle predates 0.3.0's server changes, so remote PCs kept
the old chat paging, Codex conversation and send paths. Raising
REMOTE_BUNDLE_VERSION to 2 points installs at the remote-v2 release; a PC
connected with a v1 bridge is refused until the user runs Update bridge,
which keeps its herdr sessions.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@devswha

devswha commented Sep 24, 2026

Copy link
Copy Markdown
Owner Author

Pre-tag check: the bundle workflow was dispatched on this branch and every job passed: linux x64/arm64 and macOS arm64/intel builds with smoke tests, plus the SSH password job. https://github.com/devswha/herdr-web-ui/actions/runs/36020926482

@devswha
devswha merged commit 4d2d8f5 into main Sep 24, 2026
6 checks passed
@devswha
devswha deleted the chore/remote-bundle-v2 branch September 26, 2026 14:47
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