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
Copy file name to clipboardExpand all lines: skills/agent-device/references/debugging.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,8 +36,11 @@ Logging is off by default. Enable it only when you need a debugging window.
36
36
- Default app logs live under `~/.agent-device/sessions/<session>/app.log`.
37
37
-`logs clear --restart` is the fastest clean repro loop.
38
38
-`network dump [limit] [summary|headers|body|all]` parses recent HTTP(s) entries from the same session app log.
39
+
- On iOS simulators, `network dump` can recover recent app log history with `simctl log show` when the live session stream is sparse, so check the returned notes before assuming the repro window was empty.
40
+
- On iOS, `network dump` is still limited to what Unified Logging exposes for the app process. If the app does not emit request metadata there, `network dump` can legitimately return no HTTP entries even during a real repro.
39
41
- Summary output already shows timestamp, status, and duration when the log backend exposes them.
40
42
- Prefer the explicit flag form `network dump 25 --include headers|body|all` when you need more than the default summary view.
43
+
- If iOS simulator notes say app logs were recovered but none looked like HTTP traffic, treat that as an app instrumentation gap rather than a missing repro and inspect `logs path` for the non-network diagnostics that were captured.
41
44
-`logs doctor` checks backend and runtime readiness for the current session and device.
42
45
-`logs mark "before tap"` inserts a timestamped marker into the app log.
43
46
- Android `network dump` surfaces timestamps from logcat-style prefixes and can backfill status and request/response duration from adjacent GIBSDK packet lines, so check it before dumping raw log windows.
@@ -84,6 +87,7 @@ agent-device alert accept
84
87
85
88
-`alert` is only supported on iOS simulators.
86
89
-`alert accept` and `alert dismiss` retry internally for a short window, so you usually do not need manual sleeps.
90
+
- If a permission sheet is visible in `snapshot` or `screenshot` but `alert accept` says no alert was found, treat it as normal tappable UI for that run: take a scoped `snapshot -i -s "<visible label>"` and `press @ref` instead of looping on `alert`.
87
91
- iOS 16+ "Allow Paste" prompts are suppressed under XCUITest. Use `xcrun simctl pbcopy booted` when you need to seed simulator clipboard content directly.
Copy file name to clipboardExpand all lines: skills/agent-device/references/exploration.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,6 +90,7 @@ agent-device close
90
90
- On iOS and Android, default snapshot output is visible-first. Off-screen interactive content is surfaced as discovery hints (including inline scroll/list hidden-content hints when known), not shown as directly tappable refs.
91
91
- Treat large text-surface lines in `snapshot -i` as discovery output. If a node shows preview or truncation metadata, use `get text @ref` only after you have already decided that `snapshot -i` is needed for that surface.
92
92
- Use `snapshot -i -s "Camera"` or `snapshot -i -s @e3` when you want a smaller, scoped result.
93
+
- If `snapshot -i -s "<query>"` returns 0 nodes, the scope did not match the current screen. Widen the query or re-check the screen state instead of assuming the command silently fell back to the full tree.
93
94
- If `snapshot -i` returns 0 nodes but the screen is visibly populated, treat `screenshot` as visual truth, wait briefly, then re-run `snapshot -i` once before escalating.
94
95
- If `snapshot -i -d <n>` says the interactive output is empty at that depth, retry without `-d` instead of taking more shallow snapshots.
'2026-04-02 08:14:44.371 E New Expensify Dev[32193:8c7e18d] Airship config warning. See https://docs.airship.com/platform/mobile/setup/sdk/ios/#url-allow-list for more information.\n',
138
+
'utf8',
139
+
);
140
+
141
+
constdump=readRecentNetworkTraffic(logPath,{
142
+
backend: 'ios-simulator',
143
+
maxEntries: 5,
144
+
include: 'summary',
145
+
maxPayloadChars: 2048,
146
+
maxScanLines: 100,
147
+
});
148
+
149
+
assert.equal(dump.entries.length,0);
150
+
});
151
+
132
152
test('readRecentNetworkTraffic returns empty result when log file is missing',()=>{
0 commit comments