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.