Remove passthroughCommands (#252)

This commit is contained in:
Seth Troisi
2025-05-05 17:57:06 +00:00
committed by GitHub
parent a0bed3e716
commit 415b757d4a
4 changed files with 0 additions and 133 deletions

View File

@@ -30,7 +30,6 @@ import {
import { isAtCommand } from '../utils/commandUtils.js';
import { useSlashCommandProcessor } from './slashCommandProcessor.js';
import { useShellCommandProcessor } from './shellCommandProcessor.js';
import { usePassthroughProcessor } from './passthroughCommandProcessor.js';
import { handleAtCommand } from './atCommandProcessor.js';
import { findSafeSplitPoint } from '../utils/markdownUtilities.js';
@@ -88,14 +87,6 @@ export const useGeminiStream = (
config,
);
const { handlePassthroughCommand } = usePassthroughProcessor(
setHistory,
setStreamingState,
setDebugMessage,
getNextMessageId,
config,
);
// Initialize Client Effect - uses props now
useEffect(() => {
setInitError(null);
@@ -177,11 +168,6 @@ export const useGeminiStream = (
return;
}
// 3. Check for Passthrough Commands
if (handlePassthroughCommand(trimmedQuery)) {
return;
}
// 3. Check for @ Commands using the utility function
if (isAtCommand(trimmedQuery)) {
const atCommandResult = await handleAtCommand({
@@ -542,7 +528,6 @@ export const useGeminiStream = (
getNextMessageId,
updateGeminiMessage,
handleSlashCommand,
handlePassthroughCommand,
// handleAtCommand is implicitly included via its direct call
setDebugMessage, // Added dependency for handleAtCommand & passthrough
setStreamingState, // Added dependency for handlePassthroughCommand