Repository navigation
Description
Parent
A bug found in the owner's first sign-in on openwiz.dev/app (2026-11-19), routed to spec #1223's fleet. Fixes AP5's (#1258) empty state. The pull request lives in openwizdev/WizSite. AP8 (#1261) merges only after this does.
What to build
A first-time user who signs in can actually reach their repositories. Signing in authorizes the OpenWiz Viewer App but doesn't install it, so the repository picker is empty, and its "Choose repositories on GitHub" link opens GitHub's installations settings, which are also empty for a new user. Instead:
- The link goes to
https://github.com/apps/openwiz-viewer/installations/new. - When a signed-in user has no installations, the page says it plainly ("One more step: let OpenWiz Viewer read your repositories"), with that as the main button rather than a small link. After installing, the user lands back in the app and sees the picker filled.
- Check whether the Viewer App's "Request user authorization (OAuth) during installation" setting could make first sign-in one step, and record the finding on this ticket. Changing the App's settings is the owner's call.
Owned paths
app/shell.jsinopenwizdev/WizSite(shared: the repository picker's empty state and its link)- the app's checks for this case under
scripts/inopenwizdev/WizSite(shared: those cases)
Relies on: nothing
Links
none
Acceptance criteria
- A signed-in user with zero installations sees the one-more-step message with the install button, linked to
apps/openwiz-viewer/installations/new; checked against a recorded GitHub answer, red first - A user with installations still sees the picker as before
- The OAuth-during-installation finding is recorded on this ticket
- Jake's chosen look (AP5) is unchanged apart from this state
- Test rule (The test rule: what earns a test, and what never does #687): every new test protects a supported behaviour, a contract others rely on or a safety invariant, and the pull request says per test
catches: <the bug>, orno new test: <why>. No mock-returns-stub, source mirroring, compiler re-checks, quota tests or unreachable cases; a bug gets a failing test first.
Proof
The app check for the zero-installation case, red then green, and the preview's empty state.
Builder Claude Code Opus 5.5 Medium and reviewer Codex Sol 6.2 Medium, other family, no helper agents, on the cross-repository route.
Activity
jparker2006 commentedon Nov 19, 2026
Approved on its own by the orchestrator, 2026-11-19: fix the empty Viewer installation path before AP8 merges. Routed to the #1223 fleet.
Private record: https://github.com/jparker2006/ClosedWiz/issues/3065#issuecomment-7004619748
jparker2006 commentedon Nov 19, 2026
launch-fleet: start checked, branch room/1325-install-viewer
jparker2006 commentedon Nov 19, 2026
Finding: "Request user authorization (OAuth) during installation" would not make first sign-in one step in this app (builder, 2026-11-19, from GitHub's official docs; no App setting was read or changed, no live credentials used)
What GitHub documents:
https://github.com/login/oauth/authorize?client_id=CLIENT_IDand then to the first callback URL with acode(Generating a user access token for a GitHub App). The documented redirect carries onlyclient_id, not a state the app chose.?state=…to return people to that state after they install or authenticate (Sharing your GitHub App), but the setup URL'sinstallation_idmust not be trusted on its own (About the setup URL).What that means for AP3's state-bearing sign-in (
functions/api/sign-in/[step].js,app/shell.jsboot):/api/sign-in/startminted and bound to its own host-only cookie;/api/sign-in/tokenrefuses a code without that cookie, and the app only finishes sign-in when bothcodeandstateare present. An install started fromgithub.com/apps/openwiz-viewer/installations/newnever passes through/start, so the install-time code would arrive with no helper state and would be dropped: the user would still have to press Sign in, i.e. still two steps.?state=, relying on GitHub passing it through the install-then-authorize redirect, which the docs above don't state explicitly. That is a helper and App-setting change, outside this ticket and the owner's call./apptoday (the manifest setsrequest_oauth_on_install: false,setup_url: https://openwiz.dev/app).Recommendation: leave the setting off. The PR ships the safe two-step path: sign in, then the direct install button, and GitHub's setup URL returns the user to the filled picker. A one-step flow would be a separate ticket with its own live check of the state pass-through.
jparker2006 commentedon Nov 19, 2026
Builder status (edited in place)
68458cc(merge9941bae); builder archivedjparker2006 commentedon Nov 19, 2026
The minimum supporting edit to app/data.js is granted for R1: pass the existing installation result through to the picker. No other change to app/data.js. Ruling: https://github.com/jparker2006/ClosedWiz/issues/3065#issuecomment-7005182866 (part 1).
jparker2006 commentedon Nov 19, 2026
launch-fleet: cross-repository merge verified in openwizdev/WizSite#28 at approved head 68458cc56e66554aac0452f165809bf60585ea2f. Merge commit 9941baef059f804ad61b25180441649fcf499830.