Enable local Review without a PR#349
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 559bdd33bf
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Codex PR Test Automation - QA SummaryStatus: Passed automated first-pass QA for PR #349 on 2026-07-22 UTC. Updated after review-thread fix Target confirmed: Test environment: PR branch Automated Checks
UI Journeys Exercised
Screenshot GalleryNo PR URLPR URL PresentLimits / Not Covered
|




Summary
Closes #341.
CombinedDiffViewwhen the session has nogitStatus.prUrl.CombinedDiffViewremount handling so async execution responses are accepted after the panel remounts.Visual Overview
Behavior
Without a PR, Review now opens to local changes instead of being disabled or showing "Review unavailable". If the stored Review preference is
githubbut no PR URL is available, the panel temporarily resolves to local mode in React state so localStorage is not overwritten.When a PR URL exists, GitHub mode still renders the GitHub files view through
BrowserSurface. When no PR URL exists, the GitHub toggle is disabled with "Open a PR to enable", while Local remains usable.Testing
pnpm --filter frontend test -- reviewModePreference.test.tspnpm --filter frontend typecheckpnpm --filter frontend lint(passes with existing repo warnings)pnpm run build:frontendRemaining Validation
Codex QA Summary
Status: Passed automated first-pass QA on 2026-07-22 UTC. Review feedback was addressed in
c72ca71; screenshot artifacts are hosted on the existing GitHub Release tagpr-assets.Environment: branch
issue-341-local-review, targetmain; isolated Electron run usedPANE_DIR=~/.pane_pr_349_qaand Playwright port4539.Covered: Review opens in Local mode without a PR URL even when saved preference is
github; GitHub toggle is disabled while Local remains selected; with PR #349 URL present, GitHub mode points to/pull/349/filesand switching back to Local renders the mocked local diff.Checks: frontend Review preference tests, frontend/main typecheck, frontend/main build, frontend lint, and temporary Electron Playwright QA all passed. After
c72ca71,pnpm --filter frontend test -- reviewModePreference.test.ts,pnpm --filter frontend typecheck, andpnpm --filter frontend lintpassed again. Lint reports existing warnings only.Artifacts: