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
Commit d9abfdd
Browse filesBrowse the repository at this point in the historyBrowse files
feat(mobile): mobile:install --session installs into an agent-device session
For devices opened elsewhere (a device pool, cloud, or remote host), install
the cached dev client for this checkout's fingerprint through the caller's
agent-device session, from the caller's workspace (agent-device scopes
session ownership to it). It never builds; without a shared build it names
the next step. --abi picks the Android build, --metro opens it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copy file name to clipboardExpand all lines: apps/mobile/README.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,11 @@ log file it prints (`T3_NATIVE_CLIENT_VERBOSE=1` streams it instead). Builds are
41
41
your task-cache login (`bash infra/task-cache/install.sh`) can write. `T3_NATIVE_CLIENT_CACHE=read`
42
42
skips the upload and `off` skips the shared cache. Physical iPhones still use `vp run ios:dev`.
43
43
44
+
`--session <name>` installs into an agent-device session opened elsewhere, such as a device pool
45
+
or a cloud simulator, instead of a local device: `vp run mobile:install android --session pool-1
46
+
--metro http://<this-machine>:8081`. It uses only the cached build (x86_64 by default; `--abi`
47
+
for ARM) and fails with the next step when no machine has built this fingerprint yet.
48
+
44
49
For a read-only decision, run `node ../../scripts/mobile-native-client.ts check <ios|android>
45
50
[device]`: exit 0 means compatible, 2 means an install is needed, and 1 means an operational error.
46
51
An externally installed client is unverified until the helper installs it once.
message: `No shared build of ${key} yet. Run \`vp run mobile:install ${platform}\` once on a machine with a local ${platform==="ios" ? "simulator" : "emulator"} of this checkout; it builds the client and shares it.`,
745
+
});
741
746
constlog=yield*BuildLog;
742
747
yield*Console.error(
743
748
`No cached client for ${key}. Building it once for every machine (5-15 min)${log ? `. Log: ${log}` : ""}`,
`Installed into session ${session} in ${seconds}s (${artifact.source}).${metro ? "" : " Open it with Metro: --metro http://<this-machine>:8081."}`,
0 commit comments