diff options
| author | adamdottv <[email protected]> | 2025-05-29 15:30:39 -0500 |
|---|---|---|
| committer | adamdottv <[email protected]> | 2025-05-29 15:30:39 -0500 |
| commit | 913b3434d8243cc9681a3bf7520e7b027ec3853b (patch) | |
| tree | e1a16ff571053aafec5b0a93f1b7ab85694357f2 /internal/tui/components/chat/editor.go | |
| parent | 1c01ee48340c524af9223fac43f21d3a545e4583 (diff) | |
| download | opencode-913b3434d8243cc9681a3bf7520e7b027ec3853b.tar.gz opencode-913b3434d8243cc9681a3bf7520e7b027ec3853b.zip | |
wip: refactoring tui
Diffstat (limited to 'internal/tui/components/chat/editor.go')
| -rw-r--r-- | internal/tui/components/chat/editor.go | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/internal/tui/components/chat/editor.go b/internal/tui/components/chat/editor.go index 17fb82c20..c3b06787e 100644 --- a/internal/tui/components/chat/editor.go +++ b/internal/tui/components/chat/editor.go @@ -143,11 +143,6 @@ func (m *editorCmp) Init() tea.Cmd { } func (m *editorCmp) send() tea.Cmd { - if m.app.PrimaryAgentOLD.IsSessionBusy(m.app.CurrentSessionOLD.ID) { - status.Warn("Agent is working, please wait...") - return nil - } - value := m.textarea.Value() m.textarea.Reset() attachments := m.attachments @@ -217,10 +212,10 @@ func (m *editorCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) { return m, nil } if key.Matches(msg, editorMaps.OpenEditor) { - if m.app.PrimaryAgentOLD.IsSessionBusy(m.app.CurrentSessionOLD.ID) { - status.Warn("Agent is working, please wait...") - return m, nil - } + // if m.app.PrimaryAgentOLD.IsSessionBusy(m.app.CurrentSessionOLD.ID) { + // status.Warn("Agent is working, please wait...") + // return m, nil + // } value := m.textarea.Value() m.textarea.Reset() return m, m.openEditor(value) |
