Repository navigation
Commit 9d48dc6
committed
fix(server): schedule_task lets agents pick the model and reports it
schedule_task had no target input: it always copied the calling thread's
model (or the project default) and kept the stored model on update, and the
returned task never said what it runs with.
schedule_task now takes the same `target` (provider, model, options) as the
other work-starting tools, resolved and validated through resolveTarget against
the caller's or project's selection on create and the stored selection on
update. Task details now include providerInstanceId, model and options.
Fixes #16833
AI-assisted; verified with the tests and tools listed above.1 parent 16c43f6 commit 9d48dc6
4 files changed
Lines changed: 68 additions & 6 deletions
File tree
- apps/server/src
- mcp
- toolkits/orchestrator
- provider
- packages/contracts/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
272 | 275 | | |
273 | 276 | | |
274 | 277 | | |
| |||
1330 | 1333 | | |
1331 | 1334 | | |
1332 | 1335 | | |
1333 | | - | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
1334 | 1342 | | |
1335 | 1343 | | |
1336 | 1344 | | |
| |||
1465 | 1473 | | |
1466 | 1474 | | |
1467 | 1475 | | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
1468 | 1500 | | |
1469 | 1501 | | |
1470 | 1502 | | |
| |||
2027 | 2059 | | |
2028 | 2060 | | |
2029 | 2061 | | |
2030 | | - | |
2031 | | - | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
2032 | 2067 | | |
2033 | 2068 | | |
2034 | 2069 | | |
| |||
2150 | 2185 | | |
2151 | 2186 | | |
2152 | 2187 | | |
2153 | | - | |
| 2188 | + | |
| 2189 | + | |
| 2190 | + | |
| 2191 | + | |
| 2192 | + | |
| 2193 | + | |
| 2194 | + | |
| 2195 | + | |
2154 | 2196 | | |
2155 | 2197 | | |
2156 | 2198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
106 | 115 | | |
107 | 116 | | |
108 | 117 | | |
| |||
115 | 124 | | |
116 | 125 | | |
117 | 126 | | |
| 127 | + | |
118 | 128 | | |
119 | 129 | | |
120 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
688 | 689 | | |
689 | 690 | | |
690 | 691 | | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
691 | 697 | | |
692 | 698 | | |
693 | 699 | | |
| |||
710 | 716 | | |
711 | 717 | | |
712 | 718 | | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
713 | 722 | | |
714 | 723 | | |
715 | 724 | | |
| |||
753 | 762 | | |
754 | 763 | | |
755 | 764 | | |
| 765 | + | |
756 | 766 | | |
757 | 767 | | |
758 | 768 | | |
| |||
0 commit comments