Skip to content

[1962 by GPT-5.6 Sol] Complete desktop end-to-end UX, visual polish, and smoke coverage - #2134

Merged
integry merged 7 commits into
1950-epic-cross-platform-dskfrom
1962/gpt-5.6-sol-complete-desktop-end-to-e-20260906-1620-oy4
Sep 6, 2026
Merged

integry merged 7 commits into
1950-epic-cross-platform-dskfrom
1962/gpt-5.6-sol-complete-desktop-end-to-e-20260906-1620-oy4

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #1962

Branch: 1962/gpt-5.6-sol-complete-desktop-end-to-e-20260906-1620-oy4
Commits: ✅ Changes committed (e1c3c92)


AI Processing Completed

Execution Details:

Summary:
Implemented the focused integration fixes for #1962:

  • Terminal authentication now tracks the real authentication child, including server-backed terminals such as XFCE, and correctly propagates cancellation. See authentication-handoff.ts.
  • Packaged acceptance explicitly permits only the expected revoked-session 401 and fails on every unexpected renderer/page console error without exposing raw messages.
  • Native acceptance manifests now enforce the four supported release targets—Linux/macOS x64/arm64—with Windows absent.
  • Added coverage for terminal lifecycle, console classification, redaction, and manifest validation.
  • Updated install, connection, local setup, security, troubleshooting, platform, and release documentation. See desktop-application.md and desktop README.
  • Generated and visually inspected the required documentation preview and manifest.

Verification passed:

  • npm run desktop:test — 620 tests, 594 passed, 26 skipped.
  • Focused desktop acceptance tests — 15 tests, 14 passed, one macOS skip.
  • npm --workspace propr-ui test -- src/desktop — 113 passed.
  • CLI suite with module mocks — 392 tests, 391 passed, one skipped.
  • Local setup suite — 10 passed.
  • Root unit/API suite — 295 passed.
  • Root, UI, docs, CLI, and desktop typechecks/builds passed.
  • npm run desktop:package and npm run desktop:smoke:inspect passed for Linux x64.
  • npm run desktop:audit — zero runtime or packaging vulnerabilities.
  • git diff --check passed.

Native limitations are reported rather than replaced with fixture evidence: npm run desktop:smoke cannot launch because this environment has no X display or Xvfb. Docker and a graphical terminal are also unavailable, so the real packaged local-stack installation, cancellation/retry journey, keyring persistence, and production UI screenshots could not be exercised here. macOS launch, signing, and notarization also require native infrastructure and protected credentials. No personal credentials or existing user stack were modified.

Detailed Logs:

  • Conversation: 156 messages
  • Session: null

Log files stored at:

  • conversation: /tmp/claude-logs/issue-1962-2026-09-06T16-44-00-679Z-conversation.json
  • output: /tmp/claude-logs/issue-1962-2026-09-06T16-44-00-679Z-output.txt
Latest Conversation Messages

This PR was created automatically by ProPR after processing issue #1962.


💡 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!


Visual preview

Desktop application guide

Desktop application guide

The new supported-platform, first-launch, guided setup, security, troubleshooting, and release documentation.

… polish, and

Implemented by ProPR AI using gpt-5.6-sol model.

Implementation completed successfully.
@integry

integry commented Sep 6, 2026

Copy link
Copy Markdown
Owner

/ultrafix

Validate the focused implementation at e1c3c92, especially terminal child ownership/completion/cancellation and the strict secret-safe console-error classification. Check release-manifest and documentation claims against actual evidence. Do not score-chase or broaden into cosmetic polish. Real production local installation and cancellation/retry are explicitly still unverified because the implementation container lacked Docker/display/terminal; this PR must not be treated as proof that #1962 is fully complete. Preserve that limitation and identify concrete correctness blockers only.

@propr-dev

propr-dev Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor Author

🔄 Ultrafix loop started (goal: 8/10, max cycles: 10)

First action: /review

💡 Tip: Remove the ultrafix label from this PR to stop further ultrafix cycles.

