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 for form errors from an older computer - #52368
When a computer's Orca is too old for something you try in a form on the phone, the phone now shows the same "Update Orca on " notice it uses elsewhere, instead of a red sentence that says it differently each time.
Files
Added
Deleted
Net
Test
0
0
0
0
Prod
26
$\color{#1a7f37}{\Huge{\mathbf{+}}}$314
$\color{#cf222e}{\Huge{\mathbf{−}}}$138
$\color{#1a7f37}{\Huge{\mathbf{+}}}$176
What Changed
Before, these five places each had their own wording: choosing a branch for a new workspace, running approved setup after a workspace is created, saving a long quick-command prompt, giving a new bot a purpose over 200 characters, and forking a chat. Each said something like "Update Orca on the host to …". The wording varied, it often said "host", and it never offered a way to update.
Now each one shows the shared update notice from the earlier notice PR:
Branch choice, created-workspace setup, quick command, new bot purpose: a row titled "Update Orca on ", with a short line saying what needs the newer version.
Fork: the shared toast line, "Needs a newer Orca on ", with its Update or How to update action.
How the notice decides what to name and offer:
Servers: a server the computer reaches is named, with no phone action, because its computer updates it. HostUpdateNotice gains a serverName prop for this. Branch choice only names runtime servers. An SSH repo runs on the paired computer's Orca, so that computer is named.
Native sheets: inside a native bottom sheet, the notice names the computer with no action. A route pushed from a native sheet opens under it, and closing the sheet would lose what you typed. Every KeyedBottomDrawer now provides InsideBottomDrawerContext. In the page, the shell opens Edit computer above the sheet, so the action stays.
New bot purpose: the notice only shows while the computer that refused is still selected.
Translated matches: predicates that match a refusal by its translated text take t from the component, instead of reading the language during render.
Three locale keys whose old sentences are gone were removed: forkUnavailable, olderHostPromptTooLong and purposeTooLongForHost.
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 form errors that still used their own sentence.
Matching the existing refusal text on the phone keeps each call site's gating exactly as it was, and needs no host change.
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, outside and inside a sheet, and for both a computer and a server.
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 each notice reads the computer's name once when it shows. The predicates are a few string comparisons, and only run when a form already has an error.
Risk
Level: Low
What could go wrong:
Missed match: if a refusal's text doesn't match, the phone falls back to the old red sentence, so nothing is hidden.
Sheet rows: notices in native sheets no longer open Edit computer. You update from the computer's row instead.
A plain revert undoes all of 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)
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.
No actionable comments were generated in the recent review.
Walkthrough
Mobile workflows now display host-update notices for selected bot-purpose, worktree setup, branch-selection, and quick-command compatibility limits. Drawer-aware notice targeting was added. Terminal chat-fork handling now reports unsupported host capability separately, and related translations were updated.
Merge Risk: Low · up to f1f03
Fork-refusal toasts show the update message but not the promised Update or How to update action. This is a small, deferred gap with a safe fallback, so the change is mergeable with owner awareness.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: mobile form errors from an older computer now show the shared update notice. It matches the changeset, which replaces five per-flow error texts with HostUpdateNotice a…
Description check
The description follows the repository template. It has ELI5, What Changed, Why, Linked Issue (a follow-up to #51710 with no issue), Visual Proof with before and after images, Testing, Performance, Ri…
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.
Full details: Title check
Explanation
The title names the main change: mobile form errors from an older computer now show the shared update notice. It matches the changeset, which replaces five per-flow error texts with HostUpdateNotice and adds the related helpers and locale changes. The title uses the conventional feat(mobile) prefix and is specific enough for a teammate scanning history.
Full details: Description check
Explanation
The description follows the repository template. It has ELI5, What Changed, Why, Linked Issue (a follow-up to #51710 with no issue), Visual Proof with before and after images, Testing, Performance, Risk with level, Review, Notes, and Checklist sections. It explains the mechanism, the server and native-sheet behavior, and the revert path. Gaps: the AI Disclosure section is left blank, which is acceptable only if the author is a StablyAI team member. The Linked Issue section cites no issue, while the template asks for one for outside contributors. The Testing section adds no tests and explains why. The Performance section is filled in.
Resolution
Optional: confirm the AI Disclosure section is intentionally omitted (required for non-StablyAI contributors), and confirm the Linked Issue requirement does not apply to this author.
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.
Files skipped from review as they are similar to previous changes: 1
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; 6 remain after this review.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Files skipped from review as they are similar to previous changes: 2
mobile/src/i18n/locales/ko.json
mobile/src/i18n/locales/tr.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Combined warnings hide update action
createdSetupNeedsNewerHost misses the setup refusal when workspace creation also returned another warning. Both creation paths join the warning and setup notice into one string, so this equality check fails. Users see the old sentence without the shared update action.
Keep the setup refusal separate from other warnings so the shared notice can appear without hiding them.
Files skipped from review as they are similar to previous changes: 1
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; 6 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Keep the server action out of native sheets.
Inside a server workspace, the server branch returns the "How to update" action before the native-sheet check runs. The quick-command prompt notice in QuickCommandEditorForm is one caller that can reach this path. It renders inside the session sheet, under the server context, with no computer flag. For a managed-over-SSH server with the runtime capability, updatesServers is true. Tapping the action then opens Edit computer beneath the sheet. Closing the sheet discards the editor draft. Native sheets outside a server workspace already suppress the action, so this change limits the fix to server notices.
Apply the native-sheet check to the server action, and keep the server name:
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 a computer's Orca is too old for something you try in a form on the phone, the phone now shows the same "Update Orca on " notice it uses elsewhere, instead of a red sentence that says it differently each time.
What Changed
Before, these five places each had their own wording: choosing a branch for a new workspace, running approved setup after a workspace is created, saving a long quick-command prompt, giving a new bot a purpose over 200 characters, and forking a chat. Each said something like "Update Orca on the host to …". The wording varied, it often said "host", and it never offered a way to update.
Now each one shows the shared update notice from the earlier notice PR:
How the notice decides what to name and offer:
HostUpdateNoticegains aserverNameprop for this. Branch choice only names runtime servers. An SSH repo runs on the paired computer's Orca, so that computer is named.KeyedBottomDrawernow providesInsideBottomDrawerContext. In the page, the shell opens Edit computer above the sheet, so the action stays.tfrom the component, instead of reading the language during render.Three locale keys whose old sentences are gone were removed:
forkUnavailable,olderHostPromptTooLongandpurposeTooLongForHost.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 form errors that still used their own sentence.
Matching the existing refusal text on the phone keeps each call site's gating exactly as it was, and needs no host change.
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 each notice reads the computer's name once when it shows. The predicates are a few string comparisons, and only run when a form already has an error.
Risk
Level: Low
What could go wrong:
A plain revert undoes all of 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)