mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-04-10 13:02:37 +00:00
fix: clear _resuming on overridden agents so setup runs for next task
This commit is contained in:
@@ -576,13 +576,10 @@ async def _run_checkpoint_tui_async(location: str) -> None:
|
||||
for subsequent in crew.tasks[earliest + 1 :]:
|
||||
if subsequent.output and crew.tasks.index(subsequent) not in task_overrides:
|
||||
subsequent.output = None
|
||||
if (
|
||||
subsequent.agent
|
||||
and id(subsequent.agent) not in overridden_agents
|
||||
and subsequent.agent.agent_executor
|
||||
):
|
||||
if subsequent.agent and subsequent.agent.agent_executor:
|
||||
subsequent.agent.agent_executor._resuming = False
|
||||
subsequent.agent.agent_executor.messages = []
|
||||
if id(subsequent.agent) not in overridden_agents:
|
||||
subsequent.agent.agent_executor.messages = []
|
||||
click.echo()
|
||||
|
||||
if inputs:
|
||||
|
||||
Reference in New Issue
Block a user