mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
fix: allow disabling the default general agent (#1616)
This commit is contained in:
parent
58e889796c
commit
2b195e82ee
1 changed files with 4 additions and 1 deletions
|
|
@ -38,7 +38,10 @@ export namespace Agent {
|
|||
},
|
||||
}
|
||||
for (const [key, value] of Object.entries(cfg.agent ?? {})) {
|
||||
if (value.disable) continue
|
||||
if (value.disable) {
|
||||
delete result[key]
|
||||
continue
|
||||
}
|
||||
let item = result[key]
|
||||
if (!item)
|
||||
item = result[key] = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue