Commit 68e4202
committed
fix(orchestrator): augment lazy final_answer with worker outputs
Root cause found via Railway logs: the brain LLM calls final_answer
with a 95-char summary instead of the full synthesized content. The
worker delegation results contain thousands of chars of detailed
output, but the brain just says 'Task completed successfully.'
Fix: when final_answer output is less than 20% of the combined worker
outputs, automatically append all completed delegation results as
structured markdown sections (## WorkerName). This ensures the full
team output reaches Trello/Slack/Discord regardless of brain behavior.
Also added DB fallback in webhookDispatcher: if no output is passed
inline, fetch it from team_runs table as a safety net.1 parent 1b6bb6b commit 68e4202
1 file changed
Lines changed: 38 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
542 | 542 | | |
543 | 543 | | |
544 | 544 | | |
545 | | - | |
546 | | - | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
547 | 583 | | |
548 | 584 | | |
549 | 585 | | |
| |||
0 commit comments