Commit 70382ad
feat: add Config::init_global(path) to support custom config directories
Add Config::init_global(config_dir) that initializes the global singleton
with a caller-provided config directory instead of the default. This
addresses PR feedback that Config::global() silently ignored the
config_dir field from AcpServerFactoryConfig.
The server factory now calls init_global(config_dir) so that if a
non-default config directory is ever passed, the global Config will
use the correct path while still providing the singleton mutex
serialization benefit.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 36d4ff2 commit 70382ad
2 files changed
Lines changed: 33 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
268 | 300 | | |
269 | 301 | | |
270 | 302 | | |
| |||
0 commit comments