fix: update plan path in replan-required message

This commit is contained in:
Levi Neely 2026-08-07 17:21:24 +02:00
parent 3c459cb370
commit bb3cb01c24
1 changed files with 1 additions and 1 deletions

View File

@ -631,7 +631,7 @@ func run(ctx context.Context, cfg agentConfig, state state) error {
if roundsWithoutPlan >= replanGate {
state.update(backend.Message{
Role: "user",
Content: fmt.Sprintf("<system-replan-required>\nYou have executed %d tool rounds without replanning. Stop and write a PLAN: block showing your current checklist before calling any more tools. Update s/$OLLIE_SESSION_ID/plan.\n</system-replan-required>", replanGate),
Content: fmt.Sprintf("<system-replan-required>\nYou have executed %d tool rounds without replanning. Stop and write a PLAN: block showing your current checklist before calling any more tools. Update session/$OLLIE_SESSION_ID/agent/$OLLIE_AGENT_ID/plan.\n</system-replan-required>", replanGate),
}, nil)
roundsWithoutPlan = 0
}