@integry

integry commented Sep 6, 2026

Copy link
Copy Markdown
Owner

/review

Ultrafix activation did not leave a review worker queued. Review current head e1c3c92: focus on terminal authentication completion/cancellation ownership, strict secret-safe console classification, and claims versus actual acceptance evidence. Report concrete blockers; real packaged local installation remains explicitly unverified.

@propr-dev

propr-dev Bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@integry

integry commented Sep 6, 2026

Copy link
Copy Markdown
Owner

Please implement a focused correction pass for these demonstrated blockers at e1c3c92; preserve all strict acceptance gates and do not broaden into polish.

  1. authentication-handoff.ts commandWrapper backgrounds setsid -- "$@" (or "$@") under noninteractive /bin/sh without preserving terminal stdin. Independent safe PTY check confirmed the parent has TTY stdin but the background child does not. Interactive GitHub/agent authentication therefore remains broken. Preserve a real interactive terminal input path and add a controlled regression that checks TTY/input, not just sleep/marker writes.
  2. Cancellation signals the PID recorded in .started before checking .result and without validating current process ownership. Do not signal a completed/reaped command or rely on a stale reusable PID as ownership evidence. Add focused completion/cancellation race coverage.
  3. Wrapper signal traps interrupt wait and can publish a result before a signal-resistant child exits. Completion/cancellation must retain ownership and drain/reap the actual child before reporting completion and deleting state; cover terminal close/HUP and TERM-resistant child behavior without touching real credentials.
  4. Hosted Linux x64 acceptance run34046387966 job101522209394 fails with unexpectedErrors:1, errorCategoryCounts expectedRevokedAuthorizationResponse:1, apiLoad:1, all others0. The expected revoked401 is correctly classified; investigate and fix the unexpected API-loading error (previous evidence located it in dashboard-profile-manager). Retain zero unexpected errors and secret-safe diagnostics; do not allowlist the error to make CI pass.

Root read the relevant implementation and CI log; independent review corroborated terminal flaws. Ultrafix review is also requested. Run focused regressions and strict packaged acceptance, then publish the correction for review. Real production setup installation is still an explicitly outstanding acceptance requirement.

@propr-dev

propr-dev Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-5.6-sol

Overall Evaluation

This PR aligns the acceptance manifest with the four-target release profile and improves secret-safe diagnostics, but the new authentication wrapper breaks interactive input and has multiple lifecycle ownership gaps. It needs significant rework before merge. The current canonical Validate unsigned linux-x64 package check is also failing, and real packaged local installation and cancellation/retry remain explicitly unverified.

✅ Secret-safe failure reporting — Unexpected renderer failures expose only bounded counts and categories, not raw messages, URLs, or stacks.

✅ Release-profile alignment — Acceptance evidence now covers exactly Linux/macOS x64/arm64 and excludes Windows consistently.

✅ Server-backed happy-path tracking — The handoff uses command-owned markers instead of treating a successful terminal-launcher exit as authentication completion.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F1: 🔴 Interactive input is disconnected

  • Required behavior: Terminal authentication must run interactive gh and Docker login commands inside a usable terminal while tracking their completion.
  • Evidence: apps/desktop/src/authentication-handoff.ts:36 — both branches execute the authentication command as an asynchronous shell list (setsid -- "$@" & or "$@" &). In a non-interactive POSIX shell, such a command receives /dev/null as standard input absent an explicit redirection; the setsid branch additionally loses the controlling terminal.
  • Minimum fix: Run the owned child through a mechanism that preserves usable terminal input/control-terminal behavior while still capturing its PID and exit status, and add a pseudo-terminal test proving the child can read an interactive response.

F2: 🔴 Interrupted wait can orphan authentication

  • Required behavior: Authentication completion or cancellation must not be reported until the actual authentication child has exited and been reaped.
  • Evidence: apps/desktop/src/authentication-handoff.ts:53 — the wrapper traps HUP, INT, and TERM, but performs only one wait at line 58 and immediately publishes that status. A trapped signal can interrupt wait; if the child delays or ignores SIGTERM, the wrapper can publish a result and exit while that child remains alive.
  • Minimum fix: Make signal handling record cancellation and continue waiting for the child, with bounded escalation to SIGKILL, and write the result only after the child is confirmed reaped. Cover a TERM-delaying child in tests.

