From da42a5b43ef910f90374976cca5177dd3dcc3d0c Mon Sep 17 00:00:00 2001 From: Kujtim Hoxha Date: Tue, 29 Jul 2025 20:50:41 +0200 Subject: [PATCH] chore: small fix --- internal/tui/components/chat/splash/splash.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/tui/components/chat/splash/splash.go b/internal/tui/components/chat/splash/splash.go index ef67ef87ec4ffd76236c31cea3107c576a2a875e..a986f07ec87e9877d929de6a6954e66c35191399 100644 --- a/internal/tui/components/chat/splash/splash.go +++ b/internal/tui/components/chat/splash/splash.go @@ -747,6 +747,9 @@ func (s *splashCmp) currentModelBlock() string { cfg := config.Get() agentCfg := cfg.Agents["coder"] model := config.Get().GetModelByType(agentCfg.Model) + if model == nil { + return "" + } t := styles.CurrentTheme() modelIcon := t.S().Base.Foreground(t.FgSubtle).Render(styles.ModelIcon) modelName := t.S().Text.Render(model.Name)