fix(#3532): warn when global defaults keys are shadowed by a project config

This commit is contained in:
sim
2026-08-15 01:48:41 -04:00
parent 4fe072283d
commit 129871a8be
3 changed files with 82 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
type: Added
pr: 0
---
**`~/.gsd/defaults.json` shadowing is now diagnosed instead of silent** — in any project with a `.planning/config.json`, global model-side keys (`model_profile`, `model_overrides`, `models`, `dynamic_routing`, `runtime`, …) were silently ignored for model resolution; a file named `defaults.json` applied to no real project with no signal. GSD now prints a one-time stderr warning naming the shadowed keys. Resolution precedence is unchanged; global `effort` keeps working via effort sync and never warns. (#3532)