Skip to content

Fix Linux terminal handoff cleanup regression blocking integrated desktop validation #2198

Closed

Description

@integry

Concrete combined-epic CI failure at 30dd65e: run 34156637460, Linux x64 job 101849925687. Desktop suite has 657 passed / 26 skips / 1 failure. apps/desktop/src/authentication-handoff.test.ts test "terminates and awaits a terminal that never starts the wrapper before removing runtime state" fails after about 6016 ms reading terminal.cleanup (ENOENT, assertion line 175). The subsequent missing acceptance artifact is downstream of this failed test, not a separate upload defect.

Diagnose fixture/process scheduling versus actual production terminal cleanup before changing anything. The fixture installs a TERM trap that sleeps 0.1s and verifies the wrapper still exists, then loops over sleep 1. Preserve the required guarantee that owned terminal shutdown is awaited before removing runtime state, bounded cancellation, no leaked processes and no signalling unrelated/reused PIDs. Correct only the demonstrated cause; do not weaken/remove the cleanup assertion, skip the test, or broadly extend production deadlines to mask it. Add deterministic readiness/cleanup evidence if necessary and run focused regressions repeatedly plus the parallel full desktop suite; get integrated Linux x64 package validation through this gate.

Implement via ProPR in a separate PR targeting only 1950-epic-cross-platform-dsk, never main. Include Closes this issue. Leave open for Ultrafix then independent root checks. Keep this independent from active tray #2196 and native notification #2197 work; Windows is deferred. Prior #2193 fixture work was the different early-HUP child leak test and is already merged—preserve it. This is a concrete release acceptance blocker, not optional hardening.

Activity

  1. propr-dev commented on Sep 7, 2026

    @propr-dev
    Contributor

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

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

    Processing Details:

    • Agent: codex
    • Model: gpt-5.6-sol
    • Branch: 2198/gpt-5.6-sol-fix-linux-terminal-handof-20260907-1952-ryl
    • Base Branch: 1950-epic-cross-platform-dsk
    • Worktree: issue-2198-20260907-1952-gpt-5.6-sol-ryl

    🔍 Track Task Execution

  2. integry commented on Sep 7, 2026

    @integry
    OwnerAuthor

    Please implement the focused diagnosis/correction described above. AI and the desktop-epic base label are already present. Keep the cleanup-before-runtime-removal invariant and verify the real cause; target the epic only and leave the PR open for Ultrafix/root validation.

  3. added a commit that references this issue on Sep 7, 2026
  4. integry commented on Sep 7, 2026

    @integry
    OwnerAuthor

    Implemented by #2199 and merged into desktop epic only. ProPR review 9/10 with no blockers; root focused 8/8 and full desktop 658 passed / 26 skips; full CI suite and both macOS jobs pass. Both Linux CI jobs have passed Typecheck and test unsigned desktop runtime (including the formerly failing fixture); their longer native lifecycle checks remain running at integration. No production timeouts or cleanup behavior changed. Main untouched.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions