No actionable comments were generated in the recent review.
External image Recent review info
-
External image Run configuration
- Source mode: Auto
- Repository: pingdotgg/t3code
- Branch: fix/issue-25639
- File: .coderabbit.config.ts
- Commit: 7bfb5b6
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Team
- Run ID:
9c688b20-dfeb-4d6f-a5c5-5b516b1f3ac9
External image Commits
Reviewing files that changed from the base of the PR and between 576a40fa530d0883068377aec83332ffbfb42629 and 7bfb5b6676956ac5d85296e3c4844a805091b419.
External image Files selected for processing: 2
packages/shared/src/preview.test.tspackages/shared/src/preview.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.
Walkthrough
normalizePreviewUrlnow detects known non-web schemes before adding a default web scheme. It reports those inputs asunsupported-protocolerrors. A test verifies the error forabout:blank.Changes: Preview URL normalization
Layer / File(s) Summary Detect and test unsupported schemes
packages/shared/src/preview.ts,packages/shared/src/preview.test.tsThe normalizer rejects recognized non-web schemes with an unsupported-protocolerror before URL rewriting. A test checks the error forabout:blank.Priority: External image Normal
Estimated code review effort: 2 (Simple) | ~5 minutes
Change: Bug fix · Severity of issue fixed: Medium
Possibly related PRs
- pingdotgg/t3code#24866: Both changes reject non-web schemes in the preview flow, at different layers.
Suggested reviewers:
bmdavis419
Merge Risk: External image Minimal · up to 7bfb5
The requested unsupported-scheme behavior is implemented without an established regression in supported preview flows.
Pre-merge checks: Passed 4
Check name Status Explanation Title check Passed The title clearly and concisely describes the main change: reporting non-web preview URLs as unsupported protocols. It uses a conventional commit format. Linked Issues check Passed Issue #25641requiresabout:blankto open as a blank tab or returnunsupported-protocol: about:. The PR chooses rejection.normalizePreviewUrlnow parses an explicit scheme before prefixing and …Out of Scope Changes check Passed The diff changes only shared preview URL normalization and its regression test. The implementation uses the existing protocol parser and known non-web scheme set. The additional scheme handling preven… Description check Passed The pull request description includes all required sections: Problem, Change, Scope and approval, and Verification. It explains the bug, expected behavior, implementation, linked issue, regression tes… Full details: Linked Issues check
Explanation
Issue
#25641requiresabout:blankto open as a blank tab or returnunsupported-protocol: about:. The PR chooses rejection.normalizePreviewUrlnow parses an explicit scheme before prefixing and throwsPreviewUrlNormalizationErrorwithreason: "unsupported-protocol"andprotocol: "about:".preview.test.tsadds a regression test for this behavior. Existing empty-input handling still supports omitted URLs through the existing caller flow.
Full details: Out of Scope Changes check
Explanation
The diff changes only shared preview URL normalization and its regression test. The implementation uses the existing protocol parser and known non-web scheme set. The additional scheme handling prevents the same misclassification for related non-web protocols. No unrelated product behavior or files are changed.
Full details: Description check
Explanation
The pull request description includes all required sections: Problem, Change, Scope and approval, and Verification. It explains the bug, expected behavior, implementation, linked issue, regression test, focused checks, runtime evidence, and limitations. It also identifies the models and harnesses used.
Finishing Touches
📝 Generate docstrings
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
- Commit to this branch
- Create a new PR
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.