mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
Remove passthroughCommands (#252)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user