chore(autofix): apply prettier + eslint fixes via /autofix command

This commit is contained in:
github-actions[bot] 2026-05-26 08:52:05 +00:00
parent 7e3023b01b
commit fdf8a8d607
2 changed files with 7 additions and 12 deletions

View file

@ -443,15 +443,12 @@ export async function* streamAgentResponse(
const formattedMessages = buildLangChainMessages(messages);
// Use BOTH modes: 'values' for structure, 'messages' for token streaming
const stream = await agent.stream(
{ messages: formattedMessages },
{
streamMode: ['values', 'messages'] as any,
// Allow longer tool/reasoning loops (more Cursor-like persistence)
recursionLimit: 50,
...(options.signal ? { signal: options.signal } : {}),
} as any,
);
const stream = await agent.stream({ messages: formattedMessages }, {
streamMode: ['values', 'messages'] as any,
// Allow longer tool/reasoning loops (more Cursor-like persistence)
recursionLimit: 50,
...(options.signal ? { signal: options.signal } : {}),
} as any);
// Track what we've yielded to avoid duplicates
const yieldedToolCalls = new Set<string>();

View file

@ -77,8 +77,6 @@ describe('streamAgentResponse abort', () => {
chunks.push(chunk);
}
expect(chunks).toEqual([
{ type: 'error', error: 'Cannot abort the current transaction' },
]);
expect(chunks).toEqual([{ type: 'error', error: 'Cannot abort the current transaction' }]);
});
});