Skip to content

feat(mobile): show a host's Orca version, with update steps for servers that can't self-update - #44898

Merged
AmoabaKelvin merged 3 commits into
mainfrom
feat/mobile-host-orca-version
Nov 19, 2026
Merged

AmoabaKelvin merged 3 commits into
mainfrom
feat/mobile-host-orca-version

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

ELI5

The phone had no way to see which Orca version a paired computer runs, or what to do when a server can't be updated from a client. The Edit host screen now shows the version, and for a server that can't update itself, one quiet line saying how to update it.

Files Added Deleted Net
Test 0 0 0 0
Prod 16 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​105 $\color{#cf222e}{\Huge{\mathbf{−}}}$​15 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​90

What Changed

  • Edit host shows an "Orca version" row with the version from the host's status.get.
  • Under it, only for a server that can't take a client-driven update, a muted line with steps:
    • orcad (updater-unavailable): "This server can't update itself. Update Orca on the server computer, then restart the server."
    • Electron serve from a .deb/.rpm or a service manager (manual-service-update-required): the package manager / service manager steps the desktop already shows.
    • Development builds: update from the source checkout.
  • The screen's help text says "host" instead of "desktop" ("the name the host reports", "the same host is reachable at a different IP"), in every locale, matching fix(mobile): say "host" instead of "desktop" in phone copy and tell same-email Codex logins apart #43804.
  • Desktops (installMode: interactive) and servers that a client can update (automatic: true plus updater.remote-control.v1) show the version only. No update button.
  • Mechanism: the phone's host status schema now parses remoteUpdateSupport, HostStatusGates carries it as an optional hostUpdateSupport, and the section reads the gates the host route's HostProtocolGate already published (no extra status.get, and the last proven version stays through a drop).

Why

Parity audit gaps PL-G23/PL-G24 (decision D7): the desktop already tells the user a server must be updated by hand, but the phone said nothing. The companion PR #44876 stops orcad advertising updater.remote-control.v1; this PR reads that honest capability plus the support reason the host already sends. A real phone update button would need an orcad updater first, which is later work.

Linked Issue

Surface parity audit gaps PL-G23 and PL-G24 (no GitHub issue).

Visual Proof

Real EditHostScreen rendered at phone width (react-native-web harness, real gates/schema, stubbed router and host list).

Before (orcad) After (orcad) After (.deb Electron serve) After (desktop)
before-orcad-dark.png after-orcad-dark.png after-deb-dark.png after-desktop-dark.png

Testing

  • The status reply in the "after orcad" shot is the one a worktree-built orcad returned to status.get (appVersion, remoteUpdateSupport: {installMode: "unsupported-headless-serve", automatic: false, reason: "updater-unavailable"}).

  • Mobile typecheck, changed-file lint and pnpm check:changed pass.

  • No new tests: the logic is a copy pick from host-reported fields; the gate shape only gains a field when the host sends it, so existing rpc-recording goldens are unchanged.

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

  • Every added test fails without this change and avoids the test anti-patterns

Risk

Low. Edit host is native-only, so the page bundle only gains the schema field. Older hosts that don't send remoteUpdateSupport show the version without steps; a malformed field is salvaged away. An older orcad that still advertises the capability gets steps anyway, because its support says automatic: false. Plain revert backs it out.

Level: Low

AI Disclosure

Review

Kelvin approved the UI with one change (help text says host, not desktop), applied here.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The host status schema and status gates now carry optional remote update-support data. A new helper selects manual update instructions based on that data and host capabilities. The host edit screen displays the Orca version and, when applicable, the selected instructions. Host-edit help text now refers to the host rather than the desktop in the included locales.

Merge Risk: Low · up to c8b56

In a narrow timing window, a connection drop can briefly hide the Orca version row on the Edit host screen until the host reconnects. Nothing else in the change shows a concrete defect, so the change is mergeable with that awareness.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "feat(mobile): show a host's Orca version, with update steps for servers that can't self-update" matches the main change. The PR adds an Orca version row to the mobile Edit host screen and s…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description follows the repository template closely. It covers ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Risk (Level: Low), Review, Agent skill upstream boundary, and Checklist…
Full details: Title check

Explanation

The title "feat(mobile): show a host's Orca version, with update steps for servers that can't self-update" matches the main change. The PR adds an Orca version row to the mobile Edit host screen and shows manual update steps for servers that cannot update themselves. The title is specific and describes the primary change, though at 94 characters it is somewhat long.

Full details: Description check

Explanation

The description follows the repository template closely. It covers ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Risk (Level: Low), Review, Agent skill upstream boundary, and Checklist. The What Changed and Why sections describe the before and after behavior and the mechanism, including the reason for the chosen approach. Visual proof is provided with before and after screenshots. Testing states manual local verification and lint/typecheck runs. The Linked Issue section does not reference a GitHub issue, only the parity audit gaps PL-G23 and PL-G24 (no GitHub issue). The template says there should ALWAYS be an issue for outside contributors, and the author does not state whether they are an outside contributor. The AI Disclosure section is empty, and the template only asks for it from non-team contributors. The Testing section also says no new tests were added, while the checklist still marks the test-related item as checked, which is inconsistent. Overall the description is largely complete, with a few gaps that a reviewer should resolve.

  • 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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fd9a39b4-222b-4fa1-b5b6-95953692a2aa
Commits

Reviewing files that changed from the base of the PR and between 88dfaf5 and c8b5601.

Files selected for processing: 12

  • mobile/app/h/[hostId]/edit.tsx
  • mobile/src/i18n/locales/de.json
  • mobile/src/i18n/locales/en.json
  • mobile/src/i18n/locales/es.json
  • mobile/src/i18n/locales/fr.json
  • mobile/src/i18n/locales/ja.json
  • mobile/src/i18n/locales/ko.json
  • mobile/src/i18n/locales/pt.json
  • mobile/src/i18n/locales/ru.json
  • mobile/src/i18n/locales/tr.json
  • mobile/src/i18n/locales/zh-Hant.json
  • mobile/src/i18n/locales/zh.json
Files skipped from review as they are similar to previous changes: 2

  • mobile/app/h/[hostId]/edit.tsx
  • mobile/src/i18n/locales/en.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

Minor · Keep the last proven Orca version through a drop before the host… · host-status-gates.ts:148

mobile/src/transport/connection/host-status-gates.ts:148
Minor · Functional Correctness · Quick win

Keep the last proven Orca version through a drop before the host status read settles.

readProbedGates can return a host status that this connection already proved, and the hook returns it at lines 134-137. That status reaches desktopAppVersion only through the probed path. loaded is set only in the settle callback. If the connection drops after the probed status is available and before setLoaded runs, proven stays null. The disconnected branch then returns desktopAppVersion: null, and HostOrcaVersionSection hides the Orca version row.

The PR requires the last proven version to stay visible through a connection drop. Retain the version from the probed status for the disconnected render. Keep the seed behavior unchanged, because a seed is intentionally not kept after a drop.

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5a08f4d2-ed01-4c3d-8198-bc347b56cde6
Commits

Reviewing files that changed from the base of the PR and between 9a02a1c and 88dfaf5.

Files selected for processing: 6

  • mobile/app/h/[hostId]/edit.tsx
  • mobile/src/host-descriptors/host-manual-update-steps.ts
  • mobile/src/host-screen/identity/HostOrcaVersionSection.tsx
  • mobile/src/i18n/locales/en.json
  • mobile/src/transport/connection/host-status-gates.ts
  • mobile/src/transport/hosts/host-status-reply-schema.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.

@AmoabaKelvin
AmoabaKelvin force-pushed the feat/mobile-host-orca-version branch from 88dfaf5 to c8b5601 Compare November 19, 2026 22:09
@AmoabaKelvin
AmoabaKelvin merged commit db4c86f into main Nov 19, 2026
25 checks passed
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