mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 04:30:48 +00:00
Merge branch 'main' into feat/debug-logging-refactor
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
commit
135df54f27
378 changed files with 40051 additions and 6776 deletions
|
|
@ -981,26 +981,6 @@ describe('createTaskToolProgressHandler', () => {
|
|||
expect(mockAdapter.emitToolResult).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it('should work without adapter (non-JSON mode)', () => {
|
||||
const { handler } = createTaskToolProgressHandler(
|
||||
mockConfig,
|
||||
'parent-tool-id',
|
||||
undefined,
|
||||
);
|
||||
|
||||
const taskDisplay: TaskResultDisplay = {
|
||||
type: 'task_execution',
|
||||
subagentName: 'test-agent',
|
||||
taskDescription: 'Test task',
|
||||
taskPrompt: 'Test prompt',
|
||||
status: 'running',
|
||||
toolCalls: [],
|
||||
};
|
||||
|
||||
// Should not throw
|
||||
expect(() => handler('task-call-id', taskDisplay)).not.toThrow();
|
||||
});
|
||||
|
||||
it('should work with adapter that does not support subagent APIs', () => {
|
||||
const limitedAdapter = {
|
||||
emitToolResult: vi.fn(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue