This commit is contained in:
Gal Zahavi
2025-08-15 10:27:33 -07:00
committed by GitHub
parent ab1c483cab
commit 1a2906a8ad
16 changed files with 412 additions and 442 deletions

View File

@@ -62,8 +62,6 @@ export type TrackedToolCall =
| TrackedCompletedToolCall
| TrackedCancelledToolCall;
import { useTerminalSize } from './useTerminalSize.js';
export function useReactToolScheduler(
onComplete: (tools: CompletedToolCall[]) => Promise<void>,
config: Config,
@@ -73,7 +71,6 @@ export function useReactToolScheduler(
getPreferredEditor: () => EditorType | undefined,
onEditorClose: () => void,
): [TrackedToolCall[], ScheduleFn, MarkToolsAsSubmittedFn] {
const terminalSize = useTerminalSize();
const [toolCallsForDisplay, setToolCallsForDisplay] = useState<
TrackedToolCall[]
>([]);
@@ -143,7 +140,6 @@ export function useReactToolScheduler(
onToolCallsUpdate: toolCallsUpdateHandler,
getPreferredEditor,
config,
getTerminalSize: () => terminalSize,
onEditorClose,
}),
[
@@ -152,7 +148,6 @@ export function useReactToolScheduler(
allToolCallsCompleteHandler,
toolCallsUpdateHandler,
getPreferredEditor,
terminalSize,
onEditorClose,
],
);