Skip to content

[2137 by GPT-5.6 Sol] Investigate Linux packaged Connect pairing poll-count failure - #2141

Merged
integry merged 1 commit into
1950-epic-cross-platform-dskfrom
2137/gpt-5.6-sol-investigate-linux-package-20260907-0027-983
Sep 7, 2026
Merged

integry merged 1 commit into
1950-epic-cross-platform-dskfrom
2137/gpt-5.6-sol-investigate-linux-package-20260907-0027-983

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #2137

Branch: 2137/gpt-5.6-sol-investigate-linux-package-20260907-0027-983
Commits: ✅ Changes committed (233794e)


AI Processing Completed

Execution Details:

Summary:
Implemented the focused Linux pairing correction.

  • Prevented polling when the next poll interval falls at or beyond the pairing deadline, eliminating the competing deadline/poll timer race in desktopPairing.ts.
  • Added deterministic regression coverage proving the 200 ms expiry journey schedules zero polls, including after termination, in desktopPairing.test.ts.
  • Added sanitized per-journey diagnostics for expiry, cancellation, and success polls while retaining the exact aggregate count and lifecycle-isolation checks in packaged-connect-evidence.mjs and smoke-packaged-connect.mjs.
  • Did not modify authentication-handoff or Windows code.

Validation:

  • Client suite: 72 passed
  • Desktop suite: 607 passed, 26 skipped
  • Focused evidence/lifecycle: 61 passed
  • Client and desktop typechecks passed
  • Linux package build and executable/fuse inspection passed
  • Packaged smoke was attempted but stopped before readiness because this workspace lacks Xvfb, GNOME keyring/session DBus, and the required SUID sandbox setup.

The historical sanitized CI record cannot expose its raw numeric count, but the completed activation proves one success poll occurred; therefore the mismatch was one or more negative-journey polls. The new fixed-enum diagnostics will identify the exact journey without exposing request data. No visual preview was needed.

Detailed Logs:

  • Conversation: 101 messages
  • Session: 01a07943-cc81-7f10-85fa-0a3e1d13fbee

Log files stored at:

  • conversation: /tmp/claude-logs/issue-2137-2026-09-07T00-37-16-584Z-conversation.json
  • output: /tmp/claude-logs/issue-2137-2026-09-07T00-37-16-584Z-output.txt
Latest Conversation Messages

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


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

…ring poll-co

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

Implementation completed successfully.
@integry

integry commented Sep 7, 2026

Copy link
Copy Markdown
Owner

/ultrafix

Validate head 233794e for desktop epic #1970, never main. Focus on deadline/cancellation semantics and preserving real in-flight timeout coverage. Independent diff inspection completed; strict aggregate and lifecycle smoke assertions remain, with additional per-journey diagnostics. Historical failure attribution to expiry is an inference, not a captured per-journey count; packaged CI must verify the fix. ProPR reports client/desktop tests and package inspection passing, but executable smoke was environment-blocked. Windows is deferred. Concrete Linux/macOS blockers only, no optional polish or auto-merge. Do not close acceptance #1962.

@propr-dev propr-dev Bot added the ultrafix label Sep 7, 2026
@propr-dev

propr-dev Bot commented Sep 7, 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 7, 2026

Copy link
Copy Markdown
Owner

/review

Ultrafix initialization completed without queuing a review; review current head 233794e. Validate pairing expiry/cancellation behavior, in-flight timeout coverage, and strict packaged evidence. Fresh Linux/macOS packaged smoke is running. Windows is deferred. Only concrete correctness blockers, no optional polish or auto-merge; epic #1970, never main.

@propr-dev

propr-dev Bot commented Sep 7, 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 7, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR correctly removes the deadline/poll timer race and strengthens packaged evidence attribution. It is ready to merge within the requested Linux/macOS scope once required pending checks complete; no current check is failing.

✅ Deadline-safe polling — desktopPairing.ts waits exclusively on the lifetime signal when the next permitted poll would occur at or after expiry, while caller cancellation still terminates the wait.

✅ In-flight timeout retained — The revised hung-poll test starts a real pending request and deterministically advances the pairing deadline, verifying abort and PAIRING_EXPIRED classification.

✅ Strict journey evidence — Packaged smoke now separately rejects expiry polls, cancellation polls, and any success poll count other than one while retaining the exact aggregate poll invariant.

Merge blockers

No merge blockers.

Suggestions

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

No suggestions.

Score

The changed behavior is internally consistent, has targeted deterministic coverage, and has passed representative Linux and macOS packaged checks. Remaining checks are pending rather than failing, with Windows explicitly deferred by scope.

Score: 9/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 38s
  • Tokens: 47,509 (45,837 in / 1,672 out)
  • Cost: $0.28

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 d240437 into 1950-epic-cross-platform-dsk Sep 7, 2026
37 of 42 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