* Bring mobile setup trust to approve-a-repo-once
Mobile now counts any earlier approval as repo trust (one shared predicate
with desktop), offers Always trust / Run once / Don't run, stores nothing
for Run once, reads the setup of the ref a create checks out, and pins a
Run once create to the shown content's hash. Automations need Always trust.
Same-id repos on several hosts keep per-version approvals.
* Pin mobile Run once only when the host read the created branch
repo.hooks reports createSourceRead when it honored createSource. Without
it (older host, or an unreadable ref) the phone sends no hash, as before,
so a checkout read can't make the host skip setup silently.
* Recover skipped mobile setup and ask about branch-only setup
Run once always pins the shown setup. When the host skips setup because the
created branch differs (worktree.create or agent.launch), the phone shows the
branch's setup; Run once or Always trust runs it via worktree.runApprovedSetup.
Setup approval now applies whenever setup isn't skipped, reads the PR/MR start
point once, pins runtime-host automation setup, and carries an archive Run once
into Delete Anyway. Drops the createSourceRead reply flag.
* Pin empty mobile setup and keep skipped setup reportable
An untrusted create whose branch shows no shared setup pins empty content,
as desktop does, so setup the branch adds is re-asked. Pinned creates use
agent.launch only on hosts that report skipped setup there, else
worktree.create. Approved setup that fails to spawn reports spawn_failed.
The sheet creates from the start point it previewed, Tasks keeps Create
disabled until a review opens the workspace, and runtime automation pins
read the automation's base branch.
* Report approved setup that fails to start and finish Tasks reviews
Approved setup or default tabs that can't start now fail worktree.runApprovedSetup,
so every client's existing failure handling shows it. An empty setup pin keeps
agent.launch on older hosts. Tasks and the sheet open a reviewed workspace with a
setup-failed notice when approval can't run, and a cleared review no longer
leaves Create disabled.
* Pin empty setup for runtime-host automations
A runtime host can't trust the repo, so saving setup=run where the base branch
has no shared setup pins empty content, as desktop does. Setup the branch adds
later is skipped for review instead of running unprompted.
* Offer only per-version approval on mobile for a repo on several hosts
As desktop: repo-wide trust is ignored for a repo id on several hosts, so the
drawer hides Always trust and its scope line, and Run hooks is primary.
* Pin empty automation setup everywhere and report failed default tabs
Phone automation saves for an untrusted repo pin the shown setup, including
empty content, on paired desktops too; only repo trust leaves them unpinned.
An approved default tab that fails to start now fails the approved-setup run.
A double tap on a Tasks setup review approves once.
* Follow main's settings module move in the approved-setup test
* Keep setup approvals tied to what runs on mobile and in approved default tabs
Re-decided automation saves name the setup decision so the host replaces the saved pin. Work-item creates check setup trust for the repo they land in. Approved default-tab commands start as new tabs when the layout already holds the command-less ones. Tasks setup reviews stay busy and ignore other choices until the approval settles.
* Check a work item's own repo setup and skip repeat approved runs
A create landing in another repo inherits that repo's setup policy and is always trust-checked unless skipped. The Tasks trust drawer acts once per prompt even before its busy render. A base-only automation edit re-reviews setup. A repeated approval on the same worktree and content doesn't open its command tabs again.
* Send the user's setup choice on cross-repo creates and drop the approval memory
A work-item create in another repo now sends the form's own setup decision and only widens the trust check: it runs for that repo unless setup is explicitly skipped. The per-worktree approved-run memory is removed, and the mobile lockfile change is reverted to main's.
* Set the automation setup pin on every preparation path
* feat(mobile): add a stepped slider control
* feat(mobile): terminal font, size, line spacing and weight settings
Terminal settings get a Font section with a live preview: a font picker
(system fonts plus JetBrains Mono, Fira Code and Geist Mono shipped as
variable woff2), a point-size slider replacing the old percentage presets,
line spacing and weight. Pinch now snaps to whole points. Tablets start at
15 pt, Normal spacing and Regular weight.
The size keeps its storage key as points over 13; the font, spacing and
weight live in a new negotiated page storage key. Both terminal hosts read
them at start and on a new set-font-style message; a style change keeps
the grid and lets the cell-box refit resize the PTY.
* test: remove low-value push and relay coverage
* test: delete orphaned fixture and closure support
* test: trim runner and mobile recording matrices
---------
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
The close actions swallowed refusals and transport errors, so a tap on
close did nothing when the host refused (for example while the desktop
window is still loading). Show a short toast instead, with a specific
message for runtime_unavailable.
* build(mobile): upgrade to Expo SDK 58 and React Native 0.88
Expo 58 drops Zod from @expo/cli, which clears the last Zod 3 advisory
(GHSA-mrhx-c7xc-m3w5) in mobile along with its local patch and override.
- Expo 55 -> 58, React Native 0.83 -> 0.88, React 19.3, gesture-handler 3,
webview 14, reanimated 4.7, worklets 0.13 (SDK 58 bundled versions,
pinned below today's batch to respect minimumReleaseAge).
- Port the react-native and react-native-webview patches unchanged; drop
expo-constants, expo-notifications, @expo/cli, expo-router, zod and
query-string patches plus the zod/query-string/xcode>uuid overrides,
which upstream fixed or no longer need.
- iOS minimum rises to 16.4 (Expo 58 / RN 0.88 requirement).
- Migrate to RN 0.88 strict types: instance ref types, NamedStyles,
AppState.currentState, list header/footer nulls.
- Replace removed runtime APIs: InteractionManager -> idle callback with a
macrotask fallback; StyleSheet.absoluteFillObject -> absoluteFill;
FileHandle.readBytes -> readBytesSync (it became async).
- Resolve react-native/asset-registry for shared assets in Metro and alias
the old registry path for react-native-svg in the desktop mobile-web bundle.
- Reduce the iOS scene plugin to the reconnect override; Expo 58's template
now ships the scene delegate itself.
* fix(mobile): bridge react-native-svg web imports and libsodium runtime for RN 0.88
- Share react-native-svg web shims between the mobile-web build and its render
checks: map the old asset-registry path to react-native-web's registry and stub
the Android-only touch-sound TurboModule.
- Patch react-native-libsodium 1.7.0 to read the JSI runtime from the bridge proxy;
RN 0.88 removed RCTCxxBridge.runtime.
* fix(mobile): use Expo 58's legacy promise resolver for audio permissions
* fix(mobile): skip null handles in the RPC recording timer shims for RN 0.88 types
* style(mobile): format MobilePRSidebar after rebase
* fix(mobile): name RN 0.88 text input refs for declarations; allow queued back in stack render check
- Type text input refs with an exported interface so declaration emit can name hook results
(RN 0.88 aliases TextInputInstance to an unexported class).
- Expo Router 58 drains back() after a commit; check the interrupted push's exit from the
frame it starts, bounded to three frames of lag.
* chore(mobile): justify the text input handle interface for React Doctor
* chore(mobile): use a nameable intersection alias for text input refs
* fix(mobile): use sync expo-file-system writes, copies and moves on Expo 58
Expo 58 made File.write/copy/move and FileHandle.writeBytes return promises.
Our callers never awaited them, so failures escaped their try/catch and the
store's tmp-then-move and PDF writes could race their close or rename.
* build(mobile): raise the page bundle budget to 10 MiB for Expo 58
Expo 58 adds about 310 KB to the page: expo-router (+258 KB, now carrying
React Navigation, net about +110 KB) and Reanimated 4.7 (+152 KB). Main had
85 KB of headroom left. 10 MiB still stays within the 10 MiB per-asset contract.
* fix(mobile): drop the window-metrics seed RN 0.88 removed from Android
RN 0.88 no longer holds window metrics: DeviceInfoModule reads the activity's
WindowMetrics on demand and setWindowDisplayMetrics is gone, so MainActivity
no longer compiled. Layout scale still comes from the screen metrics we reseed.
---------
Co-authored-by: Kelvin Amoaba <97001695+AmoabaKelvin@users.noreply.github.com>
* fix(mobile): show Loading for a new Tasks search instead of the previous search's rows
A new filter or search with no kept rows kept the same provider's rows on screen until the host's read landed, so a slow host looked like search did nothing. Only a re-read of the same list now stands on its rows; desktop already shows its load skeleton here.
* test(mobile): re-record Tasks list goldens for the new-filter spinner
* fix(mobile): hold Tasks paging while a new filter loads
* test(mobile): type the new-search spinner test's GitHub row fully
* refactor(mobile): group host catalog credentials descriptors and connection history
* refactor(mobile): import RPC sender and result types from defining owners
* refactor(mobile): colocate push delivery with registration operations
* refactor(mobile): point push recordings at delivery owner
* feat(mobile): create a worktree per repository from an empty folder workspace
A folder workspace with no attached worktrees lists one card per
repository in its project group, as desktop's empty state does. Tapping
one creates a worktree named after the folder, attached to it, in place;
a taken name or a setup choice opens the new-workspace composer with the
repo, the name and the folder parent filled in. Shown only when the host
creating it supports exact-name creation.
* chore(mobile): merge the folder repo read's execution-host imports
* fix(mobile): folder creates keep their repository until the folder shows them
Every create from a folder's empty state, direct or through the
composer, holds its repository from admission until the folder lists
the new worktree, so a lost reply, a remount or a reopened form can't
start a second one. The composer and toasts belong to the folder
screen, stay on the folder's host, and say nothing once it's left. A
relayed server's repository read holds no desktop event stream, and a
failed read can be retried.
* test(mobile): a folder create resent after a lost reply carries the same mutation id
* fix(mobile): folder creates keep their name, and a left or replaced form shows and holds nothing
* fix(mobile): pause folder rows under the create form; a lost folder create is checked, never resent as another
* fix(mobile): a folder card never resends a form's create, and one form owns the folder screen at a time
* fix(mobile): a folder setup choice resends only its own unconfirmed create, and the newest form silences older ones
* test(mobile): declare the submit hook's folder launch in its recording fixture
* fix(mobile): a create refused on a resend after a lost reply tries no other name and stays unconfirmed
* fix(mobile): a replayed refusal after an agent-launch fallback stops the retry, and the composer says it may have been created
* test(mobile): type the replayed refusal reply in the retry test
* ci: retrigger checks
* fix(mobile): localize the folder and uncertain-create messages in the workspace composer
iOS emptied Library/Caches under storage pressure, and Android's cacheDir is
cleared by Clear cache, cleaner apps and low storage. Each purge cost a full
foreground download of the page build on the next open. Builds now live in
Application Support (excluded from backup) on iOS and filesDir on Android
(kept off device transfers), and the old cache folder moves over once.
* perf(mobile): open Home with last-known workspaces and counts
* fix(mobile): keep disconnected desktops on Home and judge agents by the client's connect time
* fix(mobile): store the seeded Home counts before removing the old snapshot
* fix(mobile): floor router reads after failures, catch up reads that span a stream reopen, seed the wide host list from Home
* fix(mobile): keep the old Home snapshot until the store can take it, and never re-date stored totals
* perf(mobile): key Home's counts in the host list module so the page boot never loads Home's code
* test(mobile): type the Home catalog adapter's modules with type imports
* perf(mobile): read Home's stored rows in one batch beside the host list, and keep mark-read a delta read
* perf(mobile): paint Home's desktop rows without waiting for the stored counts
* perf(mobile): restore Home's stored rows after the desktop list paints, from its host ids
* perf(mobile): read Home's counts on the connected edge itself, not a render later
* feat(mobile): keep commit, PR and review drafts across kills
* refactor(mobile): build commit, PR and review drafts on the shared draft fields, and clear only the text that was sent
* fix(mobile): keep a toggle made during Write with AI, the edit note while its sheet closes, and a newer PR edit after an earlier save
* test(mobile): wait for the saved review note row instead of sleeping
* perf(mobile): keep a hash of the PR text an edit was typed against, not a second copy
* fix(mobile): floor event-driven reads after failures and catch up reads that span a stream reopen
* test(mobile): pin the event router's read floor after a refused read in a recording
* feat(mobile): keep Tasks and new-workspace drafts across kills
Task comments (per item and project row), the New issue title and body,
and the New workspace note now live in device-store draft rows. They come
back after the form closes or the app is killed, and only into an empty
field. A comment's setter stays bound to its item, so a send that settles
after the user moved on clears the right row.
* fix(mobile): rebuild comment sends when the draft's item changes
* fix(mobile): key the workspace note by host and keep cleared fields cleared
* fix(mobile): clear only the note a finished create sent
* fix(mobile): count clearing an empty draft field as the user's choice
* perf(mobile): cap field drafts, read sheet drafts on open, retry a failed read once
* fix(mobile): retry a failed draft read after a pause and keep New issue text typed during a create
* fix(mobile): save draft text again once a failed store read can be retried
* fix(mobile): remove a stored draft when an unread field is cleared
* perf(github): use the desktop's PR fallback rule on the phone and forward refreshes
* fix(github): keep a merged fallback PR while the phone has no head
* fix(dictation): stop a phone's cloud dictation at the 10-minute limit with a notice
* test(dictation): pin the cap flag on every phone chunk reply
* perf(dictation): skip decoding phone audio the host will drop past the cloud cap
* perf(mobile): answer a page's ready that arrived before its bridge host
A page's ready can reach the shell before the screen has built its bridge
host (the host waits on the client and the host profile read). It used to
be dropped, so init waited for the page's next retry, up to 2 s later.
Keep the latest ready per session and answer it once the host exists.
* perf(mobile): keep one prewarmed page document while Home is shown
While native Home is on screen, boot one page document for the most
recently connected host with a cached build, parked invisibly in the
window. Opening a page from that build adopts it instead of building a
WebView, which removes the WebView start and script parse from the tap.
The spare is dropped when Home is left without a claim (2 s grace), on
background, memory pressure, its own failure and before the cache deletes
its files. It is never kept beside a shown page, and only phones with
more than 3 GiB of RAM (4 GB phones) get one. A parked page is told to
stop asking for init; the adopting view answers the ready it sent.
Builds on Jinwoo's spare pool and replay work in #32203 and #32204.
Co-authored-by: Jinwoo-H <73622457+Jinwoo-H@users.noreply.github.com>
* fix(mobile): unregister the shell's memory callbacks from the context that registered them
---------
Co-authored-by: Jinwoo-H <73622457+Jinwoo-H@users.noreply.github.com>