feat(agent): enforce model readiness and polish selector UX

Block chat when agents lack an explicit chat or rerank model, guide users
through the selector and editor with field highlight, and align session QA
checks with the same readiness rules on backend and frontend.
This commit is contained in:
wizardchen
2026-06-25 21:02:14 +08:00
committed by lyingbug
parent 1e16834d27
commit 9ca4e1f23a
16 changed files with 1247 additions and 673 deletions
@@ -48,15 +48,16 @@ func (m *captureChatModel) GetModelName() string { return "capture" }
func (m *captureChatModel) GetModelID() string { return "capture" }
type stubModelService struct {
chatModel chat.Chat
chatModel chat.Chat
modelsByID map[string]*types.Model
}
func (s *stubModelService) CreateModel(context.Context, *types.Model) error {
return nil
}
func (s *stubModelService) GetModelByID(context.Context, string) (*types.Model, error) {
return nil, nil
func (s *stubModelService) GetModelByID(_ context.Context, id string) (*types.Model, error) {
return s.modelsByID[id], nil
}
func (s *stubModelService) ListModels(context.Context) ([]*types.Model, error) {