Commit 8595bf5
committed
fix(config,test): address remaining CodeRabbit review findings
- config.py: in _type_based_merge, when a dict overlay hits a scalar/list
at the same key, normalize base[key] and provenance[key] to empty dicts
before recursing instead of short-circuiting with `continue`. The old
approach left provenance[key] as a string, which would crash a subsequent
dict-merge on the same key with TypeError.
- test_default_agent.py: replace the full-prompt inline_snapshot in
test_default_agent with four targeted substring assertions covering the
Product Identity invariants (section header, product name, developer,
and the no-model-name rule). The builtin_types snapshot is unchanged.1 parent 4eb94fe commit 8595bf5
2 files changed
Lines changed: 10 additions & 307 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
164 | 165 | | |
165 | | - | |
166 | | - | |
167 | | - | |
| 166 | + | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| |||
0 commit comments