Repository navigation
Conversation
A finished turn anywhere in the environment bumped the same token as the Refresh button, so the Code tab cleared its diff pages, showed the loading state, and remounted the viewer at the top. Turn refreshes now re-read the first page in place; the Refresh button and a new PR revision still start over. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: pingdotgg/t3code/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe Code tab now receives manual and background refresh tokens separately. When the background token changes, it refreshes diff and viewed-file data from the first diff page while retaining accumulated slices. ChangesPull request code refresh
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to Turn completion can refresh the Code tab without resetting its scroll position, and no actionable merge-blocking issue remains after normal checks. Security Architecture ReviewSecurity architecture risk: 🟡 Moderate · up to Background refreshes keep the Code tab stable, but a switch between environments showing the same pull request may leave pages from the previous environment on screen. No new server access or authorization bypass is evident; the concern is which cached pages the UI displays. Retained concerns
Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Hardening Proposals
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a small, focused UI bug fix that separates background turn refreshes from explicit diff reloads, preserving the existing viewer and scroll position while retaining hard reload behavior when needed. It introduces no schema, deployment, security, billing, default, or static-analysis changes. You can add or adjust custom eligibility rules. Learn more. |
What Changed
A turn finishing no longer resets an open pull request's Code tab. The tab re-reads the first diff page in the background and keeps its viewer, its loaded pages, and its scroll position on screen.
The Code tab now receives two refresh signals instead of one combined token:
updatedAt). Unchanged: the diff starts over from page one.Why
An open PR Code view jumped back to the top whenever a turn finished anywhere in the environment: the same thread, another worktree, or another project. The server publishes one refresh epoch per finished turn. The panel added that epoch to the same token as the Refresh button, so the Code tab cleared its pages, showed "Loading pull request diff...", and mounted a new viewer at scroll 0.
That signal means "something may have changed", and usually nothing has. A soft re-read handles both cases. A push that really changes the diff also changes the PR's
updatedAt, so it still gets the full reload, and pages after the first cannot go stale.UI Changes
Setup: thread A runs a turn while thread B shows a PR's Code tab, scrolled to 820 px.
Before: B jumps to the top when A finishes.
abc-reset.mp4
After: B stays at 820 px. The viewer stays the same and no loading state appears.
abc-fixed.mp4
Verification
Real web UI on
95030dc674, with real provider turns:updatedAtpath, which this change leaves as it was) and the desktop app (same components).tsc --noEmitforapps/web, lint on the changed files (no new findings), andPullRequestDetailPanel.test.tsxall pass.Checklist
Implemented with Claude Opus 5.5 in Claude Code, running in T3 Code. UI verification by a GPT-6 Astra computer-use agent.
🤖 Generated with Claude Code
Summary by CodeRabbit