Skip to content

feat(mobile): one "Update Orca on <computer>" notice with a way to update - #51710

Merged
AmoabaKelvin merged 2 commits into
mainfrom
mobile-host-update-notice
Nov 28, 2026
Merged

AmoabaKelvin merged 2 commits into
mainfrom
mobile-host-update-notice

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

ELI5

When the computer's Orca is too old for something on the phone, the phone now says it the same way everywhere: "Update Orca on ", what needs it in a few words, and one button that takes you to the update.

Files Added Deleted Net
Test 0 0 0 0
Prod 35 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​469 $\color{#cf222e}{\Huge{\mathbf{−}}}$​305 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​164

What Changed

  • Before: each feature wrote its own sentence ("Update Orca on this host to use Source Control on mobile.", "Desktop update required for quick commands", "Update Orca on your computer to delete this workspace from your phone."…). They named the computer six different ways, and none could start the update.
  • After: HostUpdateNotice replaces them:
    • Three shapes: a whole screen (MobileStateView), a row in a list, or a toast with an action for one-off refusals (HostUpdateToast).
    • Title: always "Update Orca on ". Inside a server workspace it names that server.
    • Action: Update opens Edit computer's update sheet when the computer takes updates from a phone. How to update opens Edit computer, which then shows the steps; a desktop too old for phone updates gets "On the computer, open Orca and check for updates." A server has no action, since its computer updates it.
    • Handoff: in host-served pages the action goes through the route handoff, so it opens the native Edit computer screen.
  • Moved to it:
    • Screens: Source Control, Review, Agent history, Tasks, Jira, Home → Automations.
    • Rows: the Automations list and bot automation editor.
    • Toasts: deleting a workspace (was an OK dialog), accepting a certificate warning, quick commands, and a server that's too old to open.
    • Same title and action, the tray's own shape: the chat MCP tray. Home → Bots for one computer keeps its empty state with the shared feature line.

Why

  • One component decides the name, the feature line and the one way forward, so a feature gate can't drift into its own wording again.
  • Navigating to Edit computer (/h/<id>/edit?update=orca) instead of opening a sheet in place: host-served pages and native screens can both reach it, and an older phone app ignores the query and still lands on Edit computer.
  • A server gets no phone action: the phone reaches it through the computer, which updates its servers from Settings. Updating them from the phone (including SSH-managed orcad) is a follow-up.

Linked Issue

No GitHub issue; part of the phone parity work. Builds on #51707 and #51708 (merged).

Visual Proof

The notice's shapes, from a temporary capture route on the iOS 27 simulator (not committed). Its toast shot used a placeholder host id, so it says "Host" instead of the computer's name.

Screen (can update) Screen (light) Screen (how to update) Row Toast
(screenshot removed: contained real product data) (screenshot removed: contained real product data) (screenshot removed: contained real product data) (screenshot removed: contained real product data) (screenshot removed: contained real product data)

Before: per-feature text such as "Update Orca on this host to use Source Control on mobile." under a "Source Control Unavailable" title, with no action.

Testing

  • 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

  • iOS simulator: screen, row and toast in light and dark; Update and How to update decided by the computer's gates.

  • Edit computer from a notice: opens the sheet when an update is offered and the computer takes it from a phone; otherwise it shows the steps line.

  • pnpm -C mobile typecheck, mobile localization verify, and changed-file lint pass.

  • No automated test: this is presentation and navigation.

Performance

None, because the notice does no RPC. It reads the computer's name from the host catalog once per mount, or not at all when the caller passes the name it already shows. The toast reads nothing until a refusal shows it.

Risk

Level: Medium

  • Riskiest part: each migrated gate now renders through a shared component, so a wrong host id or gates context would show the wrong computer's name or action. Screens under /h/[hostId] take the route's computer, and server workspaces take the server's own name.
  • Mixed versions: an older phone app never sees these strings. A newer page on an older phone app opens Edit computer without the sheet.
  • Back out: a plain revert.

AI Disclosure

Review

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

Not moved here, on purpose:

  • Separate remedies: the whole-host protocol wall (it blocks Edit computer too, so it keeps its own remedy) and the page-route screen (the phone or the computer may be behind).
  • Desktop-shared strings: copy in src/shared that desktop also shows.
  • Inline form errors and chat notices: branch reuse, prompt length, fork, setup review, and structured-chat refusals.
  • Other features: dictation, agent-launch lines, bot link/tools/webhook/group copy, PDF and media errors, and notification settings.

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)

