This repository was archived by the owner on Jul 6, 2026. It is now read-only.
Repository navigation
Commit 86a4210
feat(config): add configBoundary option for parent config traversal
Adds a configBoundary field to control how far up the filesystem OpenCode
walks when searching for parent configs, opencode.json files, and instruction
files like AGENTS.md.
'current' (default) — stops at git worktree root, backward compatible
'home' — walks to $HOME, enables client-level MCP/AGENTS.md
'root' — walks to /
'none' — stops immediately, disables parent config inheritance
Use case: a ~/Projects/ClientA/opencode.jsonc with ASU-specific MCPs gets
picked up by all projects under ClientA/ when configBoundary is 'home' in
the global config.
Also resolves relative instruction paths (./foo.md) from the config file
directory rather than cwd, so client-level configs can reference local files.
Closes anomalyco#10707
Co-authored-by: Sisyphus <[email protected]>1 parent f5c3d35 commit 86a4210
3 files changed
Lines changed: 41 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
206 | 212 | | |
207 | 213 | | |
208 | 214 | | |
| |||
281 | 287 | | |
282 | 288 | | |
283 | 289 | | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
284 | 305 | | |
285 | 306 | | |
286 | 307 | | |
| |||
372 | 393 | | |
373 | 394 | | |
374 | 395 | | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
375 | 403 | | |
376 | 404 | | |
377 | 405 | | |
| |||
515 | 543 | | |
516 | 544 | | |
517 | 545 | | |
| 546 | + | |
| 547 | + | |
518 | 548 | | |
519 | | - | |
| 549 | + | |
520 | 550 | | |
521 | 551 | | |
522 | 552 | | |
| |||
525 | 555 | | |
526 | 556 | | |
527 | 557 | | |
528 | | - | |
| 558 | + | |
529 | 559 | | |
530 | 560 | | |
531 | 561 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
| |||
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
118 | | - | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
0 commit comments