summaryrefslogtreecommitdiffhomepage
path: root/internal/config
diff options
context:
space:
mode:
authorKujtim Hoxha <[email protected]>2025-04-17 12:44:15 +0200
committerKujtim Hoxha <[email protected]>2025-04-21 13:42:02 +0200
commitcaea29375994373f6027c8dc4d8aa536c4e135e7 (patch)
treeba475134b8cd642b929781ef814185cf1900291e /internal/config
parent36172979b45facc8ccec6861f124193eaebc42e9 (diff)
downloadopencode-caea29375994373f6027c8dc4d8aa536c4e135e7.tar.gz
opencode-caea29375994373f6027c8dc4d8aa536c4e135e7.zip
small fixes
Diffstat (limited to 'internal/config')
-rw-r--r--internal/config/config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/config/config.go b/internal/config/config.go
index 20a8bac97..5b6d51efa 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -156,6 +156,10 @@ func Load(workingDir string, debug bool) (*Config, error) {
slog.SetDefault(logger)
}
+ if cfg.Agents == nil {
+ cfg.Agents = make(map[AgentName]Agent)
+ }
+
// Override the max tokens for title agent
cfg.Agents[AgentTitle] = Agent{
Model: cfg.Agents[AgentTitle].Model,