From 36e5ae804e4bf0c96a0ce6cca90029e88c2da9b3 Mon Sep 17 00:00:00 2001 From: adamdottv <2363879+adamdottv@users.noreply.github.com> Date: Mon, 12 May 2025 14:32:27 -0500 Subject: chore: rename coder -> primary --- internal/tui/components/chat/editor.go | 4 ++-- internal/tui/components/chat/list.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'internal/tui/components/chat') 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 } diff --git a/internal/tui/components/chat/list.go b/internal/tui/components/chat/list.go index bce6f50e1..bf72e74b5 100644 --- a/internal/tui/components/chat/list.go +++ b/internal/tui/components/chat/list.go @@ -170,7 +170,7 @@ func (m *messagesCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) { } func (m *messagesCmp) IsAgentWorking() bool { - return m.app.CoderAgent.IsSessionBusy(m.session.ID) + return m.app.PrimaryAgent.IsSessionBusy(m.session.ID) } func formatTimeDifference(unixTime1, unixTime2 int64) string { @@ -376,7 +376,7 @@ func (m *messagesCmp) help() string { text := "" - if m.app.CoderAgent.IsBusy() { + if m.app.PrimaryAgent.IsBusy() { text += lipgloss.JoinHorizontal( lipgloss.Left, baseStyle.Foreground(t.TextMuted()).Bold(true).Render("press "), -- cgit v1.2.3