fix: load supported document attachments (#205)

This commit is contained in:
Eyejoker
2026-05-31 22:30:49 +09:00
committed by GitHub
parent 778ed9b94a
commit b6e7e060cc
11 changed files with 398 additions and 30 deletions

View File

@@ -170,7 +170,7 @@ describe('message-runtime-prompts output-only context', () => {
);
});
it('makes non-image turn attachments visibly unavailable instead of implying inspection', () => {
it('carries supported document turn attachments into reviewer prompts as file inputs', () => {
const prompt = buildReviewerPendingPrompt({
chatJid: 'group@test',
timezone: 'UTC',
@@ -192,9 +192,7 @@ describe('message-runtime-prompts output-only context', () => {
taskCreatedAt: '2026-04-20T01:00:00.000Z',
});
expect(prompt).toContain(
'[Attachment unavailable: report.pdf → /tmp/report.pdf — application/pdf is not loaded as structured model input]',
);
expect(prompt).toContain('[File: report.pdf → /tmp/report.pdf]');
});
it('includes current task user scope in reviewer pending prompts without pulling older human messages', () => {