Fix runtime image attachment paths

Allow nested /tmp generated images and per-room runtime workspace attachments after realpath/image validation.
This commit is contained in:
Eyejoker
2026-05-02 22:02:13 +09:00
committed by GitHub
parent 6ea4ec5b68
commit 4859c58f48
8 changed files with 66 additions and 40 deletions

View File

@@ -1,4 +1,5 @@
import { createProducedWorkItem } from './db.js';
import { resolveRuntimeAttachmentBaseDirs } from './attachment-base-dirs.js';
import { logger } from './logger.js';
import { deliverOpenWorkItem } from './message-runtime-delivery.js';
import type {
@@ -65,7 +66,7 @@ export async function deliverMessageRuntimeFinalText(args: {
channel: args.channel,
item: workItem,
log: logger,
attachmentBaseDirs: args.group.workDir ? [args.group.workDir] : undefined,
attachmentBaseDirs: resolveRuntimeAttachmentBaseDirs(args.group),
replaceMessageId: args.replaceMessageId,
isDuplicateOfLastBotFinal: args.isDuplicateOfLastBotFinal,
openContinuation: args.openContinuation,