Merge branch 'dev' into add-auto-model
This commit is contained in:
@@ -18,7 +18,7 @@ import { SystemPrompt } from "./system"
|
||||
import { InstructionPrompt } from "./instruction"
|
||||
import { Plugin } from "../plugin"
|
||||
import PROMPT_PLAN from "../session/prompt/plan.txt"
|
||||
import BUILD_SWITCH from "../session/prompt/build-switch.txt"
|
||||
import CODE_SWITCH from "../session/prompt/code-switch.txt"
|
||||
import MAX_STEPS from "../session/prompt/max-steps.txt"
|
||||
import { defer } from "../util/defer"
|
||||
import { clone } from "remeda"
|
||||
@@ -1214,13 +1214,15 @@ export namespace SessionPrompt {
|
||||
})
|
||||
}
|
||||
const wasPlan = input.messages.some((msg) => msg.info.role === "assistant" && msg.info.agent === "plan")
|
||||
if (wasPlan && input.agent.name === "build") {
|
||||
// kilocode_change start - renamed from "build" to "code"
|
||||
if (wasPlan && input.agent.name === "code") {
|
||||
// kilocode_change end
|
||||
userMessage.parts.push({
|
||||
id: Identifier.ascending("part"),
|
||||
messageID: userMessage.info.id,
|
||||
sessionID: userMessage.info.sessionID,
|
||||
type: "text",
|
||||
text: BUILD_SWITCH,
|
||||
text: CODE_SWITCH,
|
||||
synthetic: true,
|
||||
})
|
||||
}
|
||||
@@ -1241,7 +1243,7 @@ export namespace SessionPrompt {
|
||||
sessionID: userMessage.info.sessionID,
|
||||
type: "text",
|
||||
text:
|
||||
BUILD_SWITCH + "\n\n" + `A plan file exists at ${plan}. You should execute on the plan defined within it`,
|
||||
CODE_SWITCH + "\n\n" + `A plan file exists at ${plan}. You should execute on the plan defined within it`,
|
||||
synthetic: true,
|
||||
})
|
||||
userMessage.parts.push(part)
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<system-reminder>
|
||||
Your operational mode has changed from plan to build.
|
||||
Your operational mode has changed from plan to code.
|
||||
You are no longer in read-only mode.
|
||||
You are permitted to make file changes, run shell commands, and utilize your arsenal of tools as needed.
|
||||
</system-reminder>
|
||||
Reference in New Issue
Block a user