mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-14 20:54:42 +00:00
tweak: wrap build-switch w/ system-reminder (#2525)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user