fix(agent): wire workflow marker and attached documents to AgentCore

↗ view on GitHub · Jason Lee · 2026-05-15 · b06b54ef

Three bugs prevented workflows and doc selection from working:
1. useAssistantChat never prepended [Workflow: title (id)] marker to prompt
2. DisplayWorkflowModal never set workflow field on the outgoing message
3. agents/index.ts never read attached_documents from request body

Agent system prompt + read_workflow/list_workflows tools were already
correct - only the triggers were missing.
Repository dropthejase/louis
Author Jason Lee <12leeejk2@gmail.com>
Authored
Parents 12445c9b
Stats 3 files changed , +18 , -2
Part of Edit/replicate/generate-docx tool fixes and citation/error surfacing

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-b06b54ef.md from inside the repo you want the change in.

⬇ Download capture-commit-b06b54ef.md