[Feature]: Text-generation failure popups should name the attempted model and link to Settings
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- TypeScript
- Star
- 23k
- Fork
- 5.9k
- Merge trung bình
- 11 giờ 14 phút
- Pull request đã merge (30 ngày)
- 357
Mô tả
Context
#12651 confirmed that one-shot text generation (commit messages, PR content, branch names, thread titles) can fail opaquely: the Commit popup showed an unrelated stderr notice while the real cause was an unconfigured/unsupported text-generation model. #12652 improves what the error says (it now surfaces the CLI's own stdout error), but the popup still leaves the user to figure out where the fix lives.
Proposal
When one-shot text generation fails, make the error actionable by surfacing what the server already knows and offering the fix in place:
- Name the attempted model and its origin. E.g. if
textGenerationModelSelectionis unset and a fallback was used, say so explicitly: "No text generation model was configured, so the provider default (claude-haiku-4-5) was used." That is server-known information —resolveTextGenerationProvider()knows whether it fell back and to which slug. - Include a button/link that opens Settings at the text-generation model section. One click from the Commit popup to the place where the model is configured.
- Same treatment for title/branch failures, which today can fail silently (#5359) — a consistent actionable-failure path would cover the whole family.
Why
The failure mode in #12651 would have been a two-click self-fix from the Commit dialog itself: popup names the fallback model → button opens Settings → user picks a model their backend allows. Instead it took a full diagnostic session (captured spawns, extracted bundle source) to discover that textGenerationModelSelection was unset and that the fallback slug was being rejected by the backend.
The information needed for this already exists at the failure site; this is purely about presenting it.
Impact
Quality-of-life enhancement on top of the #12651 fixes.
[!NOTE]
🤖 GLM 5.3 Flash on behalf of iliasgws
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Kiểm tra popup Commit và đường dẫn resolveTextGenerationProvider(), sử dụng #12651 và #12652 cho hành vi lỗi hiện có. Công việc được xem là hoàn tất khi các lỗi tạo một lần xác định model và nguồn gốc đã được thử, cung cấp liên kết đến phần model tạo văn bản trong Settings, đồng thời áp dụng cùng một đường dẫn có thể xử lý cho các lỗi về title và branch.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- typescript
- Lĩnh vực
- backend, frontend
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 55/100