This commit is contained in:
Jinjing
2026-08-29 20:12:06 -07:00
parent 9e9d9de3af
commit 2fdc0b6800
+2 -2
View File
@@ -33,7 +33,7 @@ export async function configureGoldenStubAgent(
): Promise<void> {
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 } : {})
})
},