From 4b9f91a5a06876d2c62eada42bd4a0d8bc28306d Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Sun, 4 Oct 2026 00:46:30 -0700 Subject: [PATCH] test(native-chat): check the outside file by its real path too --- src/main/window/native-chat-paste-files.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/window/native-chat-paste-files.test.ts b/src/main/window/native-chat-paste-files.test.ts index e8d9a626fcc..8f645c3fd89 100644 --- a/src/main/window/native-chat-paste-files.test.ts +++ b/src/main/window/native-chat-paste-files.test.ts @@ -196,6 +196,7 @@ describe('native-chat paste folder on disk', () => { { path: restored, kept: true, exists: true } ]) expect(isPathAllowed(secret, NO_ROOTS_STORE)).toBe(false) + expect(isPathAllowed(realpathSync(secret), NO_ROOTS_STORE)).toBe(false) }) it('neither restores from nor sweeps a paste folder that is itself a link', async () => {