F3: 🔴 Startup timeout abandons the terminal

  • Required behavior: Every terminal admission failure or timeout must relinquish all processes owned by the handoff before returning.
  • Evidence: apps/desktop/src/authentication-handoff.ts:181 — the start-timeout branch returns while terminalChild may still be running; the finally block at line 188 kills that process group only when the caller’s signal is already aborted.
  • Minimum fix: On startup timeout, terminate and await closure of the admitted terminal process group before removing the runtime directory and returning. Add a test using a terminal candidate that remains alive without starting the wrapper.

F4: 🔴 Revoked-error exception is underconstrained

  • Required behavior: Packaged acceptance may ignore only the exact intentional revoked-session 401; stale, duplicate, or otherwise unmatched renderer requests must remain unexpected errors.
  • Evidence: apps/desktop/scripts/run-packaged-acceptance.mjs:1086 — the classifier accepts any canonically shaped scoped current-user URL at the revoked origin by checking only classifyCurrentUserRequestShape(...).source === 'renderer'; it does not verify the expected scope generation or correlate the console event with the deliberate revoked request.
  • Minimum fix: Correlate the console event with the exact recorded revoked request, including its expected scope generation and occurrence count, and add negative cases for stale, duplicate, and unmatched generations.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Perform real packaged setup validation

After correcting the blockers, exercise a packaged Linux build with Docker, a graphical terminal, D-Bus/keyring storage, cancellation, retry, and rollback. The supplied tests use controlled fixtures and do not establish real production installation behavior; this remains a follow-up because no additional concrete defect can be inferred solely from the missing environment.

Score

The PR contains useful release-manifest and diagnostic improvements, but its core interactive authentication path is currently unusable and lifecycle ownership remains unsafe, with a canonical current-head package check also failing.

Score: 4/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 4m 11s
  • Tokens: 64,763 (51,912 in / 12,851 out)
  • Cost: $0.60

View Task


💡 Next step: Comment /fix to address F# merge blockers only.
F# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. Suggestions require a separate ordinary follow-up request.

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit ea33c05

Summary of Changes

Implemented the focused correction pass in four files.

  • authentication-handoff.ts
    • Preserves interactive terminal stdin through /dev/tty.
    • Checks .result before accepting cancellation.
    • Removes external signaling based on .started PIDs.
    • Validates child ownership using parent identity and process start time.
    • Drains/reaps children after TERM/HUP, escalating TERM-resistant children before publishing results or deleting state.
  • authentication-handoff.test.ts
    • Adds real PTY TTY/input coverage.
    • Adds completion/cancellation race coverage.
    • Covers cancellation and terminal HUP with TERM-resistant children.
  • run-packaged-acceptance.mjs
    • Fixes the hosted apiLoad error by returning the paginated drafts shape required by dashboard-profile-manager.
    • The strict zero-unexpected-error classifier remains unchanged.
  • Added a fixture/consumer regression in packaged-acceptance-stats.test.mjs.

Verification:

  • Desktop typecheck passed.
  • Full desktop suite passed: 624 tests, 598 passed, 26 platform skips.
  • Focused correction suite passed: 15/15.
  • Linux x64 package rebuilt successfully.
  • Packaged executable/fuse inspection passed.
  • git diff --check passed.

Strict packaged UI acceptance was attempted but Electron exited before CDP startup because this container lacks an X server/Xvfb; the CI keyring runtime is also unavailable. No gate was bypassed or allowlisted. Real production setup installation and its cancellation/retry journey remain explicitly unverified.

The correction is non-visual, so no preview files were created. No commit was made, per instructions.


