Skip to content

[2163 by GPT-5.6 Sol] Remove desktop Demo setup and require WebSocket intake for ProPR Connect - #2166

Merged
integry merged 2 commits into
1950-epic-cross-platform-dskfrom
2163/gpt-5.6-sol-remove-desktop-demo-setup-20260907-0934-m9u
Sep 7, 2026
Merged

integry merged 2 commits into
1950-epic-cross-platform-dskfrom
2163/gpt-5.6-sol-remove-desktop-demo-setup-20260907-0934-m9u

Conversation

@propr-dev

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

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #2163

Branch: 2163/gpt-5.6-sol-remove-desktop-demo-setup-20260907-0934-m9u
Commits: ✅ Changes committed (3a5f85b)


AI Processing Completed

Execution Details:

Summary:
Implemented GitHub issue #2163.

Key changes:

  • Removed Demo from desktop setup while preserving legacy-save recovery.
  • Fixed ProPR Connect to automatic WebSocket intake with no polling/webhook choices.
  • Rejects invalid Demo and relay+non-WebSocket IPC requests.
  • Migrates stale saved relay+polling configurations to WebSocket and requires confirmation, including completed setups.
  • Added readable ProPR Connect/WebSocket labels to summary and recovery screens.
  • Preserved Custom GitHub App intake options and shared CLI Demo behavior.
  • Added schema, controller, resume, mode-switching, and UI regression coverage.

Verification:

  • UI: 663 tests passed.
  • Desktop: 614 passed, 26 platform-gated skips, 0 failures.
  • Final targeted tests: 27 passed.
  • Desktop/UI typechecks and affected-file lint passed.
  • Captured focused real-renderer preview evidence.

Detailed Logs:

  • Conversation: 117 messages
  • Session: 01a07b38-d80a-7502-8c5d-80fb0463ff4d

Log files stored at:

  • conversation: /tmp/claude-logs/issue-2163-2026-09-07T09-56-56-136Z-conversation.json
  • output: /tmp/claude-logs/issue-2163-2026-09-07T09-56-56-136Z-output.txt
Latest Conversation Messages

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


💡 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

ProPR Connect WebSocket intake

ProPR Connect WebSocket intake

Desktop setup shows ProPR Connect's required persistent WebSocket intake as readable, fixed configuration instead of offering polling or webhook choices.

…WebSocket in

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 goal=9 max=2

Review this focused desktop option-policy change. Windows is explicitly deferred. Fix only concrete correctness or regression blockers, not optional polish. Target remains the desktop epic, never main.

@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: 9/10, max cycles: 2)

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 kickoff was acknowledged but no desktop review job appeared in the live queue. Review the current head for concrete blockers only; Windows remains deferred.

@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 needs a localized correction before merge. Its policy enforcement and recovery design are generally strong, but legacy Demo recovery can still preserve Demo by selecting “Keep existing configuration,” defeating a core objective. The five current Windows failures are deferred and cannot be traced to PR-changed code from the supplied evidence, so they are not actionable findings.

✅ Defense-in-depth policy enforcement — ProPR Connect is fixed to WebSocket in the UI and incompatible requests are rejected by setup-schema.ts.

✅ Explicit stale-state recovery — Persisted Demo and relay-plus-polling configurations are surfaced for review, including completed setups, with readable labels and focused regression coverage.

Merge blockers

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

F1: 🔴 Legacy Demo can be retained

  • Required behavior: Legacy desktop Demo saves must require selection of ProPR Connect or Custom GitHub App; recovery must not allow the unsupported Demo configuration to remain active.
  • Evidence: propr-ui/src/desktop/LocalSetupWizard.tsx:103 — the newly added legacy-Demo recovery form still offers “Keep existing configuration”; requestFrom at propr-ui/src/desktop/LocalSetupWizard.tsx:21 converts that selection into an accepted { mode: 'keep' } request, causing the setup engine to preserve the underlying Demo configuration.
  • Minimum fix: Exclude “Keep existing configuration” while recovering a saved Demo configuration, and reject a keep-mode reconfigured retry in the controller when the loaded resume state originated from Demo so an untrusted renderer cannot bypass the restriction. Add coverage for attempting this transition.

Suggestions

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

No suggestions.

