diff options
| author | adamdottv <[email protected]> | 2025-05-12 14:32:27 -0500 |
|---|---|---|
| committer | adamdottv <[email protected]> | 2025-05-12 14:32:27 -0500 |
| commit | 36e5ae804e4bf0c96a0ce6cca90029e88c2da9b3 (patch) | |
| tree | e4dd3910956376104c2b3996c245393bf625bc32 /internal/tui/page | |
| parent | c9b90dd184084a2a3669db49717eb485c8861ee4 (diff) | |
| download | opencode-36e5ae804e4bf0c96a0ce6cca90029e88c2da9b3.tar.gz opencode-36e5ae804e4bf0c96a0ce6cca90029e88c2da9b3.zip | |
chore: rename coder -> primary
Diffstat (limited to 'internal/tui/page')
| -rw-r--r-- | internal/tui/page/chat.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/tui/page/chat.go b/internal/tui/page/chat.go index b4984c511..fe71d6f7a 100644 --- a/internal/tui/page/chat.go +++ b/internal/tui/page/chat.go @@ -67,7 +67,7 @@ func (p *chatPage) Update(msg tea.Msg) (tea.Model, tea.Cmd) { } case dialog.CommandRunCustomMsg: // Check if the agent is busy before executing custom commands - if p.app.CoderAgent.IsBusy() { + if p.app.PrimaryAgent.IsBusy() { status.Warn("Agent is busy, please wait before executing a command...") return p, nil } @@ -92,7 +92,7 @@ func (p *chatPage) Update(msg tea.Msg) (tea.Model, tea.Cmd) { // Run compaction in background go func(sessionID string) { - err := p.app.CoderAgent.CompactSession(context.Background(), sessionID) + err := p.app.PrimaryAgent.CompactSession(context.Background(), sessionID) if err != nil { status.Error(fmt.Sprintf("Compaction failed: %v", err)) } else { @@ -113,7 +113,7 @@ func (p *chatPage) Update(msg tea.Msg) (tea.Model, tea.Cmd) { if p.session.ID != "" { // Cancel the current session's generation process // This allows users to interrupt long-running operations - p.app.CoderAgent.Cancel(p.session.ID) + p.app.PrimaryAgent.Cancel(p.session.ID) return p, nil } case key.Matches(msg, keyMap.ToggleTools): @@ -158,7 +158,7 @@ func (p *chatPage) sendMessage(text string, attachments []message.Attachment) te cmds = append(cmds, util.CmdHandler(chat.SessionSelectedMsg(newSession))) } - _, err := p.app.CoderAgent.Run(context.Background(), p.session.ID, text, attachments...) + _, err := p.app.PrimaryAgent.Run(context.Background(), p.session.ID, text, attachments...) if err != nil { status.Error(err.Error()) return nil |
