Skip to content

Desktop: fix warm-open renderer delivery failure after tunnel acknowledgement #2328

Closed

Description

@integry

Follow-up to diagnostic #2323 / merged #2326; parent #1950 / #1970. Implement a targeted child PR against 1950-epic-cross-platform-dsk. Correct base label is applied.

Real Intel Mac lifecycle reproduction with diagnostics: run 34549557949 attempt 2, job 103113438439. Failure: stage WARM_OPEN_EVIDENCE, milestone WARM_TUNNEL_ACK, result FAILED_EXIT, evidence READABLE, category DEEP_LINK_DELIVERY_FAILED. Thus the app reached and acknowledged the warm tunnel candidate, then failed delivery/acknowledgement of the next warm-open link and exited; this is not a dependency failure or simply missing test output. Fetch bounded log via gh api repos/integry/propr/actions/jobs/103113438439/logs. Read src/main.ts deep-link delivery failure handling, deep-link-delivery.ts, renderer consumption/presentation flow, and lifecycle dispatchDirect sequence. The original diagnostic PR preserved all assertions and is integrated.

Find and fix the responsible delivery/readiness/presentation race with regression coverage. Preserve exact OS dispatch, single-instance fencing, per-document acknowledgement and account isolation. Do not weaken assertions, fake renderer acknowledgements, skip this gate, or merely extend timeouts. Keep finite sanitized diagnostics if further distinction is necessary. Reproduce with real packaged Mac where practical; root owns [email protected] and user profiles, so do not restart that app or alter credentials. Existing all-four package run 34549946612 passed on the Connect UI revision, showing intermittency rather than proof of resolution. Link Closes this issue and reference #2323. No Windows work or unrelated UI polish.

Activity

  1. propr-dev commented on Sep 11, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using codex agent with gpt-6-astra model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: codex
    • Model: gpt-6-astra
    • Branch: 2328/gpt-6-astra-desktop-fix-warm-open-ren-20260911-0142-txi
    • Base Branch: 1950-epic-cross-platform-dsk
    • Worktree: issue-2328-20260911-0142-gpt-6-astra-txi

    🔍 Track Task Execution

  2. integry commented on Sep 11, 2026

    @integry
    OwnerAuthor

    Root review note: DEEP_LINK_DELIVERY_FAILED is not yet proof of an acknowledgement timeout. DeepLinkDelivery.drain also routes exceptions from delivered(value, consumption, window) into the same failure callback, including assertNativeRendererConsumption in main.ts (expected open-queued/target or nativeSmokeWindow mismatch). Please distinguish missing/rejected acknowledgement from delivered-callback assertion failure rather than assuming a timeout. Renderer useDesktopDeepLinks open handling binds to activeProfileId and returns null when no bound profile; stageConnectCandidate can move phase to choose. Check these paths with production semantics preserved.

  3. integry commented on Sep 11, 2026

    @integry
    OwnerAuthor

    Concrete candidate race from root source review: DesktopExperience startup Promise.all(profiles.list/getActiveId) calls connect(active) unless hasPendingConnectCandidate() is already true. With savedAccounts enabled, connect(active) immediately enqueues profiles.setActiveId(null), then clears activeProfileId.current. If initial cold Connect delivery reaches the consumer just after startup begins auto-connect, stageConnectCandidate cancels the connection attempt and moves to choose but does not restore the cleared active selection. Subsequent open may then have no bound profile and return null; native fixture also expects native-local to remain active. Please reproduce both orderings (cold link before/after saved-profile reads) rather than relying on scheduling. This is a hypothesis to verify, not permission to restore an account across an explicit user switch or bypass identity checks.

  4. added a commit that references this issue on Sep 11, 2026
  5. integry commented on Sep 11, 2026

    @integry
    OwnerAuthor

    Completed by #2329, merged into desktop epic at 6153f4c (not main). All four Linux/macOS package/lifecycle jobs passed in run 34553268673 on e8c3980; final f39b63d changes only the local-setup test fixture. Root independently passed all 122 UI files / 965 tests on final head, alongside prior 461/462 non-UI full-suite runs and 60 packaged Linux screenshot/accessibility/OCR checks. Mac Intel warm-open lifecycle now passes. Final live UI acceptance remains tracked separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions