fix: remove task-continuation-enforcer references after dev merge

Dev removed task-continuation-enforcer entirely. Remove all remaining
references from plugin hooks, event handler, tool-execute-before, and
config schema to align with origin/dev.
This commit is contained in:
YeonGyu-Kim
2026-02-08 21:11:07 +09:00
parent 0e6f72888e
commit 9f8027ed4e
8 changed files with 16 additions and 30 deletions
+12 -9
View File
@@ -1,12 +1,10 @@
import { tool, type PluginInput, type ToolDefinition } from "@opencode-ai/plugin"
import { ALLOWED_AGENTS, CALL_OMO_AGENT_DESCRIPTION } from "./constants"
import type { CallOmoAgentArgs } from "./types"
import type { AllowedAgentType, CallOmoAgentArgs, ToolContextWithMetadata } from "./types"
import type { BackgroundManager } from "../../features/background-agent"
import { log } from "../../shared"
import { normalizeAgentType } from "./agent-type-normalizer"
import { executeBackgroundAgent } from "./background-agent-executor"
import { executeSyncAgent } from "./sync-agent-executor"
import type { ToolContextWithMetadata } from "./tool-context-with-metadata"
import { executeBackground } from "./background-executor"
import { executeSync } from "./sync-executor"
export function createCallOmoAgent(
ctx: PluginInput,
@@ -34,21 +32,26 @@ export function createCallOmoAgent(
const toolCtx = toolContext as ToolContextWithMetadata
log(`[call_omo_agent] Starting with agent: ${args.subagent_type}, background: ${args.run_in_background}`)
const normalizedAgent = normalizeAgentType(args.subagent_type)
if (!normalizedAgent) {
// Case-insensitive agent validation - allows "Explore", "EXPLORE", "explore" etc.
if (
!ALLOWED_AGENTS.some(
(name) => name.toLowerCase() === args.subagent_type.toLowerCase(),
)
) {
return `Error: Invalid agent type "${args.subagent_type}". Only ${ALLOWED_AGENTS.join(", ")} are allowed.`
}
const normalizedAgent = args.subagent_type.toLowerCase() as AllowedAgentType
args = { ...args, subagent_type: normalizedAgent }
if (args.run_in_background) {
if (args.session_id) {
return `Error: session_id is not supported in background mode. Use run_in_background=false to continue an existing session.`
}
return await executeBackgroundAgent(args, toolCtx, backgroundManager)
return await executeBackground(args, toolCtx, backgroundManager)
}
return await executeSyncAgent(args, toolCtx, ctx)
return await executeSync(args, toolCtx, ctx)
},
})
}
+1 -1
View File
@@ -1,6 +1,6 @@
export type { ExecutorContext, ParentContext } from "./executor-types"
export { resolveSkillContent } from "./skill-content-resolver"
export { resolveSkillContent } from "./skill-resolver"
export { resolveParentContext } from "./parent-context-resolver"
export { executeBackgroundContinuation } from "./background-continuation"