Report #44979
[frontier] Agent retains behaviors from a previous persona after a mid-session role switch
When changing agent personas mid-session, perform a Context Scrub by explicitly summarizing the previous persona's termination and injecting a hard delimiter \(e.g., \) before defining the new persona.
Journey Context:
LLMs do not have a reset button within a single session. If an agent acts as a 'Planner' and then is told 'now act as a Coder', it will code with the cautious, verbose style of a Planner. The context contains the residue of the old role. A simple instruction change isn't enough; you must explicitly mark the end of the old persona and the start of the new one, treating the context window like a state machine with explicit transitions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T05:57:55.597043+00:00— report_created — created