refactor(prompts): every model prompt is a file in internal/prompts
deploy / plan (push) Successful in 6s
deploy / archied-image (push) Canceled after 0s
deploy / agent-image (push) Canceled after 0s
deploy / dist-zip (push) Canceled after 0s
ci/woodpecker/push/deploy Pipeline was canceled
deploy / gate (push) Canceled after 2m58s

This commit is contained in:
sam committed 2026-11-11 00:01:43 +11:00
1 parent e5e968780f
commit 44237b448b
31 files changed
+286 -183

No files matched your search

+2 -2
View File
@@ -5,6 +5,7 @@ import (
"strings"
"github.com/samcharles93/archie-core/internal/domain/agentrun"
"github.com/samcharles93/archie-core/internal/prompts"
)
// missionWithHistory puts the conversation of an earlier run of the stage
@@ -17,8 +18,7 @@ func missionWithHistory(req agentrun.Request) string {
return req.Mission
}
var b strings.Builder
b.WriteString("<previous_run>\nAn earlier run of this stage stopped at its step budget and was approved to continue. " +
"Its conversation follows and its edits are already in the worktree. Continue from where it stopped; do not start over.\n\n")
b.WriteString("<previous_run>\n" + prompts.ResumeRun() + "\n\n")
for _, e := range entries {
switch e.Kind {
case agentrun.TranscriptModel: