Skip to content

[2247 by GPT-5.6 Sol] Desktop pairing: provide safe reopen/copy actions when external browser handoff fails silently - #2250

Merged
integry merged 3 commits into
1950-epic-cross-platform-dskfrom
2247/gpt-5.6-sol-desktop-pairing-provide-s-20260909-1519-wzz
Sep 9, 2026
Merged

integry merged 3 commits into
1950-epic-cross-platform-dskfrom
2247/gpt-5.6-sol-desktop-pairing-provide-s-20260909-1519-wzz

Conversation

@propr-dev

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

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #2247

Branch: 2247/gpt-5.6-sol-desktop-pairing-provide-s-20260909-1519-wzz
Commits: ✅ Changes committed (c397d4e)


AI Processing Completed

Execution Details:

Summary:
Implemented GitHub issue #2247.

Key changes:

  • Added Linux/macOS-only “Reopen browser” and “Copy approval link” actions to the waiting state.
  • Kept approval URLs and clipboard/browser operations in the main process.
  • Bound actions to the current profile, operation, generation, and original expiry.
  • Prevented stale, cancelled, expired, replaced, or Windows requests from acting.
  • Preserved polling and original deadlines without creating duplicate pairings.
  • Added fixed, secret-free diagnostics and concise UI feedback.
  • Added lifecycle, IPC security, URL normalization, adapter, and rendered-state regressions.
  • Updated relevant desktop documentation.
  • Generated focused visual preview evidence.

Validation:

  • Desktop: 722 passed, 27 platform-skipped.
  • UI: 721 passed.
  • Typechecks and UI lint passed.
  • Production package built successfully.
  • Packaged executable/fuse inspection passed.
  • Full runtime smoke was attempted but the worker lacks an X display and xvfb-run; it stopped with the expected display validation error.

Detailed Logs:

  • Conversation: 111 messages
  • Session: 01a086c1-8c40-7512-a898-b37e232a904c

Log files stored at:

  • conversation: /tmp/claude-logs/issue-2247-2026-09-09T15-43-49-511Z-conversation.json
  • output: /tmp/claude-logs/issue-2247-2026-09-09T15-43-49-511Z-output.txt
Latest Conversation Messages

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


💡 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 pairing recovery actions

Desktop pairing recovery actions

Linux desktop waiting state with Reopen browser and Copy approval link actions for the current pending pairing.

…opy actions

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

Implementation completed successfully.
@integry

integry commented Sep 9, 2026

Copy link
Copy Markdown
Owner

/ultrafix goal=8 max=1

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

propr-dev Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

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

First action: /review

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

@integry

integry commented Sep 9, 2026

Copy link
Copy Markdown
Owner

/review

@propr-dev

propr-dev Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@integry

integry commented Sep 9, 2026

Copy link
Copy Markdown
Owner

Please make a focused CI correction on this PR. Linux x64 job 102536217864 and Linux ARM64 job 102536217871 in run 34372165681 both executed all 126 native durability tests successfully (failed=0 cancelled=0 skipped=0, child code=0), then the inventory guard failed because expected total remains 123. pairing-browser specifically reports expected=4 executed=7; other categories match. Update the authoritative expected inventory and any associated guard tests to include the three intentional new pairing-browser cases. Preserve exact-count enforcement and zero-skip/failure requirements; do not remove tests or weaken the guard. Run test:native-durability and relevant inventory tests locally, report exact counts, and leave the PR unmerged. Current review may still be completing; preserve any verified review findings and avoid unrelated changes.

@propr-dev

propr-dev Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR cleanly adds macOS/Linux pairing-recovery actions while preserving main-process ownership of approval URLs and OS operations. It is ready to merge once the pending required checks complete.

✅ Strong request binding — Recovery actions are validated against the profile, operation ID, profile/selection generations, connection claim, cancellation state, and original expiry.

✅ Secure process boundary — URLs remain in the main process, are revalidated at the final browser/clipboard sinks, and action results crossing into the renderer are strictly reduced to fixed statuses.

✅ Focused regression coverage — Tests cover stale, replaced, cancelled, expired, malformed, Windows, URL-mutation, polling-continuity, and renderer-leakage cases.

Merge blockers

No merge blockers.

Suggestions

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

No suggestions.

Score

The implementation is well-scoped, security-conscious, and thoroughly tested, with no verified code blocker or current-head failure. Merge readiness is conditional only on the outstanding checks completing successfully.

Score: 9/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 2m 59s
  • Tokens: 66,501 (61,116 in / 5,385 out)
  • Cost: $0.42

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 9, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 03b8292

Summary of Changes

Updated run-native-durability.mjs so pairing-browser expects 7 tests, deriving total inventory 126.

Validation:

  • Focused pairing-browser: 7/7 passed; failed=0, cancelled=0, skipped=0.
  • Native durability:
    • credential-service: 72/72
    • profile-store: 37/37
    • pairing-shutdown: 10/10
    • pairing-browser: 7/7
    • Total: expected=126, executed=126, passed=126, failed=0, cancelled=0, skipped=0
    • Command and child exited successfully.

Exact-count and zero-skip/failure enforcement remain unchanged. Only one line changed; no visual preview was warranted. Changes are uncommitted and the PR remains unmerged.


🤖 Implementation Details

  • Model: GPT-5.6 Sol (high)
  • Requested By: @integry
  • Time: 4m 26s
  • Tokens: 524,323 (520,945 in / 3,378 out)
  • Cost: $0.66

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: 5604683390✓

…trees/integry/propr/pr-2250-followup-2026-09-09T15-49-20/apps/desktop/scripts/run-native-durability.mjs) so pairing-browser expects 7 tests, deriving total inventory 126.

Updated [run-native-durability.mjs](/tmp/git-processor/worktrees/integry/propr/pr-2250-followup-2026-09-09T15-49-20/apps/desktop/scripts/run-native-durability.mjs) so pairing-browser expects 7 tests, deriving total inventory 126.

Validation:

- Focused pairing-browser: 7/7 passed; failed=0, cancelled=0, skipped=0.
- Native durability:
  - credential-service: 72/72
  - profile-store: 37/37
  - pairing-shutdown: 10/10
  - pairing-browser: 7/7
  - Total: expected=126, executed=126, passed=126, failed=0, cancelled=0, skipped=0
  - Command and child exited successfully.

Exact-count and zero-skip/failure enforcement remain unchanged. Only one line changed; no visual preview was warranted. Changes are uncommitted and the PR remains unmerged.

PR: #2250
Comment by: @integry (ID: 5604683390)
Model: gpt-5.6-sol
@integry

integry commented Sep 9, 2026

Copy link
Copy Markdown
Owner

/merge

@propr-dev

propr-dev Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor Author

🔀 Auto-merged 1950-epic-cross-platform-dsk into 2247/gpt-5.6-sol-desktop-pairing-provide-s-20260909-1519-wzz (clean merge) in commit a91ba9e

No conflicts were found — the merge was verified by an AI agent.


🤖 Verification Details

  • Model: gpt-5.6-sol
  • Time: 1m 46s

View Task Execution


System-triggered merge conflict resolution

…to 2247/gpt-5.6-sol-desktop-pairing-provide-s-20260909-1519-wzz
@integry
integry merged commit cc72013 into 1950-epic-cross-platform-dsk Sep 9, 2026
29 of 34 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