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: AGENTS.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -159,11 +159,14 @@ Command-only flags (like `find --first`) that do not flow to the platform layer
159
159
## Logs Contract
160
160
- Logs backend/source of truth is `src/daemon/app-log.ts`.
161
161
-`session.ts` should orchestrate only (start/stop/path/doctor/mark), not duplicate backend logic.
162
+
- App logs are distinct from runner/platform output. Keep app/device log capture in `app.log`; Apple runner and `xcodebuild` subprocess output belongs in the session-scoped `runner.log`.
162
163
- Preserve external grep/tail workflow in docs/skills.
163
164
164
165
## Diagnostics & Errors
165
166
- Diagnostics source of truth: `src/utils/diagnostics.ts`
- Request diagnostics belong in `sessions/<effective-session>/requests/<request-id>.ndjson` once the effective session is resolved. The top-level daemon log is for daemon lifecycle/startup and pre-session failures.
169
+
- Session artifact paths are centralized in `src/daemon/session-store.ts`; do not hand-build session log paths in handlers.
167
170
- Do not add ad-hoc stderr/file logging where diagnostics helpers apply.
168
171
- Normalize user-facing failures via `src/utils/errors.ts` (`normalizeError`).
0 commit comments