Skip to content

fix(machines): tell this app to update when a PC's own Ovis is newer - #1938

Merged
devswha merged 1 commit into
mainfrom
fix/remote-setup-needed
Oct 25, 2026
Merged

devswha merged 1 commit into
mainfrom
fix/remote-setup-needed

Conversation

@devswha

@devswha devswha commented Oct 25, 2026

Copy link
Copy Markdown
Owner

Change

A remote PC whose herdr socket is served by its own Ovis (an independently managed web server,
managed_remote: false) and whose bridge version differs from this app's fails with
action_required: "setup" and one fixed message: "Update it through its own Settings, then
reconnect". That is right when that server is older, and wrong when it is newer: then that
server is already the newest side, and the one behind is this app.

server/machines.ts now picks the message by the version the descriptor (in prepare) or the
live identity (in verify) reports:

  • newer than this app: "This socket uses an independently managed web server of a newer version
    (v36); this app requires v35. Update this app in Settings → Updates, then reconnect; that server
    was left running."
  • older (or any other mismatch): the old message, unchanged.

The action stays setup, nothing on the PC is touched, and managed bridges keep their
bridge_conflict / update_bridge paths.

Why

Ovis for Mac showed "Setup needed" for the maintainer's Linux PC with the old message. The PC's
own Ovis had just updated itself from 0.4.13 to 0.4.16 (bridge v32 to v35). The Mac's Ovis server
was still 0.4.13: the 0.4.16 Ovis.dmg is only the window around it. The Mac reconnected 6 seconds
after the PC's restart, found the PC's v35 server, and was told to update the PC, which was
already up to date. The fix on the Mac was to update its own Ovis.

This reverses one choice from #519 ("An independently managed web server that is newer keeps its
own message"). That PR moved such a server off bridge_conflict, whose text ("disconnect the
other app") does not fit a server nobody started from here, and that part stays. But "update it
through its own Settings" cannot help a server that is already newer. This app's own update can:
after it restarts, it reconnects to the PC by itself.

Validation

  • Reproduced through the real setup route: a test herdr session, an independent Ovis server from
    a worktree with REMOTE_BUNDLE_VERSION raised to 36, and a second server (isolated state,
    port 0) running this branch as the client. POST /api/machines/setup {destination: "localhost", session: "rsn-qa"}, then GET /api/machines/setup/:id:
    • main: failed, action_required: "setup", "...Update it through its own Settings, then
      reconnect; it was left running." (the text the Mac showed)
    • this branch: failed, action_required: "setup", "...of a newer version (v36); this app
      requires v35. Update this app in Settings → Updates, then reconnect; that server was left
      running."
  • server/machines.test.ts (descriptor path) and server/machine-update.test.ts (live-identity
    path) cover the newer case: 82 pass. On main's server/machines.ts exactly those two cases fail.
    The older-server cases are unchanged and pass.
  • bun run check fast: pass.

Not changed (follow-ups)

  • The card still reads "Setup needed" with a "Set up web access" button for this action. Only its
    reason line changes.
  • MachineActionRequired still never retries. When the PC's own Ovis is the one behind and
    updates later, this app waits until the user reconnects, as the message says.

A PC whose socket is served by its own Ovis (managed_remote false) and whose
bridge version differs was always sent to "update it through its own
Settings". When that server is the newer one, that points at the side that is
already up to date: this app is the one to update. Pick the message by the
version the descriptor or the live identity reports; the older case and the
setup action stay as they were.
@coderabbitai

coderabbitai Bot commented Oct 25, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 32 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between fc39aeb and a5debaa.

Files selected for processing: 4
  • changelog.d/newer-independent-server-update-this-app.md
  • server/machine-update.test.ts
  • server/machines.test.ts
  • server/machines.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devswha

devswha commented Oct 25, 2026

Copy link
Copy Markdown
Owner Author

Merge pass review-work report. Overall: PASSED. This is an ordinary server fix, so it was gated by Codex Sol, an omo code reviewer and the merge pass's checks.

Lane Verdict
Codex (gpt-6.1-sol, xhigh) APPROVE
Code review (omo-native-code-reviewer) PASS, no HIGH or MEDIUM findings

The new "Update this app" message appears only when the version is all digits and higher than this app's (server/machines.ts:104-106, 119-121). A missing, malformed, equal or lower version keeps the old message. The version is printed only in the newer case, so the message never shows vundefined.

Unchanged:

  • The action stays setup, and nothing on the PC is stopped or installed.
  • Managed bridges keep bridge_conflict and update_bridge, and the checks run in the same order.
  • Settings → Updates exists (src/components/UpdateControls.tsx:92).

Tests: 82 pass. With main's machines.ts, exactly the 2 new tests fail. git merge-tree is clean against main and against #1759, the only other open PR that touches server/machines.ts.

LOW follow-up: the tests for an older server use the text "older" rather than a lower number such as "34".

CodeRabbit did not review this PR (rate-limited or skipped). The reviews above stand in for it.

@devswha
devswha merged commit 93a9a2e into main Oct 25, 2026
27 of 28 checks passed
@devswha
devswha deleted the fix/remote-setup-needed branch October 25, 2026 16:26
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