summaryrefslogtreecommitdiffhomepage
path: root/internal/tui/components/chat/editor.go
diff options
context:
space:
mode:
authoradamdottv <[email protected]>2025-05-12 14:32:27 -0500
committeradamdottv <[email protected]>2025-05-12 14:32:27 -0500
commit36e5ae804e4bf0c96a0ce6cca90029e88c2da9b3 (patch)
treee4dd3910956376104c2b3996c245393bf625bc32 /internal/tui/components/chat/editor.go
parentc9b90dd184084a2a3669db49717eb485c8861ee4 (diff)
downloadopencode-36e5ae804e4bf0c96a0ce6cca90029e88c2da9b3.tar.gz
opencode-36e5ae804e4bf0c96a0ce6cca90029e88c2da9b3.zip
chore: rename coder -> primary
Diffstat (limited to 'internal/tui/components/chat/editor.go')
-rw-r--r--internal/tui/components/chat/editor.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/tui/components/chat/editor.go b/internal/tui/components/chat/editor.go
index 99991cdf7..e96e6df3d 100644
--- a/internal/tui/components/chat/editor.go
+++ b/internal/tui/components/chat/editor.go
@@ -124,7 +124,7 @@ func (m *editorCmp) Init() tea.Cmd {
}
func (m *editorCmp) send() tea.Cmd {
- if m.app.CoderAgent.IsSessionBusy(m.session.ID) {
+ if m.app.PrimaryAgent.IsSessionBusy(m.session.ID) {
status.Warn("Agent is working, please wait...")
return nil
}
@@ -189,7 +189,7 @@ func (m *editorCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
return m, nil
}
if key.Matches(msg, editorMaps.OpenEditor) {
- if m.app.CoderAgent.IsSessionBusy(m.session.ID) {
+ if m.app.PrimaryAgent.IsSessionBusy(m.session.ID) {
status.Warn("Agent is working, please wait...")
return m, nil
}