Commit 723b4f2
committed
fix(cli): map legacy trigger:* data records into controlValue in MCP collector
The MCP `collectAgentResponse` legacy filter added in f8f9898 was a
blanket `continue` for any `trigger:*` data record — which silently
dropped legacy turn-complete (loop never breaks) and legacy
upgrade-required (continuation never fires). On a session whose `.out`
was populated by an old agent, the collector would hang on
turn-complete instead of returning the assistant message.
Moved the legacy detection up alongside the header-based
`controlSubtype` check so both shapes feed the same `controlValue` —
the existing break / continuation logic now fires for header-form and
data-chunk-form control signals alike. Matches the pattern just
added to `chat.ts` and `chat-client.ts`.1 parent 950d10b commit 723b4f2
1 file changed
Lines changed: 22 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
401 | | - | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
402 | 419 | | |
403 | 420 | | |
404 | 421 | | |
| |||
439 | 456 | | |
440 | 457 | | |
441 | 458 | | |
442 | | - | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
443 | 463 | | |
444 | 464 | | |
445 | 465 | | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | 466 | | |
456 | 467 | | |
457 | 468 | | |
| |||
0 commit comments