Score

The implementation is well targeted and thoroughly tested overall, but the remaining bypass directly undermines legacy Demo migration. The deferred current-head Windows failures also prevent treating the head as fully green.

Score: 6/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 2m 37s
  • Tokens: 64,925 (60,362 in / 4,563 out)
  • Cost: $0.39

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

Copy link
Copy Markdown
Owner

/fix F1

Address the confirmed legacy Demo recovery issue only: a saved Demo configuration must require Connect or Custom GitHub App, and keep-mode must not preserve Demo through controller retry. Add focused UI and controller regression tests, preserve ordinary non-Demo keep behavior and shared CLI Demo support. Do not pursue Windows failures or optional polish.

@propr-dev

propr-dev Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit f44d2db

Addressed 1 AI review comment (IDs: 5569508376)

Summary of Changes

Implemented F1 only.

  • Legacy Demo recovery now offers only ProPR Connect or Custom GitHub App in LocalSetupWizard.tsx.
  • Controller retries reject forged keep requests when the loaded resume configuration is Demo in setup-controller.ts.
  • Added UI and controller regressions, including ordinary non-Demo keep coverage.
  • Captured the required focused visual preview.

Verification passed:

  • UI tests: 15
  • Controller tests: 10
  • Shared CLI Demo regression: 1
  • Desktop and UI typechecks
  • Focused ESLint
  • git diff --check

Visual preview

Legacy Demo recovery choices

Legacy Demo recovery choices

Desktop recovery requires ProPR Connect or Custom GitHub App and does not offer Keep existing configuration.


🤖 Implementation Details

  • Model: GPT-5.6 Sol (high)
  • Requested By: @integry
  • Time: 10m 50s
  • Tokens: 2,078,225 (2,063,730 in / 14,495 out)
  • Cost: $1.95

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

Implemented F1 only.

- Legacy Demo recovery now offers only ProPR Connect or Custom GitHub App in [LocalSetupWizard.tsx](/tmp/git-processor/worktrees/integry/propr/pr-2166-followup-2026-09-07T10-51-12/propr-ui/src/desktop/LocalSetupWizard.tsx:42).
- Controller retries reject forged `keep` requests when the loaded resume configuration is Demo in [setup-controller.ts](/tmp/git-processor/worktrees/integry/propr/pr-2166-followup-2026-09-07T10-51-12/apps/desktop/src/setup-controller.ts:124).
- Added UI and controller regressions, including ordinary non-Demo keep coverage.
- Captured the required focused visual preview.

Verification passed:

- UI tests: 15
- Controller tests: 10
- Shared CLI Demo regression: 1
- Desktop and UI typechecks
- Focused ESLint
- `git diff --check`

PR: #2166
Comment by: @integry (ID: 5569514097)
Model: gpt-5.6-sol
@integry

integry commented Sep 7, 2026

Copy link
Copy Markdown
Owner

/review

Post-fix review of head f44d2db. Verify F1 is resolved by the focused recovery UI/controller guard and regression tests. Root independently inspected the correction. Report concrete remaining blockers only; Windows is deferred, no optional polish.

@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 Demo from desktop setup, fixes ProPR Connect to WebSocket intake, and preserves legacy-save recovery. F1 is resolved. The PR is ready to merge within scope once pending required checks complete; no current-head failures are reported.

✅ Legacy Demo recovery is guarded — The UI keeps recovery review reachable, hides “Keep existing configuration” for saved Demo setups, and the controller rejects keep-mode retries that could preserve Demo.

✅ Focused regression coverage — UI and controller tests verify legacy Demo replacement, stale relay/polling correction, and ordinary non-Demo keep behavior.

✅ Boundary policy is consistent — Desktop request parsing rejects Demo and relay with non-WebSocket intake while retaining supported Custom GitHub App modes.

Merge blockers

No merge blockers.

Suggestions

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

No suggestions.

Score

The changed behavior satisfies the objective with focused safeguards and regression coverage. Fifteen checks remain pending, but there are no known current-head failures or verified code blockers.

Score: 9/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 1m 46s
  • Tokens: 60,803 (57,758 in / 3,045 out)
  • Cost: $0.33

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 61e9d6b into 1950-epic-cross-platform-dsk Sep 7, 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