🤖 Implementation Details

  • Model: GPT-5.6 Sol (high)
  • Requested By: @integry
  • Time: 16m 36s
  • Tokens: 5,049,668 (5,017,856 in / 31,812 out)
  • Cost: $4.32
  • Subscription usage: Weekly +1%

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Implement fixes for issues found by /review /fix or /fix address the null check issue
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 5561083163✓

@integry

integry commented Sep 6, 2026

Copy link
Copy Markdown
Owner

/fix F4

After the current correction pass finishes, address remaining review F4 from comment5561107779: correlate the expected revoked-session401 with the exact deliberate recorded request, including expected scope generation and occurrence count. Reject stale, duplicate, and unmatched events; add negative regressions. Current worker output explicitly says the classifier is unchanged, so this is a distinct remaining review finding, not a request to repeat its terminal/API fixture fixes. Keep zero unexpected renderer errors and secret-safe diagnostics. Preserve the ongoing corrections and avoid unrelated polish.

Implemented the focused correction pass in four files.

- [authentication-handoff.ts](/tmp/git-processor/worktrees/integry/propr/pr-2134-followup-2026-09-06T18-03-10/apps/desktop/src/authentication-handoff.ts:28)
  - Preserves interactive terminal stdin through `/dev/tty`.
  - Checks `.result` before accepting cancellation.
  - Removes external signaling based on `.started` PIDs.
  - Validates child ownership using parent identity and process start time.
  - Drains/reaps children after TERM/HUP, escalating TERM-resistant children before publishing results or deleting state.
- [authentication-handoff.test.ts](/tmp/git-processor/worktrees/integry/propr/pr-2134-followup-2026-09-06T18-03-10/apps/desktop/src/authentication-handoff.test.ts:48)
  - Adds real PTY TTY/input coverage.
  - Adds completion/cancellation race coverage.
  - Covers cancellation and terminal HUP with TERM-resistant children.
- [run-packaged-acceptance.mjs](/tmp/git-processor/worktrees/integry/propr/pr-2134-followup-2026-09-06T18-03-10/apps/desktop/scripts/run-packaged-acceptance.mjs:514)
  - Fixes the hosted `apiLoad` error by returning the paginated drafts shape required by `dashboard-profile-manager`.
  - The strict zero-unexpected-error classifier remains unchanged.
- Added a fixture/consumer regression in [packaged-acceptance-stats.test.mjs](/tmp/git-processor/worktrees/integry/propr/pr-2134-followup-2026-09-06T18-03-10/apps/desktop/scripts/packaged-acceptance-stats.test.mjs:39).

Verification:

- Desktop typecheck passed.
- Full desktop suite passed: 624 tests, 598 passed, 26 platform skips.
- Focused correction suite passed: 15/15.
- Linux x64 package rebuilt successfully.
- Packaged executable/fuse inspection passed.
- `git diff --check` passed.

Strict packaged UI acceptance was attempted but Electron exited before CDP startup because this container lacks an X server/Xvfb; the CI keyring runtime is also unavailable. No gate was bypassed or allowlisted. Real production setup installation and its cancellation/retry journey remain explicitly unverified.

The correction is non-visual, so no preview files were created. No commit was made, per instructions.

PR: #2134
Comment by: @integry (ID: 5561083163)
Model: gpt-5.6-sol
@propr-dev

propr-dev Bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 9242785

Addressed 1 AI review comment (IDs: 5561107779)

Summary of Changes

Implemented F4 only.

  • Correlates the revoked-session 401 with exactly one deliberate renderer request, matching journey, scope generation, request occurrence, authorization custody, status, and classification.
  • Duplicate, stale-generation, wrong-occurrence, and unmatched events remain unexpected renderer errors.
  • Preserved bounded, secret-safe count-only diagnostics and the zero-unexpected-error gate.
  • Added focused positive and negative regressions in packaged-acceptance-current-user.test.mjs.

Verification:

  • Desktop suite: 628 tests, 602 passed, 26 skipped, 0 failed.
  • Focused authorization tests: 6 passed.
  • git diff --check: passed.

