mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-04 02:31:36 +00:00
chore(autofix): apply prettier + eslint fixes via /autofix command
This commit is contained in:
parent
7e3023b01b
commit
fdf8a8d607
2 changed files with 7 additions and 12 deletions
|
|
@ -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>();
|
||||
|
|
|
|||
|
|
@ -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' }]);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue