This commit is contained in:
Siddharth Ganesan
2026-01-30 12:15:41 -08:00
parent deccca0276
commit eedcde0ce1
3 changed files with 1204 additions and 3 deletions

View File

@@ -21,3 +21,22 @@ export const INTERRUPT_TOOL_NAMES = [
export const INTERRUPT_TOOL_SET = new Set<string>(INTERRUPT_TOOL_NAMES)
export const SUBAGENT_TOOL_NAMES = [
'debug',
'edit',
'plan',
'test',
'deploy',
'auth',
'research',
'knowledge',
'custom_tool',
'tour',
'info',
'workflow',
'evaluate',
'superagent',
] as const
export const SUBAGENT_TOOL_SET = new Set<string>(SUBAGENT_TOOL_NAMES)

View File

@@ -9,7 +9,7 @@ import type {
} from '@/lib/copilot/orchestrator/types'
import { executeToolServerSide, markToolComplete } from '@/lib/copilot/orchestrator/tool-executor'
import { getToolConfirmation } from '@/lib/copilot/orchestrator/persistence'
import { INTERRUPT_TOOL_SET } from '@/lib/copilot/orchestrator/config'
import { INTERRUPT_TOOL_SET, SUBAGENT_TOOL_SET } from '@/lib/copilot/orchestrator/config'
const logger = createLogger('CopilotSseHandlers')
@@ -168,6 +168,10 @@ export const sseHandlers: Record<string, SSEHandler> = {
if (isPartial) return
if (SUBAGENT_TOOL_SET.has(toolName)) {
return
}
const isInterruptTool = INTERRUPT_TOOL_SET.has(toolName)
const isInteractive = options.interactive === true

File diff suppressed because it is too large Load Diff