Fix/webhook dispatcher db fallback#344
Merged
vincentgrobler merged 2 commits intomainfrom Apr 9, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
- Collaboration executor: now fetches team name + output_route_ids (was using hardcoded string and missing route filtering) - Orchestrator executor: augment lazy final_answer with full worker delegation outputs when brain provides < 20% of total content - Webhook dispatcher: DB fallback to fetch output if not passed inline - All 3 executors now follow the same pattern: * SELECT name, config, mode, output_route_ids from teams * Hoist teamData above try block for catch access * Pass output, team name, and output_route_ids to dispatcher * Fallback team name in catch block
430c87c to
fcd44a4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
webhook dispatcher db fallback
Related Issue
Type of Change
How Has This Been Tested?
Screenshots (if applicable)
Checklist
npm run lintand there are no errorsnpm run testand all tests pass