Repository navigation
[2175 by GPT-5.6 Sol] Fix macOS Intel cold-confirmation inspection failure in native desktop lifecycle - #2176
Conversation
…ection failu Implemented by ProPR AI using gpt-5.6-sol model. Implementation completed successfully.
|
/ultrafix goal=9 max=2 |
|
🔄 Ultrafix loop started (goal: 9/10, max cycles: 2) First action:
|
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-5.6-solOverall EvaluationThe PR introduces the intended readiness handshake, delays the native-smoke acknowledgement timer, and replaces fragile DOM polling with renderer-generated presentation evidence. However, a navigation race can carry readiness from an outgoing document into the newly loaded renderer, so the PR needs a minor synchronization fix before merge. ✅ Correct timer boundary — Native-smoke delivery remains queued until readiness is recorded, so the 15-second acknowledgement deadline normally begins only after subscription. ✅ Stronger presentation proof — Removing the main-process DOM polling avoids teardown races while retaining acknowledgement fencing to the committed confirmation editor. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F1: 🔴 Readiness can survive document replacement
SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Exercise gating through IPCThe modified IPC lifecycle test constructs ScoreThe implementation is focused and well tested, but the document-identity race affects the synchronization guarantee at the heart of the PR. The fix should be localized; current checks have no reported failures, though several remain pending. Score: 6/10 🤖 Review Details
🤖 Review by ProPR |
|
/fix F1 Address the navigation/document-identity race with focused regression coverage. Preserve the confirmation-editor acknowledgement fence, existing acknowledgement deadline, and Linux/macOS behavior. Keep this correction localized; optional cleanup is not requested. Target only the desktop epic, and do not merge or deploy. |
|
✅ Applied the requested follow-up changes in commit dec9290
Summary of ChangesImplemented F1 only.
Validation:
Changed: deep-link-delivery.ts, main.ts, and focused tests. No preview was created because this lifecycle correction has no visual change. No commit, merge, or deployment performed. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Implemented F1 only. - Readiness is now bound to the invoking current main frame. - Frames active at `didStartLoading` become stale and cannot authorize the replacement document. - Delivery requires readiness from the current document. - Added regression coverage for delayed outgoing-frame readiness. - Acknowledgement fence/deadline and platform-specific behavior remain unchanged. Validation: - Focused tests: 30 passed - Full desktop suite: 624 passed, 26 skipped - Desktop TypeScript check: passed - `git diff --check`: passed Changed: [deep-link-delivery.ts](/home/node/workspace/apps/desktop/src/deep-link-delivery.ts), [main.ts](/home/node/workspace/apps/desktop/src/main.ts), and focused tests. No preview was created because this lifecycle correction has no visual change. No commit, merge, or deployment performed. PR: #2176 Comment by: @integry (ID: 5572571570) Model: gpt-5.6-sol
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-5.6-solOverall EvaluationThis PR correctly adds a renderer-consumer handshake for native-smoke deep-link delivery while retaining the acknowledgement and confirmation-presentation fence. It is ready to merge within scope once the pending checks, particularly packaged Darwin x64 validation, complete successfully. ✅ Deadline starts at readiness — ✅ Navigation identity is fenced — Loading invalidates the outgoing frame, and readiness requires ✅ Diagnostics remain secret-free — The new evidence records only a fixed Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe implementation is focused, well tested, and satisfies the lifecycle objective without a verified regression. No current-head check has failed, though several platform and full-suite checks remain pending. Score: 9/10 🤖 Review Details
🤖 Review by ProPR |
|
Root native CI evidence on dec9290 contradicts merge readiness: both Darwin ARM64 job 101792043671 and Linux ARM64 job 101792043814, workflow 34137483072, now fail FIRST_INITIAL_EVIDENCE / IDENTITY / EVIDENCE_DEADLINE, with no consumer_ready milestone. Both macOS targets passed on previous 7e9d4d2. Please investigate the new frame fencing on real Electron semantics: didStartLoading permanently adds webContents.mainFrame to staleRendererFrames, and rendererConsumerReady rejects that object forever. The current regression models navigation by swapping fake frame objects, but that assumption must be verified against actual Electron frame-wrapper reuse and initial-load ordering. Fix the readiness deadlock with document/navigation lifecycle evidence, retaining rejection of stale outgoing readiness and the presentation acknowledgement fence. Do not simply remove the gate, widen timeouts, or weaken native acceptance. Add a real Electron or representative lifecycle regression. Linux x64 separately failed the known proc-stat ESRCH test race, handled by #2178; do not overlap that file correction. Target only the desktop epic, no publication or deployment. |
|
✅ Applied the requested follow-up changes in commit 35c4bdf Summary of ChangesImplemented the desktop readiness deadlock fix.
Validation:
No proc-stat files, native acceptance criteria, publication, or deployment code were changed. No preview was created because the change is not visually perceptible. Changes remain uncommitted as requested. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Implemented the desktop readiness deadlock fix. - Confirmed Electron reuses `WebFrameMain` across navigation while updating its render-frame identity. [Electron source](https://github.com/electron/electron/blob/main/shell/browser/api/electron_api_web_frame_main.cc) - Readiness is now fenced by `processId + frameToken`, not wrapper identity. - Invalidation now uses cross-document `did-start-navigation`, ignoring same-document navigation. [Electron navigation lifecycle](https://www.electronjs.org/docs/latest/api/web-contents#navigation-events) - Stale outgoing readiness remains rejected; incoming document readiness succeeds. - Presentation acknowledgement fence and deadlines remain unchanged. - Added representative wrapper-reuse and initial-load regressions in [deep-link-delivery.test.ts](/tmp/git-processor/worktrees/integry/propr/pr-2176-followup-2026-09-07T15-27-47/apps/desktop/src/deep-link-delivery.test.ts:289). Validation: - Full desktop suite: 625 passed, 26 skipped, 0 failed. - Focused lifecycle tests: 31 passed. - Desktop TypeScript check: passed. - `git diff --check`: passed. No proc-stat files, native acceptance criteria, publication, or deployment code were changed. No preview was created because the change is not visually perceptible. Changes remain uncommitted as requested. PR: #2176 Comment by: @integry (ID: 5572795942) Model: gpt-5.6-sol
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
|
/merge Merge the desktop epic base into this PR, not main. Epic head 8f7e79a includes the independently reviewed, merged #2179 ESRCH test-helper fix. Root full desktop tests on 35c4bdf reproduced that exact ESRCH read race; do not reimplement the fix here. Root focused lifecycle/IPC tests passed 31/31. The other local full-suite failure was a missing maker-deb dependency in the reused local test environment, not an established code defect. Preserve the 35c4bdf readiness fix and all current epic changes. Do not merge this PR into the epic or main, publish, or deploy. |
🔍 AI Code Review — codex:gpt-5.6-solOverall EvaluationThe PR introduces a renderer-readiness handshake, document-scoped delivery fencing, and clearer native-smoke diagnostics. It needs a small but required correction before merge because the new navigation listener consumes Electron’s event arguments incorrectly. ✅ Acknowledgement budget preserved — ✅ Presentation fence retained — Connect acknowledgements remain tied to the renderer’s committed confirmation-editor presentation, while the racing main-process DOM inspection is removed. ✅ Focused lifecycle coverage — Tests exercise delayed readiness, reused frame wrappers, initial navigation, IPC integration, and failure classification. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F2: 🔴 Navigation details read from wrong argument
SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Bound stale identity retention
ScoreThe coordinator design and focused tests are strong, but the incorrect Electron event wiring prevents the navigation fence from operating as intended. Current-head checks are also still pending. Score: 6/10 🤖 Review Details
🤖 Review by ProPR |
|
🔀 Auto-merged No conflicts were found — the merge was verified by an AI agent. 🤖 Verification Details
System-triggered merge conflict resolution |
…to 2175/gpt-5.6-sol-fix-macos-intel-cold-conf-20260907-1439-49s
|
New concrete CI failure on 35c4bdf needs a real Electron reproduction, not another fake-only readiness change. Workflow 34139654321: Linux x64 job 101798804386 and ARM64 101798804363 both log desktop.ipc.failed for desktop:deep-link-consumer-ready (IPC_OPERATION_FAILED), then packaged smoke times out after 30 seconds. macOS ARM64 job 101798804383 still fails FIRST_INITIAL_EVIDENCE / IDENTITY / EVIDENCE_DEADLINE. Investigate which readiness predicate rejects the actual incoming frame, including initial navigation identity timing and actual frame getter semantics. Add bounded secret-free diagnostic evidence or a real Electron regression, preserve stale-outgoing rejection and presentation acknowledgement; do not widen deadlines. Review F2 appears contradicted by the installed/pinned Electron 44.0.0 declarations: electron.d.ts:17029 defines the FIRST argument as details: Event, and the second argument is the deprecated URL string. Current TypeScript validation passes. Do not blindly apply (_event, details); reconcile against exact Electron 44 runtime/docs. Address the actual readiness IPC failure above. Optional S1 cleanup is not requested. The queued epic sync supplies the separate ESRCH fix; no duplicate implementation. Epic-only, no publication/deployment. |
|
✅ Applied the requested follow-up changes in commit ad4b70e Summary of ChangesImplemented the readiness fix for PR #2176. Root cause: Electron 44 retains the same Changes:
Validation:
No visual preview was created because this lifecycle correction has no visible UI effect. Packaged native smoke remains for CI verification. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Implemented the readiness fix for PR #2176. Root cause: Electron 44 retains the same `WebFrameMain`, `processId`, and `frameToken` across the initial custom-protocol navigation. The navigation-start handler permanently marked that identity stale, so the actual incoming readiness IPC was rejected. The existing `did-start-navigation` argument order was correct per [Electron 44 documentation](https://github.com/electron/electron/blob/v44.0.0/docs/api/web-contents.md#event-did-start-navigation). Changes: - [deep-link-delivery.ts](/tmp/git-processor/worktrees/integry/propr/pr-2176-followup-2026-09-07T15-52-10/apps/desktop/src/deep-link-delivery.ts:97) now resets readiness at navigation start, blocks readiness while navigation is pending, and re-authorizes a reused frame identity only after commit. - [main.ts](/tmp/git-processor/worktrees/integry/propr/pr-2176-followup-2026-09-07T15-52-10/apps/desktop/src/main.ts:1252) records the commit through `did-navigate`. - Added a real Electron 44 regression using a secure custom protocol and sandboxed preload. Its output contains only bounded booleans. - Preserved stale outgoing-frame rejection, fresh post-navigation readiness, presentation acknowledgement fencing, and all existing deadlines. - Did not duplicate the ESRCH fix or perform publication/deployment work. Validation: - Full desktop suite: 629 passed, 26 platform skips, 0 failed. - Focused deep-link suite: 12/12 passed. - Desktop and UI TypeScript checks passed. - Real Electron regression passed under a virtual display. - `git diff --check` and fixture syntax checks passed. No visual preview was created because this lifecycle correction has no visible UI effect. Packaged native smoke remains for CI verification. PR: #2176 Comment by: @integry (ID: 5573040034) Model: gpt-5.6-sol
|
/review Review the new real-Electron-backed correction. Reconcile previous F2 with the pinned Electron 44 API and the real runtime probe: details is the first argument, not the second. Keep review focused on actual correctness and native readiness; do not request optional cleanup. |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
integry
left a comment
There was a problem hiding this comment.
Independent root validation on ad4b70e: the real Electron 44 frame-semantics regression passed locally on Linux with DISPLAY and isolated XDG configuration/cache. All 32 deep-link/IPC tests also passed. Diff retains deadlines and presentation acknowledgement, clears readiness during pending cross-document navigation, and reauthorizes the reused initial identity only at commit. This replaces the earlier fake-only evidence; packaged native Linux/macOS CI is still required to prove the actual startup failure resolved. No deployment or publication performed.
🔍 AI Code Review — codex:gpt-5.6-solOverall EvaluationThis PR is ready to merge within scope once the pending required checks complete. The correction aligns the readiness fence with Electron 44’s actual navigation semantics without weakening acknowledgement or native evidence requirements. ✅ Electron 44 API correctly handled — ✅ Real runtime semantics verified — ✅ Readiness and presentation fences preserved — Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe implementation is focused, supported by both deterministic lifecycle coverage and a real Electron regression probe, with no verified correctness blocker or current-head failure. Merge readiness remains conditional only on completion of the currently pending checks. Score: 9/10 🤖 Review Details
🤖 Review by ProPR |
|
New packaged Linux x64 evidence on ad4b70e: job 101806952646, run 34142219632, now reaches renderer.ready and all service/profile/session/IPC shutdown stages, so the previous readiness rejection is gone. It then logs desktop.main_process.uncaught_exception immediately after ipc-disposed and before window-destroyed; shutdown retries, logs final-quit, but the process never exits and the 30s smoke deadline fails. Please investigate the newly added DeepLinkDelivery.clearWindow cleanup invoked by the BrowserWindow closed listener: it accesses window.webContents repeatedly after window destruction. Electron getters on a destroyed BrowserWindow can throw; fake-window tests do not cover this. Capture/cache the webContents reference while valid or otherwise make teardown safe without reading a destroyed window. Confirm the actual exception in a bounded real Electron/package shutdown regression, preserve cleanup and shutdown ordering, and do not widen timeouts. This is a separate concrete shutdown regression, not the initial-readiness issue. Keep target desktop epic only; no optional cleanup, merge, publication, or deployment. |
|
✅ Applied the requested follow-up changes in commit bf10048 Summary of ChangesImplemented the shutdown regression fix.
Validation:
🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Implemented the shutdown regression fix. - `DeepLinkDelivery` now caches `webContents` while the window is valid and uses that reference during `clearWindow`, preserving all renderer-state cleanup without accessing the destroyed `BrowserWindow`: [deep-link-delivery.ts](/tmp/git-processor/worktrees/integry/propr/pr-2176-followup-2026-09-07T16-21-10/apps/desktop/src/deep-link-delivery.ts:141) - Added focused cleanup coverage: [deep-link-delivery.test.ts](/tmp/git-processor/worktrees/integry/propr/pr-2176-followup-2026-09-07T16-21-10/apps/desktop/src/deep-link-delivery.test.ts:235) - Extended the real Electron 44 probe, confirming the actual exception is `TypeError: Object has been destroyed` while the cached `WebContents` remains accessible: [electron-frame-semantics.test.mjs](/tmp/git-processor/worktrees/integry/propr/pr-2176-followup-2026-09-07T16-21-10/apps/desktop/scripts/electron-frame-semantics.test.mjs:50) Validation: - Desktop TypeScript: passed. - Full desktop suite: 629 passed, 27 platform skips, 0 failed. - Real Electron lifecycle probe: passed. - Packaged Linux x64 smoke: 4/4 launches passed; all reached `ipc-disposed → window-destroyed → final-quit` and exited naturally without an uncaught exception. The unprivileged container required a temporary local sandbox/library accommodation, which was fully removed afterward. - No timeout or deadline changes. - No visual preview created because this change has no user-visible effect. - No commit, merge, publication, or deployment performed. PR: #2176 Comment by: @integry (ID: 5573349883) Model: gpt-5.6-sol
|
/review Review bf10048 shutdown correction against the prior Ultrafix-reviewed ad4b70e. Focus on destroyed-window cleanup safety and preserved readiness/security/acknowledgement fences. ProPR reports real Electron reproduction and four packaged natural exits; root will independently validate. No optional polish or timeout widening. Linux/macOS native CI remains relevant; Windows is explicitly deferred. Target remains desktop epic only. |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
integry
left a comment
There was a problem hiding this comment.
Independent root validation of bf10048: real Electron 44 lifecycle fixture plus deep-link delivery, IPC, and IPC lifecycle tests passed 38/38 with zero failures or skips under Node 22.23.2 on Linux DISPLAY, using isolated XDG config/cache. Actual probe confirms TypeError Object has been destroyed for the post-destruction BrowserWindow getter and continued accessibility of the cached WebContents reference. Reviewed production diff: setWindow obtains reference while valid, clearWindow nulls both references and clears all four document/navigation collections without accessing destroyed window; existing deadlines unchanged. Packaged native CI and final review remain pending; Windows deferred. No merge, deployment, or publication performed.
🔍 AI Code Review — codex:gpt-5.6-solOverall EvaluationThis correction safely addresses the destroyed- ✅ Destroyed-window cleanup is safe — ✅ Readiness and navigation fencing remain intact — readiness requires the current main frame and valid document identity, while pending and stale navigation states remain rejected. ✅ Acknowledgement guarantees are preserved — native delivery waits for consumer readiness before starting the unchanged acknowledgement deadline, and Connect acknowledgement remains tied to the exact committed confirmation endpoint. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe correction is localized, directly covers the reproduced Electron lifecycle behavior, and has strong regression coverage without weakening security or timing constraints. Pending native checks are the remaining merge gate rather than a verified code defect. Score: 9/10 🤖 Review Details
🤖 Review by ProPR |
|
Independent local validation discrepancy to reconcile (diagnosis first, no speculative changes): bf10048 builds successfully and its real Electron/deep-link/IPC checks pass 38/38, but root packaged smoke on this host exits immediately after desktop.app.ready with desktop.app.start_failed OPERATION_FAILED, before renderer startup. Using an isolated path-based D-Bus session and unlocked keyring does not change that. Control: the already-built runtime PR f2edcaf package passes the identical harness/environment, 4/4 isolated launches including OS credentials and Socket.IO. Native worktree uses reused/symlinked dependencies, so a local dependency/build artifact mismatch is plausible; do not assume production regression or weaken guards. Please reconcile your reported packaged pass with this evidence, checking clean-build dependency alignment and current-head native CI. Root logs /tmp/propr-native-bf100486-smoke-pathbus.log and control /tmp/propr-runtime-control-smoke.log. Review is otherwise clear at 9/10. No optional work, main merge, publication, or deployment. |
|
ℹ️ Analyzed the follow-up request by @integry Analysis SummaryDiagnosis reconciled; no source changes were warranted.
The reported host failure is therefore most consistent with a local The overall workflow remains red only from the explicitly deferred Windows jobs. No guards, deadlines, or application files were changed. The worktree is clean, temporary validation files were removed, and no visual preview was needed. No code changes were necessary based on the current state of the branch. 🤖 Analysis Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
integry
left a comment
There was a problem hiding this comment.
ROOT RECONCILIATION — local startup discrepancy resolved without source changes. Created fresh detached /tmp/propr-2172-review.uOpOSo/native-clean-bf100486 at exact bf10048; ran clean npm ci under Node 22.23.2/GCC10 (1203 packages, zero advisories), packaged Linux x64, and ran the unchanged desktop:smoke harness under isolated path-based D-Bus/unlocked keyring. PASS 4/4 launches, real OS credentials, Socket.IO, scope rotation and all shutdown modes; no main-process uncaught exception. Log /tmp/propr-native-clean-smoke.log. The old symlinked/reused-dependency worktree failure is not reproduced by clean build. No code correction requested for that local artifact discrepancy; please do not implement speculative changes. Prior real Electron and lifecycle checks passed 38/38, review 9/10 clear. Current native CI still pending.
integry
left a comment
There was a problem hiding this comment.
Integration complete: all four current-head Linux/macOS native package jobs have now passed, alongside full suite and Validate Changes. Merged the reviewed bf10048 into the desktop epic only. Root clean-build reconciliation already passed 4/4 packaged smoke; no further implementation is requested for the stale local artifact discrepancy. Please finish the active diagnosis with evidence/no-change if appropriate, without pushing speculative changes to this merged PR.
AI Implementation Summary
Closes #2175
Branch:
2175/gpt-5.6-sol-fix-macos-intel-cold-conf-20260907-1439-49sCommits: ✅ Changes committed (7e9d4d2)
AI Processing Completed
Execution Details:
Summary:
Implemented the focused native lifecycle correction.
Key changes:
consumer_readyevidence and corrected failure precedence so delivery failures cannot be mislabeled as inspection failures.Evidence from the failed run showed
desktop.deeplink.delivery_failedpreceded the inspection failure. Native failure handling then exited the app, causing DOM inspection against a tearing-down renderer. Thus the inspection category masked the underlying synchronization failure.Validation completed:
Native macOS Intel execution was unavailable from this Linux workspace and remains the required CI verification. No visual preview was created because this lifecycle synchronization change has no user-visible UI difference.
Detailed Logs:
nullLog files stored at:
/tmp/claude-logs/issue-2175-2026-09-07T14-59-26-444Z-conversation.json/tmp/claude-logs/issue-2175-2026-09-07T14-59-26-444Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #2175.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!