@AmoabaKelvin
AmoabaKelvin force-pushed the mobile-host-orca-update branch from 9230cce to c484216 Compare November 28, 2026 10:44
@AmoabaKelvin
AmoabaKelvin force-pushed the mobile-host-update-notice branch from 5e07f3f to 3a7b830 Compare November 28, 2026 10:45
@AmoabaKelvin
AmoabaKelvin changed the base branch from mobile-host-orca-update to main November 28, 2026 10:47
@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review
Walkthrough

The pull request adds mobile controls for Orca and agent CLI updates, including per-host update state, progress, restart-impact details, and failure handling. It adds shared host-update notices for unsupported mobile features. Shared agent CLI helpers support mobile and desktop update flows. Remote-server updates use separate download and installation stages.

Merge Risk: Low · up to 2ef71

This adds phone-side Orca and agent CLI update controls and a shared "update Orca" notice. The remaining issues are minor edge cases, such as stale or missing update prompts and untranslated notice text, that do not block the main update flows. They are worth fixing but are low risk to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: a shared mobile host-update notice that replaces feature-specific 'Update Orca' messages with one 'Update Orca on ' notice and an update action. The changese…
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 template closely: ELI5, What Changed (before/after and mechanism), Why (with alternatives such as navigating to Edit computer instead of an in-place sheet), Visual Proof wi…
Full details: Title check

Explanation

The title names the main change: a shared mobile host-update notice that replaces feature-specific 'Update Orca' messages with one 'Update Orca on <computer>' notice and an update action. The changeset matches this, with HostUpdateNotice, HostUpdateToast, and the migrated screens. The 'feat(mobile):' prefix follows conventional commits and is acceptable.

Full details: Description check

Explanation

The description follows the template closely: ELI5, What Changed (before/after and mechanism), Why (with alternatives such as navigating to Edit computer instead of an in-place sheet), Visual Proof with images and a before state, Testing with manual iOS simulator checks, Performance with a justified 'None', Risk with level and backout plan, and Notes. Checklist items are partly checked. The sections 'Linked Issue' and 'AI Disclosure' are the weak points. The Linked Issue section states there is no GitHub issue and gives related PRs, which the template says should always exist for outside contributors. The author is likely a maintainer, so this may be acceptable, but it is not clearly covered. The AI Disclosure section is empty; the template says to ignore it for internal team members, and the author's status is not stated. The automated-test checkbox is unchecked while the text explains why no test was added, which is acceptable. The 'Every added test fails' item is unchecked, which is consistent with no tests being added.

  • 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

@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.

Actionable comments posted: 9

Minor comments: 1

mobile/src/session/use-mobile-session-panel-route-actions.tsx: 1

145-145: Minor · Functional Correctness · Poor tradeoff

Pass the update action to the quick-commands refusal toast.

When quickCommandsSupported is false, the branch shows only hostUpdate.message. The hostUpdate.action value from useHostUpdateToast() is computed but never used. The refusal therefore has no update path, although the shared notice contract makes one-off refusals action toasts with Update.

The session showToast accepts only (message, durationMs). It cannot carry an action. Fixing this needs the session toast to accept an optional action and render it, or a visible-gated toast state in the session content that renders HostUpdateToast. Keep the supported and checking-capabilities branches unchanged.

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: 613cb405-8225-443d-81c0-cd88ef920a53
Commits

Reviewing files that changed from the base of the PR and between 39bf434 and 3a7b830.

