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: 7c1915fe5daf616adb30a209fd30d7d87b9d22a0
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 change adds text-generation support metadata to provider models. Pi discovery checks model availability without extensions or tools. Model selection and settings filter out models explicitly marked as unsupported. Enabling a separate source-control writer model also checks its availability before saving the setting.
Changes: Text-generation model availability
Layer / File(s) Summary Discover Pi text-generation models
packages/contracts/src/server.ts,packages/provider-pi/src/server/status.ts,packages/provider-pi/src/server/status.test.tsServerProviderModelgains optionalsupportsTextGeneration. Pi discovery probes the model inventory without extensions or tools, then marks models absent from that inventory as unsupported. A failed or timed-out probe leaves normal discovery results unchanged.Filter and resolve model selections
apps/web/src/modelSelection.ts,apps/web/src/modelSelection.test.tsText-generation options exclude providers and models explicitly marked unsupported. Selection falls back to an available default or model when the selected model is unsupported. Tests cover customized and unknown custom models. Use filtered options in settings
apps/web/src/components/settings/SettingsPanels.tsx,apps/web/src/components/settings/SourceControlWritingSettings.tsx,apps/web/src/components/settings/useScopedModelAvailability.ts,apps/web/src/components/settings/SourceControlWritingSettings.browser.test.tsxText-generation settings, source-control writing, and review-guide pickers use filtered model options. Enabling a separate writer model checks its default selection and does not update settings when that model is unavailable. A browser test checks availability in another environment. Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Bug fix
Sequence Diagram(s)
mermaid1 sequenceDiagram 2 participant Discovery as discoverPiViaRpc 3 participant Launch as makePiDiscoveryConnection 4 participant RPC as Pi RPC process 5 Discovery->>Launch: Start optional probe without extensions or tools 6 Launch->>RPC: Request available models 7 RPC-->>Discovery: Return model inventory or no response 8 Discovery->>Discovery: Mark absent models unsupported Possibly related PRs
- pingdotgg/t3code#26164: Both changes filter model candidates based on text-generation capability.
- pingdotgg/t3code#23946: This change supplies capability filtering for models used in text generation and source-control writing.
- pingdotgg/t3code#28844: Both changes use provider text-generation capability to filter models for generated text.
Suggested labels:
bugfixSuggested reviewers:
t3dotgg,juliusmarminge
Merge Risk: External image Minimal · up to 7c191
-
Enabling a writer model is blocked when it is unavailable in a selected environment. The previously identified test-isolation concern is also addressed, leaving no actionable merge-blocking risk.
Pre-merge checks: Passed 4
-
Check name Status Explanation Title check Passed The title "fix(pi): stop offering extension-only models for text generation" matches the main change. The diff filters Pi extension-only models out of text-generation, source-control writer, and revie… Linked Issues check Passed Check skipped because no linked issues were found for this pull request. Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request. Description check Passed The description covers the problem, the change, scope and maintainer approval, and focused verification results. It also states remaining verification limits and includes before-and-after UI evidence. Full details: Title check
-
Explanation
The title "fix(pi): stop offering extension-only models for text generation" matches the main change. The diff filters Pi extension-only models out of text-generation, source-control writer, and review-guide pickers, using a second discovery with the background launch flags. The title is short, specific, and follows the conventional commit format. It does not cover the status probe or the timeout handling, which is expected for a title.
-
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: 3d369d5
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Advanced
- Run ID:
0705ab93-fbfa-412e-9636-1d776909c801
External image Commits
-
Reviewing files that changed from the base of the PR and between 12a5a9e250acafe86118208927aca1c21d31a777 and 7c1915fe5daf616adb30a209fd30d7d87b9d22a0.
External image Files selected for processing: 6
-
apps/web/src/components/settings/SettingsPanels.tsxapps/web/src/modelSelection.test.tsapps/web/src/modelSelection.tspackages/contracts/src/server.tspackages/provider-pi/src/server/status.test.tspackages/provider-pi/src/server/status.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 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: 3d369d5
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Advanced
- Run ID:
0705ab93-fbfa-412e-9636-1d776909c801
External image Commits
-
Reviewing files that changed from the base of the PR and between 12a5a9e250acafe86118208927aca1c21d31a777 and 7c1915fe5daf616adb30a209fd30d7d87b9d22a0.
External image Files selected for processing: 6
-
apps/web/src/components/settings/SettingsPanels.tsxapps/web/src/modelSelection.test.tsapps/web/src/modelSelection.tspackages/contracts/src/server.tspackages/provider-pi/src/server/status.test.tspackages/provider-pi/src/server/status.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
-