Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Lint
  • Loading branch information
Sg312 committed Aug 7, 2025
commit 7e8259b249ecbc89e54aed83f00150d3dd71254b
6 changes: 3 additions & 3 deletions apps/sim/app/api/copilot/methods/route.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,13 +354,13 @@ describe('Copilot Methods API Route', () => {
86400
)
expect(mockRedisGet).toHaveBeenCalledWith('tool_call:tool-call-123')
expect(mockToolRegistryExecute).toHaveBeenCalledWith('interrupt-tool', {
expect(mockToolRegistryExecute).toHaveBeenCalledWith('interrupt-tool', {
key: 'value',
confirmationMessage: 'User approved',
fullData: {
message: 'User approved',
status: 'accepted',
}
},
})
})

Expand Down Expand Up @@ -623,7 +623,7 @@ describe('Copilot Methods API Route', () => {
fullData: {
message: 'Confirmation message',
status: 'accepted',
}
},
})
})

Expand Down
4 changes: 1 addition & 3 deletions apps/sim/app/api/copilot/methods/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,7 @@ async function pollRedisForTool(
* Handle tool calls that require user interruption/approval
* Returns { approved: boolean, rejected: boolean, error?: boolean, message?: string } to distinguish between rejection, timeout, and error
*/
async function interruptHandler(
toolCallId: string
): Promise<{
async function interruptHandler(toolCallId: string): Promise<{
approved: boolean
rejected: boolean
error?: boolean
Expand Down