Commit 2ba7c67
feat: default auto_mcp_discovery to true (#345)
* feat: default auto_mcp_discovery to true in config schema
The runtime behavior already defaulted to enabled (discovery runs unless
explicitly set to false), but the Zod schema used `.optional()` which
left the field as `undefined`. Switch to `.default(true)` so the schema
matches the actual runtime default and serialized configs show the
correct value.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: add auto_mcp_discovery to test experimental configs
The .default(true) change made the field required in Zod's output type,
so test configs that construct experimental objects need the field.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* chore: remove explicit auto_mcp_discovery: false from project config
No longer needed since the schema now defaults to true.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 36a244c commit 2ba7c67
File tree
3 files changed
+4
-7
lines changed- .opencode
- packages/opencode
- src/config
- test/tool
3 files changed
+4
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 18 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1294 | 1294 | | |
1295 | 1295 | | |
1296 | 1296 | | |
1297 | | - | |
1298 | | - | |
| 1297 | + | |
| 1298 | + | |
1299 | 1299 | | |
1300 | 1300 | | |
1301 | 1301 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
| |||
225 | 226 | | |
226 | 227 | | |
227 | 228 | | |
| 229 | + | |
228 | 230 | | |
229 | 231 | | |
230 | 232 | | |
| |||
0 commit comments