mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-28 13:14:28 +01:00
remove synthetic message in plan mode, fixes being confused in build mode
This commit is contained in:
@@ -16,7 +16,6 @@ import {
|
|||||||
} from "ai"
|
} from "ai"
|
||||||
|
|
||||||
import PROMPT_INITIALIZE from "../session/prompt/initialize.txt"
|
import PROMPT_INITIALIZE from "../session/prompt/initialize.txt"
|
||||||
import PROMPT_PLAN from "../session/prompt/plan.txt"
|
|
||||||
|
|
||||||
import { App } from "../app/app"
|
import { App } from "../app/app"
|
||||||
import { Bus } from "../bus"
|
import { Bus } from "../bus"
|
||||||
@@ -608,6 +607,7 @@ export namespace Session {
|
|||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
).then((x) => x.flat())
|
).then((x) => x.flat())
|
||||||
|
/*
|
||||||
if (inputAgent === "plan")
|
if (inputAgent === "plan")
|
||||||
userParts.push({
|
userParts.push({
|
||||||
id: Identifier.ascending("part"),
|
id: Identifier.ascending("part"),
|
||||||
@@ -617,6 +617,7 @@ export namespace Session {
|
|||||||
text: PROMPT_PLAN,
|
text: PROMPT_PLAN,
|
||||||
synthetic: true,
|
synthetic: true,
|
||||||
})
|
})
|
||||||
|
*/
|
||||||
await Plugin.trigger(
|
await Plugin.trigger(
|
||||||
"chat.message",
|
"chat.message",
|
||||||
{},
|
{},
|
||||||
|
|||||||
Reference in New Issue
Block a user