No preview was created because the change is non-visual. Changes were not committed, as requested.


🤖 Implementation Details

  • Model: GPT-5.6 Sol (high)
  • Requested By: @integry
  • Time: 6m 9s
  • Tokens: 1,496,385 (1,485,982 in / 10,403 out)
  • Cost: $1.65

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Implement fixes for issues found by /review /fix or /fix address the null check issue
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 5561179067✓

@integry

integry commented Sep 6, 2026

Copy link
Copy Markdown
Owner

/fix F3

Root inspected published ea33c05. Review F3 remains unchanged: the START_TIMEOUT_MS branch returns without terminating the admitted terminal, and finally cleans it up only when signal.aborted. Implement bounded termination AND awaited closure for every owned terminal admission failure/timeout before deleting state, with the requested never-starts-wrapper regression. Preserve the current terminal input/child ownership corrections and ongoing F4 classifier work. This is the remaining numbered finding from review5561107779, not a new broad review cycle.

@integry

integry commented Sep 6, 2026

Copy link
Copy Markdown
Owner

/fix F1

Complete the remaining controlling-terminal part of review F1 alongside the already pending F3 terminal correction. Independent audit of ea33c05 confirms stdin is now a TTY and plain read works, but setsid detaches the controlling terminal without reacquiring it: a harmless PTY diagnostic shows opening /dev/tty fails in the auth child. The new test checks only test -t/read. Preserve a usable controlling terminal for interactive CLI prompts and add a PTY regression that opens/reads /dev/tty as well as stdin. Preserve parent/start-time ownership checks and TERM/HUP drain/reap behavior. Do not repeat the already fixed API fixture work or broaden into polish. Actual GitHub/agent authentication remains unverified until real-session acceptance.

Implemented F4 only.

- Correlates the revoked-session 401 with exactly one deliberate renderer request, matching journey, scope generation, request occurrence, authorization custody, status, and classification.
- Duplicate, stale-generation, wrong-occurrence, and unmatched events remain unexpected renderer errors.
- Preserved bounded, secret-safe count-only diagnostics and the zero-unexpected-error gate.
- Added focused positive and negative regressions in [packaged-acceptance-current-user.test.mjs](/tmp/git-processor/worktrees/integry/propr/pr-2134-followup-2026-09-06T18-20-18/apps/desktop/scripts/packaged-acceptance-current-user.test.mjs).

Verification:

- Desktop suite: 628 tests, 602 passed, 26 skipped, 0 failed.
- Focused authorization tests: 6 passed.
- `git diff --check`: passed.

No preview was created because the change is non-visual. Changes were not committed, as requested.

PR: #2134
Comment by: @integry (ID: 5561179067)
Model: gpt-5.6-sol
@propr-dev

propr-dev Bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit a683e0a

Processed 2 comments:

  • Comment 1 by @integry (ID: 5561218762✓)
  • Comment 2 by @integry (ID: 5561223036✓)

Addressed 1 AI review comment (IDs: 5561107779)

Summary of Changes

Implemented focused F1 correction only.

  • Interactive authentication remains in the terminal’s existing session, preserving stdin and a usable /dev/tty.
  • Non-TTY launches retain setsid process-group handling.
  • Added PTY coverage reading separate responses from /dev/tty and stdin.
  • Preserved PID parent/start-time ownership checks and TERM/HUP drain/reap behavior.

Verification:

  • Authentication handoff: 5/5 passed.
  • Desktop suite: 602 passed, 26 skipped, 0 failed.
  • Desktop typecheck and git diff --check passed.

No visual preview was needed. Real GitHub/agent authentication remains unverified pending real-session acceptance.


🤖 Implementation Details

  • Model: GPT-5.6 Sol (high)
  • Requested By: @integry
  • Time: 4m 59s
  • Tokens: 401,584 (395,811 in / 5,773 out)
  • Cost: $0.59

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Implement fixes for issues found by /review /fix or /fix address the null check issue
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment IDs: 5561218762✓, 5561223036✓

