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/app | |
| parent | c9b90dd184084a2a3669db49717eb485c8861ee4 (diff) | |
| download | opencode-36e5ae804e4bf0c96a0ce6cca90029e88c2da9b3.tar.gz opencode-36e5ae804e4bf0c96a0ce6cca90029e88c2da9b3.zip | |
chore: rename coder -> primary
Diffstat (limited to 'internal/app')
| -rw-r--r-- | internal/app/app.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/app/app.go b/internal/app/app.go index 283b311c8..d4110ac7c 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -29,7 +29,7 @@ type App struct { Permissions permission.Service Status status.Service - CoderAgent agent.Service + PrimaryAgent agent.Service LSPClients map[string]*lsp.Client @@ -88,11 +88,11 @@ func New(ctx context.Context, conn *sql.DB) (*App, error) { // Initialize LSP clients in the background go app.initLSPClients(ctx) - app.CoderAgent, err = agent.NewAgent( - config.AgentCoder, + app.PrimaryAgent, err = agent.NewAgent( + config.AgentPrimary, app.Sessions, app.Messages, - agent.CoderAgentTools( + agent.PrimaryAgentTools( app.Permissions, app.Sessions, app.Messages, @@ -101,7 +101,7 @@ func New(ctx context.Context, conn *sql.DB) (*App, error) { ), ) if err != nil { - slog.Error("Failed to create coder agent", err) + slog.Error("Failed to create primary agent", "error", err) return nil, err } |
