Skip to content

feat(mobile): show the shared update notice for form errors from an older computer - #52368

Merged
AmoabaKelvin merged 1 commit into
mainfrom
mobile-update-notice-form-errors
Nov 29, 2026
Merged

AmoabaKelvin merged 1 commit into
mainfrom
mobile-update-notice-form-errors

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

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.

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)

@greptile-apps

greptile-apps Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5 · The PR appears safe to merge; the earlier combined-warning display issue remains non-blocking.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; the earlier combined-warning display issue remains non-blocking.

Findings

  1. P2 Combined warnings hide update action ▶

Summary

Replaces five older-computer form messages with the shared update notice.

  • Workspace forms show the shared notice when an older computer blocks a step.
  • The quick-command editor shows an update notice for prompts an older computer cannot save.
  • The bot form shows an update notice when a computer rejects a long purpose.
  • Chat forking shows the shared update toast when a connected computer is too old.
  • The shared update notice names servers and adjusts its action inside native sheets.

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

@coderabbitai

coderabbitai Bot commented Nov 29, 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

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

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

Share

Recent 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: 8a8cbc85-9d5e-4efb-9423-b92f8a8065ce
Commits

Reviewing files that changed from the base of the PR and between dbd72b8 and f1f03d6.

Files selected for processing: 2

  • mobile/src/host-update-notice/HostUpdateNotice.tsx
  • mobile/src/i18n/locales/en.json
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.

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

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: 5d5ccc6d-4ae5-4c7a-a6a4-1b4105ee8511
Commits

Reviewing files that changed from the base of the PR and between 7180610 and fd0ebd5.

Files selected for processing: 26

  • mobile/src/bots/MobileNewBotPickers.tsx
  • mobile/src/bots/MobileNewBotSheet.tsx
  • mobile/src/bots/host-bots-read.ts
  • mobile/src/bots/new-bot-computers.ts
  • mobile/src/components/bottom-drawer/bottom-drawer-modal-host-scope.ts
  • mobile/src/components/bottom-drawer/keyed-bottom-drawer.tsx
  • 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
  • mobile/src/new-workspace/creation/created-worktree-setup-review.ts
  • mobile/src/new-workspace/creation/forms/NewWorktreeFormSheet.tsx
  • mobile/src/new-workspace/creation/worktree-create-retry.ts
  • mobile/src/session/MobileSessionContentRow.tsx
  • mobile/src/terminal/quick-commands/QuickCommandEditorForm.tsx
  • mobile/src/terminal/session/creation/mobile-session-terminal-create-copy.ts
  • mobile/src/terminal/session/creation/use-mobile-session-terminal-create-actions.ts
  • mobile/src/terminal/session/input-controls/mobile-session-command-input-styles.ts

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

Comment thread mobile/src/i18n/locales/tr.json Resolved
@AmoabaKelvin
AmoabaKelvin force-pushed the mobile-update-notice-form-errors branch 2 times, most recently from e65c3d5 to f851c37 Compare November 29, 2026 08:37

@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: f2a52434-459c-496b-95a7-98cf1bf6ac14
Commits

Reviewing files that changed from the base of the PR and between e65c3d5 and f851c37.

Files selected for processing: 3

  • mobile/src/i18n/locales/ko.json
  • mobile/src/i18n/locales/tr.json
  • mobile/src/terminal/quick-commands/QuickCommandEditorForm.tsx
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.

@AmoabaKelvin
AmoabaKelvin force-pushed the mobile-update-notice-form-errors branch from f851c37 to dbd72b8 Compare November 29, 2026 18:13

/** The new workspace's warning is that its host can't run the approved setup; the session shows the update notice. */
export function createdSetupNeedsNewerHost(warning: string, t: Translate): boolean {
return warning === createdSetupHostOutdatedMessage(t)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@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: 3482cee9-c7e5-48a4-8123-7f7139b718f1
Commits

Reviewing files that changed from the base of the PR and between f851c37 and dbd72b8.

Files selected for processing: 2

  • mobile/src/host-update-notice/HostUpdateNotice.tsx
  • mobile/src/i18n/locales/en.json
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.

Comment on lines +78 to +79
if (inNativeSheet) {
return { name: computerName, action: null }

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

Suggested fix

-      action: updatesServers
+      action: updatesServers && !inNativeSheet
         ? { label: t('host.updateNotice.howToUpdate', 'How to update'), onPress: openServers }
         : null

@AmoabaKelvin
AmoabaKelvin force-pushed the mobile-update-notice-form-errors branch from dbd72b8 to f1f03d6 Compare November 29, 2026 18:24
@AmoabaKelvin
AmoabaKelvin merged commit 24beebf into main Nov 29, 2026
29 checks passed
@AmoabaKelvin
AmoabaKelvin deleted the mobile-update-notice-form-errors branch November 29, 2026 18:49
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