on main help sign in
chore: small fix
da42a5bKujtim Hoxha
internal/tui/components/chat/splash/splash.go+3
@@ -747,6 +747,9 @@ func (s *splashCmp) currentModelBlock() string {
747 cfg := config.Get()
747 cfg := config.Get()
748 agentCfg := cfg.Agents["coder"]
748 agentCfg := cfg.Agents["coder"]
749 model := config.Get().GetModelByType(agentCfg.Model)
749 model := config.Get().GetModelByType(agentCfg.Model)
750+ if model == nil {
751+ return ""
752+ }
750 t := styles.CurrentTheme()
753 t := styles.CurrentTheme()
751 modelIcon := t.S().Base.Foreground(t.FgSubtle).Render(styles.ModelIcon)
754 modelIcon := t.S().Base.Foreground(t.FgSubtle).Render(styles.ModelIcon)
752 modelName := t.S().Text.Render(model.Name)
755 modelName := t.S().Text.Render(model.Name)