From 7bbc643600a8a669f4dd9136a29f220a5b0e81ab Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Fri, 8 Aug 2025 20:44:59 -0400 Subject: [PATCH] remove synthetic message in plan mode, fixes being confused in build mode --- packages/opencode/src/session/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/opencode/src/session/index.ts b/packages/opencode/src/session/index.ts index 3e82610b..494a39c4 100644 --- a/packages/opencode/src/session/index.ts +++ b/packages/opencode/src/session/index.ts @@ -16,7 +16,6 @@ import { } from "ai" import PROMPT_INITIALIZE from "../session/prompt/initialize.txt" -import PROMPT_PLAN from "../session/prompt/plan.txt" import { App } from "../app/app" import { Bus } from "../bus" @@ -608,6 +607,7 @@ export namespace Session { ] }), ).then((x) => x.flat()) + /* if (inputAgent === "plan") userParts.push({ id: Identifier.ascending("part"), @@ -617,6 +617,7 @@ export namespace Session { text: PROMPT_PLAN, synthetic: true, }) + */ await Plugin.trigger( "chat.message", {},