MCPcopy Index your code
hub / github.com/anomalyco/opencode / runPlanExit

Function runPlanExit

packages/opencode/src/cli/cmd/run/tool.ts:473–480  ·  view source on GitHub ↗
(p: ToolProps<typeof PlanExitTool>)

Source from the content-addressed store, hash-verified

471}
472
473function runPlanExit(p: ToolProps<typeof PlanExitTool>): ToolInline {
474 return {
475 icon: "→",
476 title: text(p.frame.state.title) || "Switching to build agent",
477 mode: "block",
478 body: p.frame.status === "completed" ? text(p.frame.state.output) : undefined,
479 }
480}
481
482type PatchFile = Tool.InferMetadata<typeof ApplyPatchTool>["files"][number]
483

Callers

nothing calls this directly

Calls 1

textFunction · 0.70

Tested by

no test coverage detected