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): show the shared update notice when an automation's computer can't check agents - #52373
When an automation's computer is too old to check which agents a project has, the editor now shows the shared "Update Orca on " notice instead of a red sentence and a Refresh button that can't help.
Files
Added
Deleted
Net
Test
0
0
0
0
Prod
15
$\color{#1a7f37}{\Huge{\mathbf{+}}}$121
$\color{#cf222e}{\Huge{\mathbf{−}}}$73
$\color{#1a7f37}{\Huge{\mathbf{+}}}$48
What Changed
Before, the automation editor said "This host cannot verify agents for this project. Update the host and try again." and offered Refresh, which kept failing until the host was updated.
Now that refusal shows the shared update notice row: "Update Orca on ", with "Checking this project's agents needs a newer version." Refresh is hidden for that refusal only. Other errors keep the note and Refresh as before.
When Automations has a server selected, the screen sets a new HostUpdateServerContext, so every update notice on the screen names that server, with no action because its computer updates it. That covers this one and the two notices already on the screen.
The editor is a native sheet, so on native the row names the computer and offers no action (added in #52368). The predicate automationAgentVerificationOutdated recognizes the phone's own translated refusal.
Why
Kelvin approved one notice pattern for "your computer's Orca is too old": always "Update Orca on ", with its action. These were the remaining places that still used their own sentence.
Linked Issue
Follow-up to the shared update notice (#51710). No issue.
Visual Proof
Captured with a temporary capture route (not committed) that renders each site's before and after markup on an iOS 27 simulator. Before is main's text in the same elements; after is the real HostUpdateNotice.
Before
After
Light
Dark
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
How it was checked:
Rendered each notice on the iOS 27 simulator in light and dark.
pnpm check:changed passes: format, lint, typecheck, mobile localization and ratchets.
No new tests: this is UI wiring, and the repo rules keep that out of unit tests.
Performance
None, because the check is one string comparison on an error the editor already holds, and the notice reads the computer's name once when it shows.
Risk
Level: Low
What could go wrong: if the refusal text doesn't match, the phone shows the old note and Refresh, as before. A plain revert undoes this.
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
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)
Review was skipped as selected files did not have any reviewable changes.
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: 044ffeed-54c4-4da4-b230-da2da4d00a39
Commits
Reviewing files that changed from the base of the PR and between d11f40a and d994623.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
Walkthrough
The mobile automation editor now detects agent-verification errors that match the unavailable-message translation. When the message matches, it shows a host update notice instead of the error note and hides the refresh control. The mobile automation screen provides the selected server label to the notice-targeting context. Ten locale files add a message that agent verification requires a newer Orca version.
Merge Risk: Low · previous review d11f4
In non-English languages, the host update notice may not appear for one editor error and the English refusal text is shown instead. This is a narrow cosmetic and functional gap and does not block merging.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: the mobile automation editor now shows the shared update notice when an automation's computer cannot check agents. It matches the raw summary and objectives, which des…
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 repository template and covers the required sections. It explains the user-facing change: the automation editor now shows the shared "Update Orca on " notice inst…
Full details: Title check
Explanation
The title names the main change: the mobile automation editor now shows the shared update notice when an automation's computer cannot check agents. It matches the raw summary and objectives, which describe the same notice replacement and the new server context.
Full details: Description check
Explanation
The description follows the repository template and covers the required sections. It explains the user-facing change: the automation editor now shows the shared "Update Orca on <computer>" notice instead of the red refusal sentence and the ineffective Refresh button. It describes the mechanism (the new HostUpdateServerContext, the automationAgentVerificationOutdated predicate, and the hidden Refresh for that refusal only). It gives a Low risk level with a revert path, and it includes before/after visuals for light and dark mode. The Testing section lists manual checks and a pnpm check:changed run, and it explains why no tests were added. The Performance section has a completed sentence. The Linked Issue section is weaker: it references a follow-up to #51710 and says 'No issue', but the template says an issue should always be linked for outside contributors. The author may be a maintainer, which the template allows, so this is a gap to note rather than a failure. The ELI5 and Why sections are present but brief. Overall the description is mostly complete.
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.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Translate the catalog error before it reaches the editor's note.
When the automation read fails with the host refusal, AutomationEditorSheet.tsx passes the raw text through describeLoadError. That helper returns the English text unchanged, because it is under 160 characters and matches no transport or raw-text pattern. Under Portuguese, automationAgentVerificationOutdated(note, t) then compares English text against the Portuguese refusal, so it returns false. The editor shows the English refusal as a plain note, and the update row does not appear.
Translate the catalog error with automationErrorMessage(catalog.error, t) before the comparison. The catalog read path already does this at use-automation-catalog.ts:207. The Refresh row is unchanged, because it depends only on error and agentError.
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 an automation's computer is too old to check which agents a project has, the editor now shows the shared "Update Orca on " notice instead of a red sentence and a Refresh button that can't help.
What Changed
Before, the automation editor said "This host cannot verify agents for this project. Update the host and try again." and offered Refresh, which kept failing until the host was updated.
Now that refusal shows the shared update notice row: "Update Orca on ", with "Checking this project's agents needs a newer version." Refresh is hidden for that refusal only. Other errors keep the note and Refresh as before.
When Automations has a server selected, the screen sets a new
HostUpdateServerContext, so every update notice on the screen names that server, with no action because its computer updates it. That covers this one and the two notices already on the screen.The editor is a native sheet, so on native the row names the computer and offers no action (added in #52368). The predicate
automationAgentVerificationOutdatedrecognizes the phone's own translated refusal.Why
Kelvin approved one notice pattern for "your computer's Orca is too old": always "Update Orca on ", with its action. These were the remaining places that still used their own sentence.
Linked Issue
Follow-up to the shared update notice (#51710). No issue.
Visual Proof
Captured with a temporary capture route (not committed) that renders each site's before and after markup on an iOS 27 simulator. Before is main's text in the same elements; after is the real
HostUpdateNotice.Testing
How it was checked:
pnpm check:changedpasses: format, lint, typecheck, mobile localization and ratchets.Performance
None, because the check is one string comparison on an error the editor already holds, and the notice reads the computer's name once when it shows.
Risk
Level: Low
What could go wrong: if the refusal text doesn't match, the phone shows the old note and Refresh, as before. A plain revert undoes this.
Review
Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)