mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
system reminder
This commit is contained in:
parent
ae96d8d3e3
commit
477dc2b9fa
1 changed files with 2 additions and 2 deletions
|
|
@ -766,8 +766,8 @@ export namespace Session {
|
|||
})
|
||||
}
|
||||
|
||||
const lastAssistantMsg = msgs.filter((x) => x.info.role === "assistant").at(-1)?.info as MessageV2.Assistant
|
||||
if (lastAssistantMsg?.mode === "plan" && agent.name === "build") {
|
||||
const wasPlan = msgs.some((msg) => msg.info.role === "assistant" && msg.info.mode === "plan")
|
||||
if (wasPlan && agent.name === "build") {
|
||||
msgs.at(-1)?.parts.push({
|
||||
id: Identifier.ascending("part"),
|
||||
messageID: userMsg.id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue