Skip to content

fix(frontend): remember OIDC return URL and drop unreachable AdminPanel render on main - #551

Closed
seonghobae wants to merge 1 commit into
mainfrom
fix/main-admin-panel-oidc-return-url
Closed

fix(frontend): remember OIDC return URL and drop unreachable AdminPanel render on main#551
seonghobae wants to merge 1 commit into
mainfrom
fix/main-admin-panel-oidc-return-url

Conversation

@seonghobae

@seonghobae seonghobae commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • main's current tip (ef6f5a5f) fails pnpm run build: the unauthenticated login screen builds returnUrl via raw string concatenation instead of returnUrlFromLocation()/rememberOidcReturnUrl(), leaving both imports unused (TS6192), and renders an <AdminPanel accessToken={accessToken} /> on that same branch where accessToken: string | undefined (TS2322).
  • Verified directly against origin/main via a worktree build before touching anything: pnpm run build reproduces both errors on the unmodified tip.
  • Fix: use the existing helpers to persist and construct the return URL, and delete the unreachable login-screen AdminPanel render (the authenticated branch's occurrence is already guarded by the earlier if (!accessToken) return).
  • Adds the matching sessionStorage assertion to App.test.tsx.

This same bug pattern has been showing up independently across many feature branches all session (each presumably rebased from/merged through this same broken tip). Landing the fix on main directly should stop new branches from inheriting it.

Test plan

  • pnpm run lint — clean
  • pnpm run build — clean (previously failed with TS6192 + TS2322)
  • pnpm exec vitest run --testTimeout 20000 — 140/140 passed
  • uv run pytest -q — 656 passed, 114 skipped

https://claude.ai/code/session_01B5M79L945DMyMs3sg5yJ14


Open in Devin Review

…el render

main's login screen builds returnUrl via raw string concatenation
instead of returnUrlFromLocation()/rememberOidcReturnUrl(), leaving
both imports unused (TS6192) and rendering an AdminPanel with
accessToken: string | undefined on the unauthenticated branch
(TS2322) -- pnpm run build fails on main's current tip. This is the
same bug pattern fixed independently across several feature branches
this session; landing it on main directly stops every branch built
from main's tip from inheriting the broken build.
@coderabbitai

coderabbitai Bot commented Aug 24, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 17 minutes.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 04334180-2a6e-4b8c-9ae8-2c8b86291c29

📥 Commits

Reviewing files that changed from the base of the PR and between ef6f5a5 and ab1c112.

📒 Files selected for processing (2)
  • frontend/src/App.test.tsx
  • frontend/src/App.tsx

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Open in Devin Review

Comment thread frontend/src/App.tsx
@seonghobae
seonghobae enabled auto-merge August 24, 2026 01:23
@opencode-agent
opencode-agent Bot disabled auto-merge August 24, 2026 02:31
@seonghobae

Copy link
Copy Markdown
Contributor Author

Superseded — main's tip (78a65f9, merged via #426) already carries an equivalent fix for this exact bug (commit 11a60b3, "fix(frontend): repair the inherited login/admin-panel build break"). Verified pnpm run build is clean on the current main tip. Closing this PR rather than merging a duplicate fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant