@@ -379,8 +379,17 @@ func (p *chatPage) Update(msg tea.Msg) (util.Model, tea.Cmd) {
380 return p, p.newSession()
380 return p, p.newSession()
381 case key.Matches(msg, p.keyMap.AddAttachment):
381 case key.Matches(msg, p.keyMap.AddAttachment):
382+ // Skip attachment handling during onboarding/splash screen
383+ if p.focusedPane == PanelTypeSplash || p.isOnboarding {
384+ u, cmd := p.splash.Update(msg)
385+ p.splash = u.(splash.Splash)
382 agentCfg := config.Get().Agents[config.AgentCoder]
388 agentCfg := config.Get().Agents[config.AgentCoder]
383 model := config.Get().GetModelByType(agentCfg.Model)
389 model := config.Get().GetModelByType(agentCfg.Model)
391+ return p, util.ReportWarn("No model configured yet")
384 if model.SupportsImages {
393 if model.SupportsImages {
385 return p, util.CmdHandler(commands.OpenFilePickerMsg{})
394 return p, util.CmdHandler(commands.OpenFilePickerMsg{})