From fdf8a8d60768f1576e5e3abd275f336202edcac0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 26 May 2026 08:52:05 +0000 Subject: [PATCH] chore(autofix): apply prettier + eslint fixes via /autofix command --- gitnexus-web/src/core/llm/agent.ts | 15 ++++++--------- gitnexus-web/test/unit/agent-abort.test.ts | 4 +--- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/gitnexus-web/src/core/llm/agent.ts b/gitnexus-web/src/core/llm/agent.ts index d49915212..490e3bee4 100644 --- a/gitnexus-web/src/core/llm/agent.ts +++ b/gitnexus-web/src/core/llm/agent.ts @@ -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(); diff --git a/gitnexus-web/test/unit/agent-abort.test.ts b/gitnexus-web/test/unit/agent-abort.test.ts index 405be6ad7..9032ba122 100644 --- a/gitnexus-web/test/unit/agent-abort.test.ts +++ b/gitnexus-web/test/unit/agent-abort.test.ts @@ -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' }]); }); });