Commit cc070b2
committed
fix: pass both args when inputSchema omitted in task handler executor
When inputSchema is undefined, createToolExecutor now calls
taskHandler.createTask({}, taskCtx) instead of casting to a
single-arg signature. This ensures two-argument handlers receive
correct argument positions: (args, ctx) rather than having
ctx shifted to the first parameter.
Regular tool callbacks remain unchanged — their single-arg
signature matches the TypeScript types.
Fixes #14711 parent 7cccc2a commit cc070b2
2 files changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1120 | 1120 | | |
1121 | 1121 | | |
1122 | 1122 | | |
1123 | | - | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
1124 | 1126 | | |
1125 | 1127 | | |
1126 | 1128 | | |
| |||
1138 | 1140 | | |
1139 | 1141 | | |
1140 | 1142 | | |
1141 | | - | |
1142 | | - | |
| 1143 | + | |
| 1144 | + | |
1143 | 1145 | | |
1144 | 1146 | | |
1145 | 1147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6828 | 6828 | | |
6829 | 6829 | | |
6830 | 6830 | | |
6831 | | - | |
| 6831 | + | |
6832 | 6832 | | |
6833 | 6833 | | |
6834 | 6834 | | |
| |||
6932 | 6932 | | |
6933 | 6933 | | |
6934 | 6934 | | |
6935 | | - | |
| 6935 | + | |
6936 | 6936 | | |
6937 | 6937 | | |
6938 | 6938 | | |
| |||
0 commit comments