Repository navigation
[3923 by GPT-6.2 Sol] Fly setup wizard: one GitHub device sign-in for enrollment, first administrator and dashboard login (not three) - #3924
Conversation
The Fly wizard now uses one GitHub device sign-in to enroll the ProPR App, verify the first administrator, and sign the setup browser into the dashboard. The administrator can confirm the verified account or sign in with a different one. Pasted tokens follow the same path when they can verify installation access. The dashboard opens through a one-time browser handoff. The setup GitHub token is discarded after verification. Features that need a personal GitHub credential still require a regular GitHub sign-in. Updated the Fly setup guide. All 88 targeted tests and TypeScript checks passed. Chromium verified the handoff through a delayed API startup and confirmed that a second browser stayed signed out. ProPR-Agent: codex/gpt-6.2-sol
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
|
CI failed: Validate Changes Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit e48215b Processed 2 comments:
Summary of ChangesFixed the The API build, zero-warning lint check, and all 50 Fly wizard and route-wiring tests passed locally. A separate assertion in allInOneConfig.test.ts still fails because it expects the Review digestRisk-tiered paths
Diff size: 1 file changed, +7/−1 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Fixed the `Validate Changes` lint failure in [server.ts](/home/node/workspace/packages/api/server.ts:721). Moving Fly handoff route registration into a helper reduced `start()` complexity from 22 to 20 while preserving the demo-mode guard and route order. The API build, zero-warning lint check, and all 50 Fly wizard and route-wiring tests passed locally. A separate assertion in [allInOneConfig.test.ts](/home/node/workspace/test/allInOneConfig.test.ts:78) still fails because it expects the `startApiServer` call to omit the Fly setup option already introduced by this PR. PR: #3924 Comment by: @github-actions[bot] (ID: 7280496999) Comment by: @propr-dev[bot] (ID: 7280497904) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
|
CI failed: Full Test Suite Shard 1/4, Run Full Test Suite Please investigate and fix these CI failures.
Failure evidence
Depends on the failed job(s): Failure evidence
|
|
✅ Applied the requested follow-up changes in commit f1e5e82 Summary of ChangesFixed the only failure reported by Full Test Suite Shard 1/4. The all-in-one startup test still verifies that the API starts with All 77 targeted tests passed locally on Node.js 24.22.3, matching CI. The full shard has yet to rerun. Review digestRisk-tiered paths
Diff size: 1 file changed, +1/−1 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Fixed the only failure reported by Full Test Suite Shard 1/4. The [all-in-one startup test](/home/node/workspace/test/allInOneConfig.test.ts:78) still verifies that the API starts with `installSignalHandlers: false` and now allows the Fly setup session option alongside it. [CI job](https://github.com/integry/propr/actions/runs/46433871618/job/141900520560) All 77 targeted tests passed locally on Node.js 24.22.3, matching CI. The full shard has yet to rerun. PR: #3924 Comment by: @propr-dev[bot] (ID: 7281312636) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR is ready to merge within the reviewed scope. It reuses the enrollment identity for administrator confirmation and transfers that identity into a dashboard session without retaining the GitHub token. The changes are proportionate to the objective. ✅ Bounded browser handoff — The handoff uses a random secret, a scoped HttpOnly cookie, expiration, single-use consumption, and administrator and whitelist checks. ✅ Account switching remains verified — A replacement administrator must pass installation-access verification, with ownership checks after asynchronous verification and during configuration commit. ✅ Relevant regression coverage — Added tests cover automatic dashboard sign-in, account switching, token fallback, expired handoffs, replay rejection, and unauthenticated browsers. This assessment uses static review of the supplied code; no commands were run. Current-head checks report 16 passed and no failures, superseding the historical lint failure. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Test environment override invalidationConsider adding focused coverage for ScoreThe implementation meets the stated objective with appropriate authentication boundaries and substantial regression coverage. No merge blockers were established, and current-head checks are passing. Score: 9/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
🔀 Resolved merge conflicts from Conflicting Files
Resolution SummaryResolved all three merge conflicts for PR #3924 in the workspace. A repository-wide scan found no remaining conflict markers. TypeScript type checking,
Git still lists the three paths as unresolved in its index because the read-only filesystem prevented 🤖 Resolution Details
System-triggered merge conflict resolution |
|
/merge |
Automatically resolved merge conflicts after merging target branch into PR branch. Resolved conflicts in: - docs/docs/tutorials/setup-fly.md - src/flyLaunch/setupWizard.ts - test/flyLaunchWizard.test.ts PR: #3924 Model: GPT-6.2 Sol
|
🔀 Auto-merged No conflicts were found — the merge was verified by an AI agent. 🤖 Verification Details
System-triggered merge conflict resolution |
58892a1
into
3758-epic-runtime-abstraction-sc0
AI Implementation Summary
Closes #3923
Branch:
3923/gpt-6.2-sol-fly-setup-wizard-one-gith-20261130-1333-e3pCommits: ✅ Changes committed (dd3a0b1)
AI Processing Completed
Execution Details:
Summary:
The Fly wizard now uses one GitHub device sign-in to enroll the ProPR App, verify the first administrator, and sign the setup browser into the dashboard. The administrator can confirm the verified account or sign in with a different one. Pasted tokens follow the same path when they can verify installation access.
The dashboard opens through a one-time browser handoff. The setup GitHub token is discarded after verification. Features that need a personal GitHub credential still require a regular GitHub sign-in.
Updated the Fly setup guide. All 88 targeted tests and TypeScript checks passed. Chromium verified the handoff through a delayed API startup and confirmed that a second browser stayed signed out.
Review digest
Risk-tiered paths
packages/api/auth.ts(+22/−0): auth-looking pathpackages/api/flySetupSession.ts(added, +37/−0)packages/api/server.ts(+4/−1)src/allInOne.ts(+5/−2)src/flyLaunch.ts(+9/−4)src/flyLaunch/connectRoutes.ts(+56/−23)src/flyLaunch/connectSetup.ts(+6/−5)src/flyLaunch/deviceEnrollment.ts(+12/−3)src/flyLaunch/launchConfig.ts(+1/−0)src/flyLaunch/setupHttp.ts(+16/−0)src/flyLaunch/setupLayout.ts(+5/−1)src/flyLaunch/setupPages.ts(+27/−9)src/flyLaunch/setupWizard.ts(+14/−23)docs/docs/tutorials/setup-fly.md(+7/−5)test/flyLaunchWizard.test.ts(+158/−24)Diff size: 15 files changed, +379/−100 lines
View task for the run's logs and conversation.
This PR was created automatically by ProPR after processing issue #3923.
💡 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
Fly administrator confirmation
The wizard shows the verified GitHub account and offers to continue or use a different account.
Full-size original