Commit b6fa68f
fix: correct spread order in withDefaultListChangedCapabilities (#893)
{ listChanged: X ?? true, ...capabilities.tools } puts the default
first so the spread overwrites it — explicit undefined defeats the
default. Fix to { ...capabilities.tools, listChanged: X ?? true }
so the ?? true only applies when the user did not set listChanged.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent d53b63b commit b6fa68f
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1036 | 1036 | | |
1037 | 1037 | | |
1038 | 1038 | | |
1039 | | - | |
| 1039 | + | |
1040 | 1040 | | |
1041 | | - | |
| 1041 | + | |
1042 | 1042 | | |
1043 | | - | |
| 1043 | + | |
1044 | 1044 | | |
1045 | 1045 | | |
1046 | 1046 | | |
| |||
0 commit comments