Note
Reviews paused
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
- Last reviewed commit: 79d631addbb8c8b4b7bc904b584a0433c0e65a5b
- Latest commit, not reviewed: 75f120d0db8b1076b1269f1ba2fc4d76d1edd584
Use the following commands to manage reviews:
@coderabbitai resumeto resume automatic reviews.@coderabbitai reviewto trigger a single review.
Use the checkboxes below for quick actions:
- Resume reviews
- Trigger review
No actionable comments were generated in the recent review.
Walkthrough
-
The preview bridge now includes the page title in report deduplication and tracks it with the last reported URL and navigation kind. Tests cover title-only changes, duplicate reports, and updates to unrelated desktop state.
Changes: Preview status reporting
Layer / File(s) Summary Title-aware status reporting
apps/web/src/components/preview/usePreviewBridge.ts,apps/web/src/components/preview/usePreviewBridge.test.tsbuildReportInputnow suppresses a non-failure report only when its navigation kind, URL, and title match the previous report. The bridge stores and resets the last reported title. Tests cover title changes, duplicate reports, and unrelated desktop-state updates.Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix · Severity of issue fixed: Medium
Possibly related PRs
- pingdotgg/t3code#25184: Adds a field to the preview state contract used by
buildReportInputand its test fixture. - pingdotgg/t3code#24806: Earlier revision of the preview state contract and test fixture changes.
Suggested reviewers:
t3dotgg,juliusmarminge - pingdotgg/t3code#25184: Adds a field to the preview state contract used by
Merge Risk: External image Minimal · previous review 79d63
-
This change makes title-only updates in desktop preview tabs reach the snapshot and history while still suppressing duplicate reports. No actionable merge-blocking risk remains.
Pre-merge checks: Passed 4
-
Check name Status Explanation Title check Passed The title "fix(desktop): update browser tab titles without navigation" matches the main change. The summary and objectives show that title-only changes in desktop preview reports now reach the remote … Description check Passed The description follows the template's main sections. It states the problem (stale titles on title-only changes) and the change (adding title to the report cache and comparison). It links issue #29451…Linked Issues check Passed Issue #29451requires that a desktop-runtime Browser tab on a connected non-primary environment update its tab label, remote snapshot, and project history when the page changesdocument.titlewithou…Out of Scope Changes check Passed The whole-PR source diff changes only usePreviewBridge.tsin the preview component area, plus its focused test file per the summary. The source change adds title to the existing report cache and com…Full details: Title check
-
Explanation
The title "fix(desktop): update browser tab titles without navigation" matches the main change. The summary and objectives show that title-only changes in desktop preview reports now reach the remote snapshot and tab/history subscribers, and the title follows conventional commit style. It is concise and specific.
Full details: Description check
-
Explanation
The description follows the template's main sections. It states the problem (stale titles on title-only changes) and the change (adding title to the report cache and comparison). It links issue
#29451and explains the scope as a small focused fix. The verification section gives the failing-then-passing focused test, the Linux/Wayland Electron proof, and the items not checked. It omits a few template items. It has no explicit Problem heading, and the conventional commit title is not repeated there. The author did not add an explicit repro-steps section beyond the proof text. Overall it is mostly complete.
Full details: Linked Issues check
-
Explanation
Issue
#29451requires that a desktop-runtime Browser tab on a connected non-primary environment update its tab label, remote snapshot, and project history when the page changesdocument.titlewithout navigating. The whole-PR diff (d8f3feff..79d631ad) toapps/web/src/components/preview/usePreviewBridge.tsaddslastReportedTitlestate.buildReportInputnow suppresses a report only when kind, URL, and title all match the previous report, andstatus.kind !== "LoadFailed". A title change at the same URL therefore produces a report with the new title. The ref is reset on subscription and updated after each non-bypassed report. TheserverDrivenbypass and theLoadFailedbranch are unchanged. The test file was not re-read at the current head. Its described coverage (title-only change, duplicate suppression, unrelated desktop updates, empty titles, Loading transitions) is consistent with the requirement. The author-reported native proof is not independently verified here.
Full details: Out of Scope Changes check
-
Explanation
The whole-PR source diff changes only
usePreviewBridge.tsin the preview component area, plus its focused test file per the summary. The source change adds title to the existing report cache and comparison, which is the change named in#29451. The only other source-level change is exportingbuildReportInputand adding itslastReportedTitleargument, which supports the focused test and does not add behavior. No workflow, product default, retry, or adjacent reliability change appears in the reviewed source diff. The empty CI retrigger commit carries no code change according to the PR description. This was not verified against the Git tree in this review.
-
Finishing Touches
-
Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
External image Recent review info
-
External image Run configuration
-
- Source mode: Auto
- Repository: pingdotgg/t3code
- Branch: main
- File: .coderabbit.config.ts
- Commit: d8f3fef
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Advanced
- Run ID:
0b4a784b-73a5-46ac-b9bd-3a6f203f12ce
External image Commits
-
Reviewing files that changed from the base of the PR and between 05ab4ee656265b70438471a33de17cf8d1843780 and 79d631addbb8c8b4b7bc904b584a0433c0e65a5b.
External image Files selected for processing: 1
-
apps/web/src/components/preview/usePreviewBridge.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
External image Recent review info
-
External image Run configuration
-
- Source mode: Auto
- Repository: pingdotgg/t3code
- Branch: main
- File: .coderabbit.config.ts
- Commit: d8f3fef
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Advanced
- Run ID:
0b4a784b-73a5-46ac-b9bd-3a6f203f12ce
External image Commits
-
Reviewing files that changed from the base of the PR and between 05ab4ee656265b70438471a33de17cf8d1843780 and 79d631addbb8c8b4b7bc904b584a0433c0e65a5b.
External image Files selected for processing: 1
-
apps/web/src/components/preview/usePreviewBridge.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
-