diff --git a/agent/loop.go b/agent/loop.go
index b8f5f2a..84fd6f1 100644
--- a/agent/loop.go
+++ b/agent/loop.go
@@ -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("\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", replanGate),
+ Content: fmt.Sprintf("\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", replanGate),
}, nil)
roundsWithoutPlan = 0
}