@integry

integry commented Sep 6, 2026

Copy link
Copy Markdown
Owner

/fix F3

The current batch acknowledges comments5561218762 and5561223036, but its worker explicitly says it will fix only F1 and leave F3 untouched. Therefore run F3 after the current pass: terminate and await closure of the admitted terminal on startup timeout/admission failure before removing runtime state; add the never-starts-wrapper regression. Do not redo the current F1 controlling-terminal fix or completed F4 classifier work. Keep this narrowly scoped to the unresolved original review F3.

Implemented focused F1 correction only.

- Interactive authentication remains in the terminal’s existing session, preserving stdin and a usable `/dev/tty`.
- Non-TTY launches retain `setsid` process-group handling.
- Added PTY coverage reading separate responses from `/dev/tty` and stdin.
- Preserved PID parent/start-time ownership checks and TERM/HUP drain/reap behavior.

Verification:

- Authentication handoff: 5/5 passed.
- Desktop suite: 602 passed, 26 skipped, 0 failed.
- Desktop typecheck and `git diff --check` passed.

No visual preview was needed. Real GitHub/agent authentication remains unverified pending real-session acceptance.

PR: #2134
Comment by: @integry (ID: 5561218762)
Comment by: @integry (ID: 5561223036)
Model: gpt-5.6-sol
@propr-dev

propr-dev Bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 915d32b

Addressed 1 AI review comment (IDs: 5561107779)

Summary of Changes

Implemented the narrowly scoped F3 correction.

  • Startup timeout/admission failure now sends TERM to the detached terminal group, escalates to KILL after a bounded grace period, and awaits closure before deleting runtime state in authentication-handoff.ts.
  • Added the never-starts-wrapper regression in authentication-handoff.test.ts.
  • Left F1 and F4 unchanged.

Verification:

  • Desktop typecheck passed.
  • Desktop suite: 629 tests, 603 passed, 26 skipped, 0 failed.
  • git diff --check passed.
  • No visual preview generated because this lifecycle-only change is not visually perceptible.

🤖 Implementation Details

  • Model: GPT-5.6 Sol (high)
  • Requested By: @integry
  • Time: 6m 7s
  • Tokens: 766,967 (758,124 in / 8,843 out)
  • Cost: $1.00
  • Subscription usage: Weekly +1%

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Implement fixes for issues found by /review /fix or /fix address the null check issue
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 5561255504✓

Implemented the narrowly scoped F3 correction.

- Startup timeout/admission failure now sends TERM to the detached terminal group, escalates to KILL after a bounded grace period, and awaits closure before deleting runtime state in [authentication-handoff.ts](/tmp/git-processor/worktrees/integry/propr/pr-2134-followup-2026-09-06T18-32-27/apps/desktop/src/authentication-handoff.ts:155).
- Added the never-starts-wrapper regression in [authentication-handoff.test.ts](/tmp/git-processor/worktrees/integry/propr/pr-2134-followup-2026-09-06T18-32-27/apps/desktop/src/authentication-handoff.test.ts:87).
- Left F1 and F4 unchanged.

Verification:

- Desktop typecheck passed.
- Desktop suite: 629 tests, 603 passed, 26 skipped, 0 failed.
- `git diff --check` passed.
- No visual preview generated because this lifecycle-only change is not visually perceptible.

PR: #2134
Comment by: @integry (ID: 5561255504)
Model: gpt-5.6-sol
@integry

integry commented Sep 6, 2026

Copy link
Copy Markdown
Owner

Please fix the concrete macOS ARM CI failure in the authentication completion/cancellation regression. Failed job: https://github.com/integry/propr/actions/runs/34052038227/job/101537435141 (a683e0a), test "lets a published completion win a concurrent cancellation request", AbortError at tryTerminal. Current 915d32b still uses a fixed 150 ms JS busy wait after touching the finish trigger, without proving the wrapper published its result. Replace that timing assumption with deterministic synchronization proving completion is published before cancellation while preserving the intended race assertion. Inspect whether production behavior also needs a correction; do not weaken the assertion, skip the test, or merely lengthen the delay. Preserve F1-F4 fixes and strict console-error acceptance. Run focused handoff tests and desktop suite/typecheck. Keep this correction narrowly scoped.

