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

@@ -94,7 +94,10 @@ describe('deliverIpcOutboundMessage', () => {
expect.objectContaining({
channel,
item: createdItem,
attachmentBaseDirs: ['/repo'],
attachmentBaseDirs: expect.arrayContaining([
'/repo',
expect.stringMatching(/data\/workspaces\/room-folder$/),
]),
}),
);
expect(channel.sendMessage).not.toHaveBeenCalled();
@@ -144,7 +147,10 @@ describe('deliverIpcOutboundMessage', () => {
expect.objectContaining({
channel: reviewerChannel,
item: createdItem,
attachmentBaseDirs: ['/repo'],
attachmentBaseDirs: expect.arrayContaining([
'/repo',
expect.stringMatching(/data\/workspaces\/room-folder$/),
]),
}),
);
expect(noteDirectTerminalDelivery).toHaveBeenCalledWith(