Repository navigation
Desktop harness: homeMode snapshot, fault suite, Sentry breadcrumb heartbeat - #9217
Conversation
…artbeat. Expose redesigned Home stage mode in the automation bridge, add tier-2 home-stage and fault-suite chat-5xx flows, and replace Session Heartbeat Sentry issues with breadcrumbs (#9191, #9216). Verification: xcrun swift build -c debug --package-path desktop/macos; xcrun swift test --filter SentryHeartbeatTelemetryTests; python3 desktop/macos/scripts/desktop-flow-lint.py Co-authored-by: Cursor <[email protected]>
There was a problem hiding this comment.
5 issues found across 13 files
Confidence score: 2/5
- In
desktop/macos/scripts/desktop-core-harness.sh, the--fault-suitereadiness check can attach to any bridge returning/health { ok: true }, so fault scenarios may run against the wrong app and produce misleading pass/fail results—tighten the probe to verify it connected to the intended desktop instance before merging. - In
desktop/macos/scripts/desktop-core-harness.sh,stop_fault_stacktears down the app bundle but can leave the background./run.shwrapper alive, which can holdrun-shlocks and block later desktop launches in CI or local runs—ensure the wrapper process is explicitly terminated during cleanup. desktop/macos/Desktop/Sources/SentryHeartbeatTelemetry.swiftis placed directly underDesktop/Sources/, which is likely to fail the source-root layout check and stop CI—move it into an allowed feature folder (for exampleTelemetry/orSentry/) before merge.- In
desktop/macos/Desktop/Sources/MainWindow/DesktopHomeView.swift, the new Dashboard snapshot can still emithomeMode: nilon first report, which blurs Dashboard vs legacy state and can skew downstream telemetry/routing behavior—default missing prior mode tohubto keep bridge semantics consistent.
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 17d8376494
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…eaks - Move SentryHeartbeatTelemetry.swift from Sources root into Telemetry/ to satisfy the sources-root layout check (baseline 77 -> 78 root files) - stop_fault_stack now kills+waits FAULT_RUN_PID before pkill, preventing a leaked run.sh wrapper from holding the run-sh lock after --fault-suite - start_fault_stack readiness now verifies /health bundleIdentifier matches com.omi.omi-fault, preventing fault flows from running against a stale dev stack already bound to $PORT - DesktopHomeView: fallback homeMode to "hub" when on Dashboard with no prior mode, so the automation snapshot contract is stable before reportHomeAutomationMode - Rephrase changelog entry to user-facing sentence without trailing punctuation - Add e2e flow coverage entries for OmiApp.swift and Telemetry/ heartbeat file
Monitor summary — PR #9217All actionable review feedback (Cubic + Codex) has been addressed in commit
Verification:
No new actionable review threads appeared after the fix commit. All 8 original review threads are now resolved. |
…addition The onAppear block now calls reportHomeAutomationMode() between syncCaptureState() and the refreshHomeStatusData Task, which the source-structure assertion must reflect.
Monitor summary — PR #9217 (follow-up)Continuation from context
Final CI status: all checks pass — Desktop Swift Build & Tests, Lint & Format Check, Desktop Backend Contracts, cubic reviewer. All 8 review threads resolved. No new review threads after the final push. |
Resolve harness-smoke.yaml covers conflict by keeping PR telemetry coverage (OmiApp, SentryHeartbeatTelemetry) and main ViewExporter injection coverage. Co-authored-by: Cursor <[email protected]>
Summary
homeMode(hub/chat/connect) in the automation bridge snapshot and add tier-2home-stage.yamlflow with stage transition assertions.--fault-suitetodesktop-core-harness.sh(startsomi-fault-inject+omi-faultbundle) andchat-fault-5xx.yamlto verify chat surfaces an error on backend HTTP 5xx.SentrySDK.capture(message: "Session Heartbeat")with breadcrumb telemetry plus a Swift regression guard.Closes #9191
Closes #9216
Test plan
xcrun swift build -c debug --package-path desktop/macos/Desktopxcrun swift test --package-path desktop/macos/Desktop --filter SentryHeartbeatTelemetryTestspython3 desktop/macos/scripts/desktop-flow-lint.py./desktop/macos/scripts/desktop-core-harness.sh --tier 2 --bundle omi-core-e2e --port <PORT>(includeshome-stage.yaml)./desktop/macos/scripts/desktop-core-harness.sh --fault-suite --port <PORT>(macOS; launchesomi-faultbundle)Made with Cursor