Skip to content

Commit a01d028

Browse files
committed
fix(copilot): claim an ungated terminal operation in the desktop Stop fixture
1 parent 9f27d94 commit a01d028

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎apps/sim/lib/mothership/tools/client/desktop-tool-authorization.integration.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,10 @@ describe.runIf(Boolean(redisUrl))('desktop tool calls the server no longer admit
186186
async function desktopIsRunning(
187187
runId: string,
188188
toolName: string,
189+
args: Record<string, unknown> = {},
189190
registry?: ResolvedSecretTraceRegistry
190191
) {
191-
const toolCallId = await agentCalls(runId, toolName, {}, registry)
192+
const toolCallId = await agentCalls(runId, toolName, args, registry)
192193
const claim = await desktopClaims(toolCallId)
193194
expect(claim.status).toBe(200)
194195
return toolCallId
@@ -349,7 +350,7 @@ describe.runIf(Boolean(redisUrl))('desktop tool calls the server no longer admit
349350
it('wakes the waiting turn with what Stop did to a call the desktop already claimed', async () => {
350351
const { runId, streamId } = await startRun()
351352
const registry = new ResolvedSecretTraceRegistry([])
352-
const toolCallId = await desktopIsRunning(runId, 'terminal', registry)
353+
const toolCallId = await desktopIsRunning(runId, 'terminal', { operation: 'read' }, registry)
353354
const agentAnswer = waitForClientToolCompletion({
354355
toolCallId,
355356
runId,

0 commit comments

Comments
 (0)