From 2fdc0b6800e93b66021d8a0de87fce45ef30f2e9 Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Sat, 29 Aug 2026 20:12:06 -0700 Subject: [PATCH] fix stub --- tests/e2e/helpers/golden-stub-agent.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/helpers/golden-stub-agent.ts b/tests/e2e/helpers/golden-stub-agent.ts index f20573e4b64..427a6a2560c 100644 --- a/tests/e2e/helpers/golden-stub-agent.ts +++ b/tests/e2e/helpers/golden-stub-agent.ts @@ -33,7 +33,7 @@ export async function configureGoldenStubAgent( ): Promise { const agent = options.agent ?? 'codex' await page.evaluate( - async ({ agent, windowsShell }) => { + async ({ agent, agentArgs, windowsShell }) => { const store = window.__store if (!store) { throw new Error('Orca store is unavailable') @@ -41,7 +41,7 @@ export async function configureGoldenStubAgent( await store.getState().updateSettings({ defaultTuiAgent: agent, agentCmdOverrides: { [agent]: 'golden-stub-agent' }, - agentDefaultArgs: { [agent]: options.agentArgs ?? '' }, + agentDefaultArgs: { [agent]: agentArgs }, ...(windowsShell ? { terminalWindowsShell: windowsShell } : {}) }) },