You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(mobile): one "Update Orca on <computer>" notice with a way to update - #51710
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.
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)
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.
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: 4
Check name
Status
Explanation
Title check
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description check
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.
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.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
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.
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.
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.
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.
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.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
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.
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.
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.
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.
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.
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.
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.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
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.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.
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.
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
What Changed
HostUpdateNoticereplaces them:MobileStateView), a row in a list, or a toast with an action for one-off refusals (HostUpdateToast).Why
/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.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.
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
/h/[hostId]take the route's computer, and server workspaces take the server's own name.AI Disclosure
Review
Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Not moved here, on purpose:
src/sharedthat desktop also shows.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)