Problem summary
Upgrade, Inc relies on attachments in Q/A pairs. AI Draft currently:
- doesn't reliably include attachments from source Q/A pairs into drafted answers, and
- doesn't consistently resolve merge-tags that should display attachment filenames in the preview (but filenames sometimes appear after apply→revert).
They want AI Draft to reliably surface attachments in the draft, and show which sources contain attachments (including filename where possible).
Goals
- When AI Draft generates a suggested answer that used source Q/As containing attachments, the draft preview must include those attachments (file objects and filenames).
- Merge-tags in answer text that reference attachment filenames must be resolved in the draft preview using the attachments included.
- Fix the intermittent bug where filenames only appear after apply→revert.
- Source view must indicate which sources contain attachments and list attachment metadata (filename, type).