@propr-dev

propr-dev Bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 0fdce3a

Summary of Changes

Implemented the macOS ARM CI regression fix in authentication-handoff.test.ts.

  • Replaced the fixed 150 ms delay with synchronous polling for the wrapper’s exact published 0\n result.
  • Cancellation is requested only after publication, while the handoff’s async poll remains paused.
  • Preserved the strict { status: 0 } race assertion.
  • Production already checks .result before cancellation at each poll, so no production change was needed.
  • F1–F4 and console-error classification remain untouched.

Verification:

  • Focused handoff suite: 6 passed.
  • Desktop suite: 629 tests, 603 passed, 26 skipped.
  • Desktop/UI typecheck: passed.
  • git diff --check: passed.
  • No preview generated; this is not visually perceptible.

🤖 Implementation Details

  • Model: GPT-5.6 Sol (high)
  • Requested By: @integry
  • Time: 5m 49s
  • Tokens: 994,591 (987,882 in / 6,709 out)
  • Cost: $1.20

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Implement fixes for issues found by /review /fix or /fix address the null check issue
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 5561328904✓

@integry

integry commented Sep 6, 2026

Copy link
Copy Markdown
Owner

One narrowly scoped F3 follow-up from independent inspection of 915d32b, to process AFTER the active macOS test correction (do not restart it): relinquishTerminal currently calls stopProcessGroup(child, SIGTERM) before checking isClosed(), deliberately signaling the stored PID/process-group identifier after the launcher has been reaped. At that point the numeric identifier alone no longer establishes ownership, and the immediate return also does not establish descendant cleanup. Avoid signaling a reaped launcher based only on its stale PID; keep signaling/awaiting of a still-owned live terminal, and preserve F1/F2 wrapper ownership safeguards. Add a focused regression for an already-closed pre-start launcher showing no stale process/group signal. Do not broaden into unrelated cleanup or revise completed console acceptance work.

…ion-handoff.test.ts](/home/node/workspace/apps/desktop/src/authentication-handoff.test.ts:48).

Implemented the macOS ARM CI regression fix in [authentication-handoff.test.ts](/home/node/workspace/apps/desktop/src/authentication-handoff.test.ts:48).

- Replaced the fixed 150 ms delay with synchronous polling for the wrapper’s exact published `0\n` result.
- Cancellation is requested only after publication, while the handoff’s async poll remains paused.
- Preserved the strict `{ status: 0 }` race assertion.
- Production already checks `.result` before cancellation at each poll, so no production change was needed.
- F1–F4 and console-error classification remain untouched.

Verification:

- Focused handoff suite: 6 passed.
- Desktop suite: 629 tests, 603 passed, 26 skipped.
- Desktop/UI typecheck: passed.
- `git diff --check`: passed.
- No preview generated; this is not visually perceptible.

PR: #2134
Comment by: @integry (ID: 5561328904)
Model: gpt-5.6-sol
@propr-dev

propr-dev Bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 0933ea2

Summary of Changes

Implemented the narrowly scoped F3 follow-up.

  • relinquishTerminal now returns before signaling when the launcher is already closed/reaped, avoiding stale PID/process-group use.
  • Live owned terminals retain TERM, bounded wait, KILL escalation, and awaited closure.
  • Added an already-closed pre-start launcher regression proving no stale signal attempt.
  • Preserved wrapper ownership safeguards and macOS race synchronization.

Files: authentication-handoff.ts, authentication-handoff.test.ts

Verification:

  • Focused handoff tests: 7 passed
  • Desktop suite: 604 passed, 26 skipped, 0 failed
  • Desktop typecheck: passed
  • git diff --check: passed

No visual preview was created because the change is not user-visible.


