We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73b5f6d commit 6582b27Copy full SHA for 6582b27
1 file changed
cmd/chat.go
@@ -529,6 +529,9 @@ func (m chatModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
529
return m, nil
530
}
531
case tea.KeyEnter:
532
+ if m.containerEnabled && m.containerErr != nil {
533
+ return m, nil
534
+ }
535
text := strings.TrimSpace(m.input.Value())
536
if text == "" {
537
@@ -709,7 +712,8 @@ func (m chatModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
709
712
m.containerSandbox = msg.sandbox
710
713
711
714
if msg.err != nil {
- m.messages = append(m.messages, displayMsg{role: "system", content: "Container: " + msg.err.Error()})
715
+ m.messages = append(m.messages, displayMsg{role: "system", content: msg.err.Error()})
716
+ m.input.Blur()
717
718
m.viewDirty = true
719
m.updateViewportContent()
0 commit comments