Skip to content

Commit 0ad285e

Browse files
committed
fix tests
1 parent beecd6c commit 0ad285e

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

backend/src/__tests__/run-agent-step-tools.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ describe('runAgentStep - set_output tool', () => {
410410
content: expect.stringContaining('Test instructions prompt'),
411411
},
412412
{
413-
role: 'user',
413+
role: 'assistant',
414414
content: expect.stringContaining('read_files'),
415415
},
416416
{

backend/src/__tests__/run-programmatic-step.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -755,9 +755,9 @@ describe('runProgrammaticStep', () => {
755755
expect(result.agentState.messageHistory).toEqual([
756756
...mockAgentState.messageHistory,
757757
{
758-
role: 'user',
758+
role: 'assistant',
759759
content:
760-
'<user_message><codebuff_tool_call>\n{\n "cb_tool_name": "end_turn",\n "cb_easp": true\n}\n</codebuff_tool_call></user_message>',
760+
'<codebuff_tool_call>\n{\n "cb_tool_name": "end_turn",\n "cb_easp": true\n}\n</codebuff_tool_call>',
761761
},
762762
])
763763
})

backend/src/run-programmatic-step.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { getToolCallString } from '@codebuff/common/tools/utils'
22

33
import { executeToolCall } from './tools/tool-executor'
44
import { logger } from './util/logger'
5-
import { asUserMessage } from './util/messages'
65
import { SandboxManager } from './util/quickjs-sandbox'
76
import { getRequestContext } from './websockets/request-context'
87
import { sendAction } from './websockets/websocket-action'

0 commit comments

Comments
 (0)