From 649c97cf45fcbd5f17549aaec1095588dfb2dffa Mon Sep 17 00:00:00 2001 From: Dotta Date: Thu, 6 Aug 2026 14:09:58 +0000 Subject: [PATCH] test(e2e): align agent JWT instance Mint Playwright agent JWTs for the same instance that verifies them so invalid Bearer credentials cannot rely on local board fallback. Co-Authored-By: Paperclip --- tests/e2e/playwright.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/e2e/playwright.config.ts b/tests/e2e/playwright.config.ts index 5f17a3f1b1..913d4b5d29 100644 --- a/tests/e2e/playwright.config.ts +++ b/tests/e2e/playwright.config.ts @@ -18,6 +18,9 @@ const PAPERCLIP_TOOL_ACTION_SIGNING_SECRET = const PLAYWRIGHT_CHANNEL = process.env.PAPERCLIP_PLAYWRIGHT_CHANNEL; process.env.PAPERCLIP_HOME = PAPERCLIP_HOME; +// JWT signing is instance-derived. Keep the Playwright worker that mints test +// tokens on the same instance boundary as the web server that verifies them. +process.env.PAPERCLIP_INSTANCE_ID = PAPERCLIP_INSTANCE_ID; process.env.PAPERCLIP_CONFIG = PAPERCLIP_CONFIG; // Worker processes reload this config; retain the main process's server path // for specs that seed historical database state in the throwaway instance.