on main help sign in
chore: small fix
commitda42a5b43ef910f90374976cca5177dd3dcc3d0c authorKujtim Hoxha <kujtimii.h@gmail.com> dateTue 29 Jul 2025, 20:50 (1 year ago) parent172896d
1 file changed+3
internal/tui/components/chat/splash/splash.go+3
internal/tui/components/chat/splash/splash.go+3
@@ -747,6 +747,9 @@ func (s *splashCmp) currentModelBlock() string {
747747 cfg := config.Get()
748748 agentCfg := cfg.Agents["coder"]
749749 model := config.Get().GetModelByType(agentCfg.Model)
750+ if model == nil {
751+ return ""
752+ }
750753 t := styles.CurrentTheme()
751754 modelIcon := t.S().Base.Foreground(t.FgSubtle).Render(styles.ModelIcon)
752755 modelName := t.S().Text.Render(model.Name)