mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-01 07:13:00 +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 :]:
|
for subsequent in crew.tasks[earliest + 1 :]:
|
||||||
if subsequent.output and crew.tasks.index(subsequent) not in task_overrides:
|
if subsequent.output and crew.tasks.index(subsequent) not in task_overrides:
|
||||||
subsequent.output = None
|
subsequent.output = None
|
||||||
if (
|
if subsequent.agent and subsequent.agent.agent_executor:
|
||||||
subsequent.agent
|
|
||||||
and id(subsequent.agent) not in overridden_agents
|
|
||||||
and subsequent.agent.agent_executor
|
|
||||||
):
|
|
||||||
subsequent.agent.agent_executor._resuming = False
|
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()
|
click.echo()
|
||||||
|
|
||||||
if inputs:
|
if inputs:
|
||||||
|
|||||||
Reference in New Issue
Block a user