GeezerVison is showing github.com — feat(server,web): failed commit and PR generation names the model and opens its setting by MarcoDotIO · Pull Request #31255 · pingdotgg/t3code
Conversation
Problem
When commit message or pull request generation fails, the toast says "Action failed" and Text generation failed in generateCommitMessage: <provider output>. It does not say which model ran, or which setting picked it (Threads → Text generation model, or Source control → Source control writer model), so the user has to guess where to fix it. The model only shows up when the provider's own output happens to include it.
To reproduce on main: set the text generation model to one the provider rejects (for example a custom Codex model slug that does not exist), change a file in a project, and commit with an empty message.
Change
- Contracts.
TextGenerationError gains three optional fields: instanceId and model (what ran) and modelSetting (textGeneration or sourceControlWriter, decoded forward-compatibly so a newer value reads as absent). Its message becomes Text generation failed in <operation> using <model> (<instance>): <detail>. Errors from older servers decode unchanged and keep the old message.
- Server.
TextGeneration attaches the instance and model it actually invoked to any failure. This is the one layer that knows the final model: after a usage-limit fallback it is not the one the caller asked for, and drivers only report what went wrong. GitManager records which setting supplied the commit and PR model and puts it on those failures. An unset writer, or one the resolver skips (disabled, unavailable, unable to generate text), falls back to the general model and is reported as textGeneration.
- Web and desktop. The git action failure toast gets a Settings button when the error names its setting. It closes the toast and opens
/settings/threads#text-generation-model or /settings/source-control#source-control-writer-model, scoped to the acting environment and the thread's project, so a project override shows its effective value. The project key is read when the toast is built, so the control does not subscribe to the project list.
- Mobile. No code change. Its git failure toast already shows the shared error message, so it now names the model. Mobile has no text generation settings, so there is no button.
The three layers serve one toast: the contract carries the context, the server is the only place that knows which model and setting ran, and the web client links to it.
Scope and approval
Implements the first slice of Ideas discussion #17995. In the triage, Julius accepted it as a QoL enhancement and named this slice: "always name the attempted model + Settings button, then add the 'this was a fallback' origin once the resolver exposes it."
Not in this PR:
Prior art: #13860 implemented a similar slice and was closed by its author when the issue moved to Ideas and the branch conflicted. This is a fresh implementation against current main; it also covers the usage-limit fallback, which main added since.
Surfaces: web and desktop (same component); mobile gets the model name only; CLI and agents (MCP git tools) see the new message text through the same error. No MCP tool text changed. No user docs change: the toast button is self-explanatory and the settings already exist.
Verification
Focused tests:
apps/server: vp test run src/git/GitManager.test.ts src/textGeneration/CodexTextGeneration.test.ts plus the other TextGeneration consumers (OpenCode2TextGeneration, ThreadTitleRegenerationService, PullRequestReviewGuideService, ThreadLaunchService): 209 pass. New cases:
- a failed commit message reports
textGeneration with no writer, sourceControlWriter with an available writer, and textGeneration with an unavailable writer;
- failed PR content reports
sourceControlWriter and creates no PR;
- a failure names the model that ran, for the selected model and for a usage-limit fallback.
With GitManager.ts and TextGeneration.ts reverted, all six new cases fail.
packages/contracts: vp test run src/git.test.ts: an unknown modelSetting from a newer server decodes as absent and the message names the model; an older server's error keeps the old message.
apps/web: vp test run src/components/GitActionsControl.logic.test.ts src/reactCompilerCoverage.test.ts: the link opens the right page, anchor and scope for each setting, and is absent when the server names no setting.
effect-tsgo tsrs --noEmit in contracts, server and web; vp lint and vp fmt --check on the changed directories.
Real client: web dev server with empty state, a scratch Git repo as the project, and a custom Codex model t3-capture-missing-model (added in Settings → Providers → Codex) picked as the text generation model, so the real Codex CLI rejects it. Committing a change with an empty message:
Before (main) |
After (this branch) |
 |
 |
Settings on that toast opens Threads → Text generation model for this project and environment. With the model set as the Source control writer model instead, the same toast's Settings opens Source control → Source control writer model:
| From the general model |
From the writer model |
 |
 |
