1 parent 4139e5c commit 42c080fCopy full SHA for 42c080f
1 file changed
python_agent_harness/tui.py
@@ -1009,6 +1009,10 @@ def _start_agent(
1009
self.round_user_text = text
1010
self._round_times.append(time.time())
1011
self._run_start = time.time()
1012
+ # A new top-level run starts here: drop any todo list left over
1013
+ # from a previous run so a finished task's todos don't stay
1014
+ # pinned into the next task.
1015
+ self.session.clear_todos()
1016
# A new top-level run starts here: invalidate any worker still
1017
# unwinding from a previous run — from this point on it is stale
1018
# and must never touch shared state. Bump before clearing the
0 commit comments