refactor(delegate-task): remove AI slop from supporting files

Tighten resolve-metadata-model runtime guards, tidy tool-argument-preparation
subagent-type override logging, and trim a redundant literal in the
metadata-model-unification test. Behavior preserved (328 tests pass).
This commit is contained in:
YeonGyu-Kim
2026-04-20 15:20:45 +09:00
parent bcf95112ca
commit 3f28e42483
3 changed files with 16 additions and 10 deletions
@@ -1,4 +1,4 @@
const { describe, test, expect, mock } = require("bun:test")
const { describe, test, expect } = require("bun:test")
import type { DelegateTaskArgs, ToolContextWithMetadata } from "./types"
import type { ParentContext } from "./executor-types"
@@ -90,7 +90,7 @@ describe("metadata model unification", () => {
id: "bg_unstable", description: "test", agent: "explore",
status: "completed", sessionID: "ses_unstable", model: MODEL,
}
const result = await executeUnstableAgentTask(
await executeUnstableAgentTask(
args, ctx,
{
manager: {