Files selected for processing: 71

  • mobile/app/h/[hostId]/edit.tsx
  • mobile/app/h/[hostId]/index.tsx
  • mobile/src/agent-history/MobileAgentSessionHistoryPanel.tsx
  • mobile/src/automations/AutomationControls.tsx
  • mobile/src/automations/AutomationPageBotEditor.tsx
  • mobile/src/automations/automation-error.ts
  • mobile/src/browser/pane-view/MobileBrowserLoadFailure.tsx
  • mobile/src/home/tabs/MobileHomeAutomationsTab.tsx
  • mobile/src/home/tabs/MobileHomeBotsTab.tsx
  • mobile/src/host-catalog/host-removal-lifecycle.ts
  • mobile/src/host-catalog/use-host-profile.ts
  • mobile/src/host-descriptors/host-orca-update-support.ts
  • mobile/src/host-route-notice.ts
  • mobile/src/host-screen/host-screen-overlays.tsx
  • mobile/src/host-screen/identity/HostOrcaVersionSection.tsx
  • mobile/src/host-screen/identity/updates/HostAgentCliUpdateFailureSheet.tsx
  • mobile/src/host-screen/identity/updates/HostAgentCliUpdateRow.tsx
  • mobile/src/host-screen/identity/updates/HostOrcaUpdateSheet.tsx
  • mobile/src/host-screen/identity/updates/HostUpdatesSection.tsx
  • mobile/src/host-screen/identity/updates/agent-cli-update-operations.ts
  • mobile/src/host-screen/identity/updates/host-agent-cli-updates.ts
  • mobile/src/host-screen/identity/updates/host-orca-update-operations.ts
  • mobile/src/host-screen/identity/updates/host-orca-update-snapshot.ts
  • mobile/src/host-screen/identity/updates/host-orca-update.ts
  • mobile/src/host-screen/workspace-actions/use-worktree-delete-failure.ts
  • mobile/src/host-update-notice/HostUpdateNotice.tsx
  • mobile/src/i18n/en-runtime-required.json
  • 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
  • mobile/src/session/native-chat/mcp/MobileNativeChatMcpPanel.tsx
  • mobile/src/session/use-mobile-session-panel-route-actions.tsx
  • mobile/src/settings/settings-screen-frame.tsx
  • mobile/src/source-control/MobileSourceControlPanel.tsx
  • mobile/src/source-control/changes/use-mobile-source-control-loaders.ts
  • mobile/src/source-control/review/diff-loading/mobile-diff-review-snapshot-loader.ts
  • mobile/src/source-control/review/diff-screen/MobileDiffReviewBody.tsx
  • mobile/src/source-control/review/diff-state/mobile-diff-review-screen-model.ts
  • mobile/src/tasks/providers/JiraConnectPrompt.tsx
  • mobile/src/tasks/task-list/mobile-tasks-list-state.tsx
  • src/main/agent-cli-update/agent-cli-update-service.ts
  • src/main/agent-cli-update/agent-cli-updater-output.test.ts
  • src/main/agent-cli-update/agent-cli-updater-output.ts
  • src/main/runtime/rpc/server/runtime-rpc-mobile-host-update-methods.ts
  • src/main/runtime/rpc/server/runtime-rpc-mobile-method-routing.ts
  • src/main/runtime/rpc/server/runtime-rpc-mobile-orca-account-methods.ts
  • src/renderer/src/components/agent-cli-update/AgentCliUpdateCard.tsx
  • src/renderer/src/components/agent-cli-update/agent-cli-product-name.ts
  • src/renderer/src/components/settings/runtime-environments/updates/RemoteServerUpdateStatus.tsx
  • src/renderer/src/components/status-bar/updates/AgentCliUpdateList.tsx
  • src/renderer/src/components/status-bar/updates/AgentCliUpdateStatusSegment.tsx
  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/store/slices/runtime-host-updates/agent-cli-updates.ts
  • src/shared/agent-launch/installation/agent-cli-product-names.ts
  • src/shared/agent-launch/installation/agent-cli-update-runs.ts
  • src/shared/agent-launch/installation/agent-cli-update.ts
  • src/shared/remote-runtime/host-catalog/remote-server-update.ts
  • src/shared/remote-runtime/host-updates/remote-server-install-failure-probe.ts
  • src/shared/remote-runtime/host-updates/remote-server-restart-wait.ts
  • src/shared/remote-runtime/host-updates/remote-server-update-coordinator.ts
  • src/shared/remote-runtime/host-updates/remote-server-update-entry.ts
  • src/shared/remote-runtime/host-updates/remote-server-update-stages.ts
  • src/shared/remote-runtime/protocol/host-runtime-capabilities.ts
Files with no reviewable changes: 1

  • mobile/src/host-screen/identity/HostOrcaVersionSection.tsx

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

// A late answer still decides the row, unless a newer run has replaced it.
void late.then((answer) => {
if (entry.state.runs[agent] === settled) {
settleRun(hostId, entry, agent, answer)

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.

Minor · Functional Correctness · Quick win

Reconcile a late request failure as an unanswered run.

If the helper times out first, a later request rejection reaches this callback as ok: false. This path does not add the agent to entry.unanswered.

If the host completed the update, a later check returns no update. checkEntry then keeps the failed run because the agent is not in unanswered. The row remains failed and has no runnable update.

Track late transport failures separately from host-reported failures. Reconcile those unanswered runs through the same cleanup path. Keep the existing identity guard so an old completion cannot replace a newer run.

timeoutMs: STATUS_READ_TIMEOUT_MS
})
)
write(hostId, (update) => ({ ...update, impact: { state: 'ready', impact } }), owner)

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.

