on main help sign in
fix: nil pointer in view (#403)
705790dCarlos Alexandro Becker
internal/tui/components/chat/editor/editor.go+1−1
@@ -410,7 +410,7 @@ func (m *editorCmp) randomizePlaceholders() {
410func (m *editorCmp) View() string {
410func (m *editorCmp) View() string {
411 t := styles.CurrentTheme()
411 t := styles.CurrentTheme()
412 // Update placeholder
412 // Update placeholder
413− if m.app.CoderAgent.IsBusy() {
413+ if m.app.CoderAgent != nil && m.app.CoderAgent.IsBusy() {
414 m.textarea.Placeholder = m.workingPlaceholder
414 m.textarea.Placeholder = m.workingPlaceholder
415 } else {
415 } else {
416 m.textarea.Placeholder = m.readyPlaceholder
416 m.textarea.Placeholder = m.readyPlaceholder