fix: correct plan path in replan-required message

Use session/$OLLIE_SESSION_ID/agent/$OLLIE_UNAME/plan instead of
outdated s/$OLLIE_SESSION_ID/plan
This commit is contained in:
Levi Neely 2026-08-07 17:21:51 +02:00
parent bb3cb01c24
commit 7100942984
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 session/$OLLIE_SESSION_ID/agent/$OLLIE_AGENT_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_UNAME/plan.\n</system-replan-required>", replanGate),
}, nil)
roundsWithoutPlan = 0
}