Minor · Functional Correctness · Quick win

Publish impact results only from the latest refresh for a host.

Each refreshHostOrcaRestartImpact call uses the same per-host owner. The owner check in write cannot tell two refreshes apart. Two refreshes can overlap. The download path starts one after the entry becomes downloaded. The sheet starts another when it opens on a downloaded entry, and nothing prevents that while the first is pending.

An older read can then publish after a newer one starts. If it finishes first, its impact list is shown while the newer read still reports loading. The line 266 comment says Restart must wait for the latest read, so this order can enable Restart early. If it finishes last, it replaces the newer result. The same stale write can occur on the unknown path at line 277.

Ensure that only the most recently started refresh for a host can write ready or unknown. Discard completions from earlier calls. Keep the owner check so host removal still stops late writes.

const orcaDue = latest !== null && latest !== installed
const closeSheet = () => {
setSheetOpen(false)
settleHostOrcaUpdate(hostId)

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.

Minor · Functional Correctness · Quick win

Let the completion effect settle the update after showing the toast.

When the update finishes with the sheet open, the toast effect skips the announcement because sheetOpen is true. Closing the sheet clears the completed entry here. The next render has no updatedTo, so the success toast never appears.

Remove this settlement call. Let the effect at Lines 96-101 show the toast and then settle the update. Closing an unfinished update will still preserve its progress.

"loaders": {
"loadFailed": "소스 제어를 로드할 수 없습니다.",
"updateDesktop": "모바일에서 소스 제어를 사용하려면 이 호스트의 Orca를 업데이트하세요."
"loadFailed": "소스 제어를 로드할 수 없습니다."

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.

Minor · Functional Correctness · Quick win

Add Korean values for the shared host.updateNotice keys in ko.json.

This PR removes the Korean update instructions from several screens. The source-control instruction is loaders.updateDesktop. The shared HostUpdateNotice and its toast now read their text from host.updateNotice.*. Those keys exist only in mobile/src/i18n/locales/en.json, and ko.json does not define them. A Korean user therefore sees the English defaults ("Update Orca on …", "Needs a newer Orca on …", "Update", "How to update") where the Korean instruction used to appear.

Add Korean values to ko.json for the host.updateNotice title, toast, update, and how-to-update keys. Also confirm that the feature text each replacing screen passes to HostUpdateNotice has a Korean value.

Keys to translate

  • host.updateNotice.title
  • host.updateNotice.toast
  • host.updateNotice.update
  • host.updateNotice.howToUpdate

}
onProgress(next)
if (offered.state === 'available') {
await transport.download(entry.environmentId)

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.

Minor · Functional Correctness · Quick win

Resumed download can report a version other than the one the user was offered.

When the caller resumes from an available snapshot, this call skips the check and downloads with no version. If another check moves the host to a newer version between the caller's read and this call, the host downloads that newer version. The poll at lines 127–139 accepts any downloaded snapshot, and line 146 returns the downloaded version. The entry then reports a version the user did not select.

Require the stage to keep the offered version. Either fail the stage when the downloaded version differs from offered.version, or surface the new version for the user to confirm before any restart. The download request cannot name a version, so this comparison runs after the download starts.

@AmoabaKelvin
AmoabaKelvin force-pushed the mobile-host-update-notice branch from 3a7b830 to 70cd26c Compare November 28, 2026 11:04

@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.

Actionable comments posted: 1

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: 512595ce-10c3-4664-8942-ef7dd525bd7c
Commits

Reviewing files that changed from the base of the PR and between 3a7b830 and 70cd26c.

Files selected for processing: 3

  • mobile/src/host-screen/identity/updates/host-agent-cli-updates.ts
  • src/renderer/src/store/slices/runtime-host-updates/agent-cli-updates.ts
  • src/shared/agent-launch/installation/agent-cli-update-runs.ts

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

write(hostId, entry, (host) => {
const runs = { ...host.runs }
delete runs[agent]
const latest = host.updates.find((u) => u.agent === agent)?.latestVersion ?? ''

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.

Minor · Functional Correctness · Quick win

Record the run's target version when the run starts.

settleRun reads the version from host.updates when it writes the success result. A check that completes during the run replaces host.updates. If that check no longer lists the agent, done[agent] is stored as ''. The row then renders "Updated" instead of "Updated to <version>". If the check still lists a newer version, the row shows that newer version instead of the version that was installed.

Capture the target version in runHostAgentCliUpdate before the run is queued, and use that value when the success result is recorded. This keeps the recorded version tied to the run that was started.

@AmoabaKelvin
AmoabaKelvin force-pushed the mobile-host-update-notice branch from 70cd26c to b72548c Compare November 28, 2026 12:17

@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.

Actionable comments posted: 5

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: 152b63f2-a02a-4fb0-978e-a681bc0b828d
Commits

Reviewing files that changed from the base of the PR and between 70cd26c and b72548c.

Files selected for processing: 19

  • mobile/src/host-catalog/host-removal-lifecycle.ts
  • mobile/src/host-screen/identity/updates/HostUpdatesSection.tsx
  • mobile/src/host-screen/identity/updates/host-agent-cli-updates.ts
  • mobile/src/host-screen/identity/updates/host-orca-update.ts
  • mobile/src/i18n/en-runtime-required.json
  • 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
  • mobile/src/session/native-chat/mcp/MobileNativeChatMcpPanel.tsx
  • mobile/src/tasks/providers/JiraConnectPrompt.tsx
  • src/renderer/src/i18n/en-runtime-required.json
Files skipped from review as they are similar to previous changes: 12

  • 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
  • src/renderer/src/i18n/en-runtime-required.json

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

Comment on lines +255 to +256
if (downloaded?.phase !== 'downloaded') {
return

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.

Minor · Functional Correctness · Quick win

Handle current as a completed download outcome.

If the desktop installs the offered version while the phone's sheet is open, the preflight can see the computer is already current. The shared stage publishes current, but the sheet has no branch for that phase and shows Download again.

Handle current by closing the sheet or showing that the computer is up to date. Keep the restart confirmation for downloaded, and do not announce a phone-driven install when another client performed it.

Comment on lines +309 to +313
if (updated?.phase === 'updated') {
const client = connections.getAllClients().find((item) => item.hostId === hostId)?.client
if (client) {
void readHostOrcaUpdate(client, hostId)
}

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.

Minor · Data Integrity & Integration · Quick win

Keep the verified version when the follow-up read fails.

The restart stage can verify 2.0 and show “Updated to 2.0,” but the settings row still gets its installed version and offer from the previous snapshot. If the follow-up status read times out, settling the entry leaves that old snapshot in place. The row can show 1.0 and offer 2.0 again.

Retain the verified installed version independently of the status refresh. Invalidate the pre-restart offer when the restart succeeds, and let a fresh snapshot supply any new offer.

const installed = orca.snapshot?.appVersion ?? desktopAppVersion
const offered = offeredOrcaVersion(orca.snapshot)
// A sheet already under way keeps its row, even once the computer stops offering the version.
const latest = orca.entry && orca.entry.phase !== 'updated' ? orca.entry.targetVersion : offered

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.

Minor · Functional Correctness · Quick win

Do not let a failed update hide a newer offer.

After a phone update to 2.0 fails, the computer can reach 2.0 on its own and later offer 3.0. The failed entry still supplies latest = 2.0. Because that matches the installed version, Edit computer hides the Update action and a notice cannot open the sheet.

Use the failed entry for recovery only while its target is still outstanding. When a fresh status shows the computer reached that target, use the new offer and preserve recovery for computers still on the old version.

Comment on lines +234 to +240
footer={
anyDone
? t(
'host.updates.doneNote',
'Updated rows leave the list next time you open this screen.'
)
: (updateSteps ?? undefined)

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.

Minor · Functional Correctness · Quick win

Keep manual Orca instructions visible after a CLI update.

If the user opens Edit computer from a “How to update” notice and completes a CLI update, anyDone replaces the Orca instructions with the CLI completion note. The user loses the instructions that the notice directed them to.

Render both messages when both apply, or put the Orca instructions next to the Orca row.

Comment on lines +27 to +29
if (unavailableReason) {
return (
<HostUpdateNotice

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.

Minor · Functional Correctness · Quick win

Keep a recheck action when Jira is unavailable.

When unavailableReason is set, JiraConnectPrompt returns the shared notice without onCheckAgain. The notice then offers only Edit computer navigation, or no action in a server workspace. Neither action re-reads Jira status. After the user updates Orca on the computer, this screen cannot clear the unavailable state from its own controls. Restore a recheck path for this state. A successful status read clears unavailableReason, so the recheck is the path that exits the notice.

HostUpdateNotice has no prop for a custom action. Restoring the recheck requires a deliberate extension of that component's API, such as an optional action prop. Choose that extension rather than bypassing the shared notice.

@AmoabaKelvin
AmoabaKelvin force-pushed the mobile-host-update-notice branch from 714e326 to 2ef71b3 Compare November 28, 2026 12:36

@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.

Actionable comments posted: 1

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: 952288f1-0d01-4544-b274-029cfdce345c
Commits

Reviewing files that changed from the base of the PR and between b72548c and 714e326.

Files selected for processing: 4

  • mobile/src/automations/AutomationPageBotEditor.tsx
  • mobile/src/host-screen/host-screen-overlays.tsx
  • mobile/src/host-update-notice/HostUpdateNotice.tsx
  • mobile/src/tasks/task-list/mobile-tasks-list-state.tsx

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

Comment on lines +46 to +47
deleteHostId && isRemoteExecutionHostId(deleteHostId)
? controller.state.hostLabelById.get(deleteHostId)

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.

Minor · Functional Correctness · Heavy lift

Name the computer when it refuses a server workspace delete.

A delete from a server workspace is sent through the paired computer. An outdated computer can refuse it at its mobile allowlist before the request reaches the server. That refusal has the same code and message as a server refusal, so hostUpdate is set. The overlay then passes the server name to HostUpdateToast, and useHostUpdateToast removes the update action whenever a server name is present. The user sees "Needs a newer Orca on " with no action, but the update belongs to the computer. Before this change, the same refusal named the computer and offered the update.

The toast must not name the server unless the server refused the request. A computer refusal must keep the computer's name and its update action. The current error does not identify the refusing runtime, so the correction also needs a way to determine that origin.

@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.

Actionable comments posted: 1

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: 9b771f89-16a3-450c-916d-59110ebba3be
Commits

Reviewing files that changed from the base of the PR and between 714e326 and 2ef71b3.

Files selected for processing: 1

  • mobile/src/host-screen/identity/updates/host-agent-cli-updates.ts

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

// An update that landed after this check was sent is newer than the check's answer.
const updates = agentCliUpdatesCheck
.interpret(reply)
.filter((update) => (entry.updatedAt.get(update.agent) ?? 0) <= sentAt)

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.

Minor · Functional Correctness · Quick win

Use causal ordering to reject stale check results.

If a check starts and an update succeeds within the same millisecond, updatedAt equals sentAt. This filter then accepts the check's older update row and offers the completed update again.

Use a revision counter captured when the check starts and advanced when an update succeeds. Reject rows whose completion revision is newer than the captured revision. Changing <= to < alone would also reject valid checks started after completion within that millisecond.

@AmoabaKelvin
AmoabaKelvin force-pushed the mobile-host-update-notice branch from 2ef71b3 to 8c85f3c Compare November 28, 2026 12:46
…omputer is too old for

Each phone feature said in its own words that the host needed a newer
Orca, naming it six different ways, and none could start the update.
HostUpdateNotice gives them one title naming the computer, the feature in
a few words, and one action: Update opens Edit computer's update sheet
when the computer takes updates from a phone, How to update shows its
steps otherwise. It comes as a whole screen, a row, or a toast for a
one-off refusal. A server reached through the computer is named too, with
no phone action, since the computer updates it.
…pdate

A workspace on a server the computer reaches now names that server in the
update toast, with no action, and a computer that updates by hand keeps
its How to update label there. The bot automation editor keeps Refresh
under the notice, and Tasks names the computer it checked.
@AmoabaKelvin
AmoabaKelvin force-pushed the mobile-host-update-notice branch from 8c85f3c to 0b321a7 Compare November 28, 2026 12:53
@AmoabaKelvin
AmoabaKelvin merged commit af07771 into main Nov 28, 2026
28 of 29 checks passed
onegaop pushed a commit to onegaop/orca that referenced this pull request Nov 28, 2026
移植 stablyai/orca stablyai#51707 (c784ff4), stablyai#51708 (af49771) 和 stablyai#51710 (af07771)。适配 fork 的手机图标和 Jira 提示。
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