Not checked: mobile (its toast shows the same shared message text, and no mobile code changed), desktop as a separate app (same web component), and Android.
Claude Opus 5.5 (Claude Code desktop app)
🤖 Generated with Claude Code
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…etting
Text generation errors now carry the provider instance and model that
ran, including a usage-limit fallback, and commit and pull request
generation say which setting picked that model. The web failure toast
gains a Settings button that opens that setting for the acting project
and environment. Mobile shows the model name through the shared message.
Refs pingdotgg#17995
Co-Authored-By: Claude Opus 5.5 <[email protected]>
MarcoDotIO
changed the title
feat: failed commit and PR generation names the model and opens its setting
feat(server,web): failed commit and PR generation names the model and opens its setting
Nov 5, 2026
Approvability
Verdict: Approved at c9094be
Macroscope's review found this PR approvable — Failed text generation now identifies the attempted model and offers a scoped link to its existing setting. This improves error recovery without changing defaults, model selection, or successful Git operations.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 5, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
Text-generation errors now include optional provider and model details, plus the setting used by Git actions. When an action fails, the web interface can offer a link to that setting, scoped to the active environment and project.
Changes: Text-generation error attribution
| Layer / File(s) |
Summary |
Error details from provider execution packages/contracts/src/git.ts, packages/contracts/src/git.test.ts, apps/server/src/textGeneration/TextGeneration.ts, apps/server/src/textGeneration/CodexTextGeneration.test.ts |
TextGenerationError accepts provider instance, model, and model-setting details. TextGeneration.generate adds the selected instance and model to failures. Tests cover error details and fallback selection. |
Git action model-setting attribution apps/server/src/git/GitManager.ts, apps/server/src/git/GitManager.test.ts |
Commit-message and PR-content generation errors identify the setting used: textGeneration or sourceControlWriter. Tests cover writer availability and generation failures. |
Settings link in action failures apps/web/src/components/GitActionsControl.logic.ts, apps/web/src/components/GitActionsControl.logic.test.ts, apps/web/src/components/GitActionsControl.tsx |
Recognized text-generation errors can link to the matching settings page. The failure toast adds a Settings action when a link is available. |
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Feature
Sequence Diagram(s)
sequenceDiagram
participant TextGeneration
participant GitManager
participant GitActionsControl
participant Settings
TextGeneration->>GitManager: Return error with provider instance and model
GitManager->>GitActionsControl: Return error with model setting
GitActionsControl->>Settings: Navigate to matching setting when available
Loading
Possibly related issues
Possibly related PRs
- pingdotgg/t3code#19941 — Adds commit-description generation through the shared
TextGeneration flow, where this PR enriches provider errors.
- pingdotgg/t3code#28991 — Changes source-control writer selection, which this PR uses to attribute generation errors to a setting.
- pingdotgg/t3code#23946 — Adds fallback attempts for commit-message and PR-content generation, which this PR annotates with the selected model setting.
Suggested reviewers: maria-rcks, juliusmarminge, t3dotgg
Merge Risk: Minimal · up to 192f0
-
Failed generation can identify the attempted model and link to its setting. No actionable merge-blocking risk remains after normal checks.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title clearly describes the main change to commit and pull request generation errors. |
| Description check |
 |
The description covers the problem, changes, scope approval, and verification. It includes UI screenshots and identifies checks that were not performed. |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Finishing Touches
-
Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between c9094be and 192f01f.
Files selected for processing: 4
-
apps/server/src/git/GitManager.test.ts
apps/server/src/git/GitManager.ts
apps/server/src/textGeneration/CodexTextGeneration.test.ts
apps/server/src/textGeneration/TextGeneration.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
# Conflicts:
# apps/server/src/textGeneration/CodexTextGeneration.test.ts
This was referenced Nov 10, 2026
Note 🤖 Claude Opus 5.5 responding on behalf of MarcoDotIO
Closing this. It is an unsolicited feature, which CONTRIBUTING.md asks to go through an approved Ideas discussion first, and outside feature PRs are paused for now. The branch stays on the fork in case the direction is ever approved.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:L
100-499 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|