Skip to content

feat(mobile): show the shared update notice when an automation's computer can't check agents - #52373

Merged
AmoabaKelvin merged 1 commit into
mainfrom
mobile-update-notice-automation-verification
Nov 29, 2026
Merged

AmoabaKelvin merged 1 commit into
mainfrom
mobile-update-notice-automation-verification

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

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.

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)

@greptile-apps

greptile-apps Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5 · The PR appears safe to merge; no actionable defects were found.RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable defects were found.

Summary

The automation editor now shows the shared update notice when its computer cannot check the project's agents.

  • The automation editor points old agent checks to the shared update notice.
  • Automation notices name the selected server that needs an update.

No new actionable issues were found.

Reviews (5) · Last reviewed commit: "feat(mobile): show the update notice whe..." · Reviewed by Greptile

@AmoabaKelvin
AmoabaKelvin force-pushed the mobile-update-notice-form-errors branch from fd0ebd5 to e65c3d5 Compare November 29, 2026 08:17
@AmoabaKelvin
AmoabaKelvin force-pushed the mobile-update-notice-automation-verification branch from 8f93e98 to 9d0a5dc Compare November 29, 2026 08:18
@AmoabaKelvin
AmoabaKelvin force-pushed the mobile-update-notice-form-errors branch from e65c3d5 to f851c37 Compare November 29, 2026 08:37
@AmoabaKelvin
AmoabaKelvin force-pushed the mobile-update-notice-automation-verification branch from 9d0a5dc to ef097d9 Compare November 29, 2026 08:38
@AmoabaKelvin
AmoabaKelvin force-pushed the mobile-update-notice-form-errors branch 2 times, most recently from dbd72b8 to f1f03d6 Compare November 29, 2026 18:24
@AmoabaKelvin
AmoabaKelvin force-pushed the mobile-update-notice-automation-verification branch from ef097d9 to d11f40a Compare November 29, 2026 18:34
@AmoabaKelvin
AmoabaKelvin changed the base branch from mobile-update-notice-form-errors to main November 29, 2026 18:34
@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

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: Passed 4

Check name Status Explanation
Title check Passed 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 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 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.

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: 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: 6e9198fb-258d-4987-b064-243da79eed47
Commits

Reviewing files that changed from the base of the PR and between 4468f63 and d11f40a.

Files selected for processing: 15

  • mobile/src/automations/AutomationEditor.tsx
  • mobile/src/automations/MobileAutomationsScreen.tsx
  • mobile/src/automations/automation-error.ts
  • mobile/src/host-update-notice/HostUpdateNotice.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

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

// A failed save lands in the page's notes, which the sheet covers.
const note = error ?? agentError ?? props.saveError
// Refreshing can't help a host too old to check agents; the notice offers the update instead.
const hostOutdated = automationAgentVerificationOutdated(note ?? null, t)

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

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.

@AmoabaKelvin
AmoabaKelvin force-pushed the mobile-update-notice-automation-verification branch from d11f40a to d994623 Compare November 29, 2026 18:43
@AmoabaKelvin
AmoabaKelvin merged commit 72ecdaf into main Nov 29, 2026
29 checks passed
@AmoabaKelvin
AmoabaKelvin deleted the mobile-update-notice-automation-verification branch November 29, 2026 18:50
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