🤖 Implementation Details

  • Model: GPT-5.6 Sol (high)
  • Requested By: @integry
  • Time: 5m 24s
  • Tokens: 542,546 (535,941 in / 6,605 out)
  • Cost: $0.74

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Implement fixes for issues found by /review /fix or /fix address the null check issue
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 5561337575✓

Implemented the narrowly scoped F3 follow-up.

- `relinquishTerminal` now returns before signaling when the launcher is already closed/reaped, avoiding stale PID/process-group use.
- Live owned terminals retain TERM, bounded wait, KILL escalation, and awaited closure.
- Added an already-closed pre-start launcher regression proving no stale signal attempt.
- Preserved wrapper ownership safeguards and macOS race synchronization.

Files: [authentication-handoff.ts](/tmp/git-processor/worktrees/integry/propr/pr-2134-followup-2026-09-06T18-48-08/apps/desktop/src/authentication-handoff.ts:165), [authentication-handoff.test.ts](/tmp/git-processor/worktrees/integry/propr/pr-2134-followup-2026-09-06T18-48-08/apps/desktop/src/authentication-handoff.test.ts:140)

Verification:

- Focused handoff tests: 7 passed
- Desktop suite: 604 passed, 26 skipped, 0 failed
- Desktop typecheck: passed
- `git diff --check`: passed

No visual preview was created because the change is not user-visible.

PR: #2134
Comment by: @integry (ID: 5561337575)
Model: gpt-5.6-sol
@integry

integry commented Sep 6, 2026

Copy link
Copy Markdown
Owner

/review

Final validation of head 0933ea2 under the existing Ultrafix workflow. Verify the original F1-F4 corrections and the focused follow-up changes; report concrete merge-blocking correctness defects only, not optional polish or score-driven refactoring. Independent inspection has covered each correction. Linux packaged visual acceptance on 915d32b produced 12 journeys/60 screenshots, zero unexpected console errors, exactly one correlated expected revoked-401, and no accessibility findings; final-head CI is still required. Real fresh local installation and actual-account authentication remain explicitly unverified, pending isolated test-account approval; do not describe fixture setup journeys as real installation proof. Preserve the epic target, do not merge main, and do not start unrelated implementation.

@propr-dev

propr-dev Bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-5.6-sol

Overall Evaluation

The focused corrections resolve the previously reported terminal ownership, cancellation, startup-timeout, completion-race, and revoked-401 classification defects. No merge-blocking code defect is evident in the supplied final diff. The PR is ready to merge within scope once required final-head CI completes successfully.

✅ Interactive terminal preserved — authentication-handoff.ts keeps the authentication child in the terminal session and redirects stdin from /dev/tty; the regression exercises both stdin and direct /dev/tty access.

✅ Lifecycle races corrected — The wrapper validates child ownership, drains TERM-resistant children, publishes completion only after reaping, and avoids signaling an already-closed launcher. Tests deterministically synchronize completion-before-cancellation and cover startup timeout, cancellation, and HUP.

✅ Strict console acceptance — The expected revoked 401 is correlated to one scoped renderer request with matching generation and occurrence, while every unmatched, duplicate, stale, page, or other console error remains unexpected and fails acceptance.

The reported 12-journey/60-screenshot fixture run is useful packaged acceptance evidence, but it is not proof of a fresh real installation or actual-account authentication; those remain explicitly unverified.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

No suggestions.

Score

The implementation is strong and the previously identified blockers are corrected with focused regression coverage. There are no known current-head failures, but 17 checks remain pending, so merge readiness is conditional on final-head CI completing successfully.

Score: 8/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 1m 58s
  • Tokens: 64,801 (59,822 in / 4,979 out)
  • Cost: $0.40

View Task


💡 Next step: Comment /fix to address F# merge blockers only.
F# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. Suggestions require a separate ordinary follow-up request.

🤖 Review by ProPR

@integry
integry merged commit 692afd2 into 1950-epic-cross-platform-dsk Sep 6, 2026
28 of 33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant