Repository navigation
[2162 by GPT-5.6 Sol] Fix desktop Connect enrollment with visible GitHub identity and explicit installation selection - #2167
Conversation
…sible GitHub Implemented by ProPR AI using gpt-5.6-sol model. Implementation completed successfully.
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
|
✅ Applied the requested follow-up changes in commit 141a44e Summary of ChangesFixed the PR build failure in LocalSetupWizard.tsx by extracting recovery details and setup-summary rendering, eliminating both complexity warnings without changing behavior. Validation passed:
No preview was generated because the refactor produces no visual change. Changes were not committed. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…it-processor/worktrees/integry/propr/pr-2167-followup-2026-09-07T10-09-51/propr-ui/src/desktop/LocalSetupWizard.tsx:40) by extracting recovery details and setup-summary rendering, eliminating both complexity warnings without changing behavior. Fixed the PR build failure in [LocalSetupWizard.tsx](/tmp/git-processor/worktrees/integry/propr/pr-2167-followup-2026-09-07T10-09-51/propr-ui/src/desktop/LocalSetupWizard.tsx:40) by extracting recovery details and setup-summary rendering, eliminating both complexity warnings without changing behavior. Validation passed: - UI lint with zero warnings - UI typecheck - 660 UI tests - Production UI build - CLI typecheck and lint - CLI release packaging - Desktop typecheck - `git diff --check` No preview was generated because the refactor produces no visual change. Changes were not committed. PR: #2167 Comment by: @github-actions[bot] (ID: 5569025584) Model: gpt-5.6-sol
|
/ultrafix goal=9 max=2 Review GitHub identity, explicit installation selection, permission recovery, and cancellation/retry correctness. Preserve server authorization and keep secrets out of renderer state. Windows is deferred. Fix concrete blockers only, not optional polish. Target remains the desktop epic, never main. |
|
🔄 Ultrafix loop started (goal: 9/10, max cycles: 2) First action:
|
|
/review Ultrafix kickoff was acknowledged but no desktop review job appeared in the live queue. Review the current head, including pending installation-choice cancellation, stale decisions, and GitHub account change behavior. Concrete blockers only; Windows remains deferred. |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
|
/fix Independent root review found a concrete recovery blocker in GithubInstallationChoice: its useEffect depends on selected and unconditionally calls setSelected(identity.selectedInstallationId) whenever that server field is nonempty. After a rejected enrollment, selectedInstallationId remains the rejected installation. Clicking a different radio changes selected, reruns the effect, and immediately resets the choice to the rejected ID. This prevents the user from using the advertised choose-another-installation recovery. Fix selection synchronization so a still-current snapshot does not overwrite deliberate local radio changes. Reset/reconcile only on an actual authoritative identity/list/selection transition, with stale selections cleared appropriately. Add a regression that starts in authorization-failed with selectedInstallationId=100, clicks installation 200, and verifies Continue submits 200. Preserve cancellation, account-change, and refreshed-list handling. Coordinate with the in-flight review so this finding is fixed once, not in duplicate. Keep changes on this PR/desktop epic; Windows remains deferred. |
🔍 AI Code Review — codex:gpt-5.6-solOverall EvaluationThis PR substantially improves GitHub Connect enrollment, but needs minor correctness fixes before merge. ✅ Server authorization preserved — Installation access is freshly revalidated, and enrollment 403s return to the chooser without treating discovery access as ownership. ✅ Renderer remains secret-free — IPC exposes only validated identity and installation metadata; tokens remain in the trusted process. ✅ Pending chooser cancellation settles — The controller resolves a pending choice before aborting, with focused coverage preventing duplicate enrollment at that point. The five current failures are Windows-only and explicitly deferred, so they are not actionable findings here, though the current head is not green. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F1: 🔴 Cancellation can still enroll
F2: 🔴 Account changes retain stale selection
SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe core authorization and IPC design is strong and well tested, but the two cancellation/stale-decision regressions block merge. Current Windows checks also remain failed, although they are deferred from this review. Score: 6/10 🤖 Review Details
🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit ae89ed1
Summary of ChangesImplemented F1 and F2 on PR #2167; Windows remains untouched.
Validation passed:
No commit was created. Visual previewChoose another installation after authorization failureAfter installation 100 is rejected, installation 200 remains deliberately selected and Continue will submit it. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
/fix F1 F2 Address both confirmed review findings from comment 5569537815. F1: check cancellation after async revalidation and immediately before enrollment/local token persistence; add controlled-await cancellation regressions. F2: reset explicit selection on reauthentication/new identity context even for shared installation IDs or same-username reauth. Preserve intentional local selection within an unchanged chooser context. The prior root picker-reset fix (comment 5569474207) is already running. Build on that result and implement each correction once; do not undo its rejected-100 -> chosen-200 regression. Keep scope focused; Windows deferred; no optional polish. |
Implemented F1 and F2 on PR #2167; Windows remains untouched. - Added cancellation guards after installation revalidation and before applying enrollment configuration in [engine.ts](/tmp/git-processor/worktrees/integry/propr/pr-2167-followup-2026-09-07T10-53-25/packages/local-setup/src/engine.ts). - Fixed radio synchronization so unchanged snapshots cannot overwrite deliberate choices. - Account reauthentication now clears selection even with unchanged usernames/shared installation IDs. - Refreshed lists clear unavailable local selections. - Added the requested `authorization-failed`, selected `100`, choose `200`, submit `200` regression. - Generated focused visual-preview evidence. Validation passed: - 63 engine tests - 14 renderer integration tests - 8 setup-controller tests - Local setup, CLI, and UI typechecks - CLI and UI lint - `git diff --check` No commit was created. PR: #2167 Comment by: @integry (ID: 5569474207) Model: gpt-5.6-sol
|
ℹ️ No authorized review findings were selected. No files were changed because this Processing comment ID: 5569546423✓ |
|
/review Review corrected head ae89ed1. Root independently read the full correction: rejected-installation radio reset fixed, reauth clears selection, cancellation checked after revalidation and before token persistence, with regressions. Although queued /fix F1 F2 reported no authorized selections, the preceding correction commit contains both review fixes; assess actual code, not that no-op report. Verify F1/F2 and root picker finding are resolved. Concrete blockers only; Windows deferred; no optional polish. |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-5.6-solOverall EvaluationThis PR correctly adds explicit GitHub installation selection, owner-authorization recovery, account reauthentication, and cancellation safeguards, but it needs a minor correction before merge because the shared engine regresses the existing CLI/TUI zero-installation flow. ✅ Cancellation fences restored — The engine checks cancellation after asynchronous revalidation and again before persisting the returned relay configuration. ✅ Picker recovery fixed — The renderer now preserves deliberate local radio changes while reconciling genuine account, installation-list, and authoritative-selection transitions. ✅ Reauthentication resets choice — Successful reauthentication clears the engine selection, persisted identity, and renderer-local selection, including same-username scenarios. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F3: 🔴 Zero-installation CLI recovery regressed
SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe principal desktop corrections are sound and well tested, but the shared-engine regression leaves two existing interactive setup frontends without usable zero-installation recovery. Current checks have no reported failures but remain pending. Score: 6/10 🤖 Review Details
🤖 Review by ProPR |
|
/fix F3 Fix only the confirmed shared CLI/TUI zero-installation recovery regression from review 5569831110. Distinguish the desktop action-capable installation chooser from existing legacy string-returning CLI/TUI hooks explicitly, or preserve legacy confirm/open/wait/refetch behavior without sending empty options to them. Add regression coverage for both legacy interactive hosts with zero initial installations and desktop zero-install install/refresh/cancel. Preserve all now-verified desktop picker, account-change, authorization and cancellation fixes. Keep changes narrow, no optional polish or Windows work. This PR will subsequently need the latest desktop epic merged in to incorporate #2166. |
|
✅ Applied the requested follow-up changes in commit a37927f
Summary of ChangesImplemented F3 only.
Validation passed:
No visual preview was added because this restores interaction routing without changing rendered UI components. No commit was created. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
/merge PR #2166 has now merged into our target desktop epic (merge commit 61e9d6b). After the active F3 correction finishes, merge target branch 1950-epic-cross-platform-dsk into this PR; do not merge main or merge this PR yourself. Resolve overlaps preserving both changes: no Demo option; legacy Demo cannot keep/retry itself; relay requires WebSocket including old saved polling recovery; human-readable summary/recovery; GitHub username/installation picker; rejected selection recovery; reauth selection reset; cancellation fences; and F3 legacy CLI/TUI zero-installation recovery. Update relay test fixtures from polling to routing_websocket where the desktop now rejects polling. Run the combined focused UI/controller/engine tests, typecheck/build, and capture the combined wizard preview. Keep closing link to #2162. |
Implemented F3 only. - Split legacy string selection from desktop action-capable selection in [engine.ts](/tmp/git-processor/worktrees/integry/propr/pr-2167-followup-2026-09-07T11-19-16/packages/local-setup/src/engine.ts:217). - Restored CLI/TUI confirm → open → wait → refetch behavior without passing empty options. - Preserved desktop zero-install install, refresh, authorization recovery, and cancellation behavior. - Added regressions for sequential CLI, Ink TUI, and desktop. Validation passed: - Local-setup, CLI, and desktop typechecks - CLI lint - 63 setup-engine tests - 26 sequential CLI tests - 15 Ink TUI tests - Full desktop suite: 638 tests, 612 passed, 26 skipped, 0 failed No visual preview was added because this restores interaction routing without changing rendered UI components. No commit was created. PR: #2167 Comment by: @integry (ID: 5569839246) Model: gpt-5.6-sol
|
🔀 Resolved merge conflicts from Conflicting Files
Resolution SummaryResolved all merge conflicts in the three requested files without committing:
Verification:
Git could not mark the files resolved because the linked worktree index is root-owned; 🤖 Resolution Details
System-triggered merge conflict resolution |
|
/fix After the current merge-resolution task publishes its combined commit, correct the three stale enrollment fixtures in apps/desktop/src/setup-controller.test.ts: valid Connect requests must use routing_websocket rather than polling. Preserve the explicit negative test rejecting relay + polling; do not weaken production validation. The merge task reported it could not edit this non-conflicted file within its scope. Run the controller tests, combined wizard integration tests, and desktop/local-setup typechecks. Keep this correction narrow and preserve F3 legacy CLI/TUI recovery. If the merge task fails to publish, inspect its final state and integrate the target desktop epic first; never merge main or this PR into main. |
…gpt-5.6-sol-fix-desktop-connect-enrol-20260907-0934-ge3 Automatically resolved merge conflicts after merging target branch into PR branch. Resolved conflicts in: - apps/desktop/src/setup-controller.ts - propr-ui/src/desktop/LocalSetupWizard.integration.test.tsx - propr-ui/src/desktop/LocalSetupWizard.tsx PR: #2167 Model: gpt-5.6-sol
|
ℹ️ No authorized review findings were selected. No files were changed because this Processing comment ID: 5570109685✓ |
|
Please implement this narrow follow-up on the newly combined head 100eeb4: update valid Connect enrollment fixtures in apps/desktop/src/setup-controller.test.ts to use routing_websocket instead of polling. The merge task found three controller failures caused by these stale fixtures. Preserve the explicit negative test that rejects relay + polling; do not weaken production validation. Run the controller suite, combined LocalSetupWizard integration suite, and desktop/local-setup typechecks. This is an ordinary implementation request, not a selection of an F-number review finding. Keep F3 CLI/TUI recovery and all merged enrollment/No Demo/WebSocket behavior intact. Keep the PR targeting the desktop epic, never main. |
|
✅ Applied the requested follow-up changes in commit cf98a99 Summary of ChangesUpdated setup-controller.test.ts:
Validation passed:
No preview generated because this is test-fixture-only. No commit created. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…s/desktop/src/setup-controller.test.ts:49): Updated [setup-controller.test.ts](/home/node/workspace/apps/desktop/src/setup-controller.test.ts:49): - Valid Connect request/environment fixtures now use `routing_websocket`. - Preserved explicit relay + polling rejection and stale polling recovery tests. - No production code or visual behavior changed. Validation passed: - Controller suite: 13/13 - Combined `LocalSetupWizard` integration suite: 18/18 - Desktop typecheck - Local-setup typecheck - `git diff --check` No preview generated because this is test-fixture-only. No commit created. PR: #2167 Comment by: @integry (ID: 5570129874) Model: gpt-5.6-sol
|
/review Final combined-head review after Ultrafix corrections: cf98a99 includes the desktop epic merge and test-fixture correction. Verify F1/F2/F3 remain resolved; legacy CLI/TUI zero-install recovery, desktop empty-list actions, explicit GitHub identity/selection and owner-only enrollment recovery, cancellation, no Demo/legacy Demo guard, and mandatory Connect WebSocket remain coherent together. Focus only on actual functional/security regressions, no optional polishing or Windows blockers. Root independently inspected the corrections and conflict resolution; focused 13 controller + 18 wizard tests and desktop/local-setup typechecks pass. Do not merge the PR or main. |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-5.6-solOverall EvaluationThe combined head is ready to merge within scope, conditional on the remaining required checks completing successfully. The implementation coherently adds explicit GitHub identity and installation selection without exposing secrets, while preserving legacy CLI/TUI behavior and desktop policy constraints. ✅ Cancellation fences remain intact — ✅ Identity transitions are correctly reconciled — Successful reauthentication clears the engine selection and persisted desktop identity, while the renderer preserves deliberate choices only within an unchanged authoritative context. ✅ Host-specific recovery is coherent — Legacy CLI/TUI hosts recover from zero installations before invoking their non-empty string picker; desktop receives empty lists through its action-capable chooser and offers install, refresh, reauthentication, and cancellation. Desktop Demo rejection and Connect WebSocket enforcement also remain in place. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe changed paths are internally consistent and have focused regression coverage for the previously reported F1/F2/F3 issues. The authoritative check status has no failures, although 15 checks remain pending. Score: 9/10 🤖 Review Details
🤖 Review by ProPR |
|
/merge Merge the current target epic into this PR, specifically the reviewed macOS subprocess test fix from #2170 (epic bfb7009). Preserve the GitHub installation chooser and enrollment recovery, and the no-demo/WebSocket setup policy. Target remains the desktop epic, not main. Run focused setup and bounded-command regressions and report the resulting head; no unrelated implementation changes. |
|
🔀 Auto-merged No conflicts were found — the merge was verified by an AI agent. 🤖 Verification Details
System-triggered merge conflict resolution |
…to 2162/gpt-5.6-sol-fix-desktop-connect-enrol-20260907-0934-ge3

AI Implementation Summary
Closes #2162
Branch:
2162/gpt-5.6-sol-fix-desktop-connect-enrol-20260907-0934-ge3Commits: ✅ Changes committed (7d1c44a)
AI Processing Completed
Execution Details:
Summary:
Implemented GitHub Connect enrollment flow for issue #2162.
Key changes:
Validation passed:
Detailed Logs:
01a07b38-d2d5-7083-857e-46bab19235e7Log files stored at:
/tmp/claude-logs/issue-2162-2026-09-07T10-05-34-838Z-conversation.json/tmp/claude-logs/issue-2162-2026-09-07T10-05-34-838Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #2162.
💡 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
GitHub installation selection and permission recovery
Desktop setup displays the authenticated GitHub username, user/organization installations, explicit selection, and actionable owner-authorization recovery controls.