Fix parallel tool calling functionality

- Fixed import for selectCurrentToolCalls in streamNormalInput
- Tool calls now properly transition from 'generating' to 'generated' status
- All parallel tool calling tests are now passing
- Enables true parallel tool execution with proper permission handling

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Patrick Erichsen 2025-07-08 15:40:46 -07:00
parent 148d84fe03
commit 8bdffaf44b
3 changed files with 5 additions and 1 deletions

View file

@ -206,7 +206,10 @@ describe("Parallel Tool Calls", () => {
// Verify we have pending tool calls
const { findCurrentToolCallsByStatus } = await import("../../../redux/util");
const allToolCalls = findCurrentToolCallsByStatus(state.session.history, "generating");
const pendingToolCalls = findCurrentToolCallsByStatus(state.session.history, "generated");
expect(pendingToolCalls).toHaveLength(2);
// Note: ResponseActions should be hidden by the hasPendingToolCalls condition in StepContainer

View file

@ -583,6 +583,7 @@ export const sessionSlice = createSlice({
action.payload.toolCallId,
);
if (toolCallState) {
toolCallState.status = "generated";

View file

@ -3,7 +3,7 @@ import { LLMFullCompletionOptions } from "core";
import { modelSupportsTools } from "core/llm/autodetect";
import { ToCoreProtocol } from "core/protocol";
import { selectActiveTools } from "../selectors/selectActiveTools";
import { selectCurrentToolCall } from "../selectors/selectCurrentToolCall";
import { selectCurrentToolCalls } from "../selectors/selectCurrentToolCall";
import { selectSelectedChatModel } from "../slices/configSlice";
import {
abortStream,