Commit fe42117
committed
refactor(agents): address review feedback on resolveFreshModel
- Remove dead code: use resolveFreshModel()! in getAvailableThinkingLevels
since the early return guarantees this.model is truthy
- Add JSDoc explaining why resolveFreshModel() does not use
refreshCurrentModelFromRegistry() (mutation vs transient read)
- Add defensive test for registry returning different provider/id
- Add integration test verifying compaction uses fresh contextWindow1 parent f3e8872 commit fe42117
2 files changed
Lines changed: 29 additions & 1 deletion
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
95 | 118 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1722 | 1722 | | |
1723 | 1723 | | |
1724 | 1724 | | |
1725 | | - | |
| 1725 | + | |
1726 | 1726 | | |
1727 | 1727 | | |
1728 | 1728 | | |
| |||
2265 | 2265 | | |
2266 | 2266 | | |
2267 | 2267 | | |
| 2268 | + | |
| 2269 | + | |
| 2270 | + | |
| 2271 | + | |
| 2272 | + | |
2268 | 2273 | | |
2269 | 2274 | | |
2270 | 2275 | | |
| |||
0 commit comments