Agents had to chain boot, Metro, rebuild and whoami themselves, and after
one step failed they kept reporting the phone app as unbuildable. The new
command picks a device without disturbing other tasks (several candidates
make it ask instead of guessing), boots it, reuses or starts this
worktree's Metro (on a free port when 8081 belongs to another task),
installs the matching native app, launches it, waits for the bundle,
brings it back to the foreground when the system pushed it behind after
boot, and checks identity. It reads the Metro log sim-start records and
keeps its own output in the system temp directory, never in the worktree.
It can be rerun after the device idles off, and always ends with one JSON
line giving a code and the next step.
The root AGENTS.md module table now routes "seeing changes on the phone"
to the Mobile docs; the command and the rule that only a fresh run's code
counts as evidence live in docs/dev-rules/mobile-development.md.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
sim:start now writes Metro output to apps/mobile/logs/metro-<port>.log, and
mobile:sim:logcheck reports what happened after the latest entry bundle: ERROR
and failed bundles fail, unlisted warnings must be reported, and an unknown
state is not a pass. Add the check to the simulator verification rules.
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
* fix(mobile): keep simulator tests on Cindy's simulator while it is available
An idle Cindy simulator made whoami and rebuild silently pick a system device,
so a task could run on the wrong backend without any signal. Stay on Cindy until
the plugin is unavailable or a --udid names another device, report the reason
and reusable devices, and flag the system simulator while Cindy's is available.
Stop reporting native-missing when no exact target was probed, and align the
test workflow: occupied Cindy devices are not a reason to fall back, parallel
devices stay in the selected backend, and handoffs name the backend and model.
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
* fix(mobile): fail closed when Cindy's simulator cannot be listed
A failed device listing was read as an empty one: whoami reported cindy-idle,
while rebuild and open silently moved on to a system device. Keep the failure
and stop without choosing a backend unless an exact UDID may live elsewhere.
Treat the Cindy devices directory given as an absolute path as Cindy's
simulator so it gets the same notices as CINDY_MOBILE_SIMULATOR=cindy.
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
---------
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Move the generic rules that only lived in a personal simulator skill into
the simulator guide: what a test request authorizes and excludes, how the
target worktree and device are chosen, how to use Cindy's simulator plugin,
and what a delivery must report. Personal setup now keeps only private
preferences such as the usual device and simulator backend.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
The simulator guide claimed the iOS debug app only ever loads Metro on 8081,
so agents concluded two worktrees could not run on two simulators at once.
React Native first reads the per-device RCT_jsLocation default and only
falls back to 8081 when that Metro does not answer.
Document how the app picks Metro, the two silent fallbacks, the parallel
device recipe (rebuild --udid, start --port, point the device, verify with
whoami --udid --port and the build label, clean up), and what is still
unverified on Android. Align the dev rules and sim-start comments.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
- Move collection, caches and rebuild cadence out of the macOS menu bar panel into
quota-overview/service.ts; the panel holds it, phone requests lease it, so any
platform answers the widgets whether or not a panel runs.
- Keep an unreachable computer's accounts with their last reading for up to 3 days,
marked with their age and never recommended; retry failed remote reads after 1 min.
- Store each computer's widget state in the App Group; widgets pick a data source
(automatic = the computer that answered last, or a specific computer).
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
This reverts commit 56e2fdf2aa, reversing
changes made to 206b24ccc8.
Conflict resolution:
- apps/mobile/src/session/BotGroupChatScreen.tsx: restore the pre-#7123
timeline and offline note, and keep 5fd7c38ec1 (pending sends with
retry/cancel, delayed offline notice, queue-aware composer) ported onto
the pre-#7123 structure without AnimatedContentHeight or
useMessageEntrances. Pending rows keep the stable `local:<clientId>` key
for CompanionEntering so a confirmed send does not animate twice.
- docs/design-rules/design-inventory.md: regenerated from sources.
Signed-off-by: MagicLizi <jiali@magiclizi.com>