mirror of
https://github.com/browser-use/web-ui.git
synced 2026-03-22 11:17:17 +08:00
refactor: create agent history file based on agent_<ID>
This commit is contained in:
2
webui.py
2
webui.py
@@ -364,7 +364,7 @@ async def run_custom_agent(
|
||||
)
|
||||
history = await agent.run(max_steps=max_steps)
|
||||
|
||||
history_file = os.path.join(save_agent_history_path, "AgentHistory.json")
|
||||
history_file = os.path.join(save_agent_history_path, f"{agent.agent_id}.json")
|
||||
agent.save_history(history_file)
|
||||
|
||||
final_result = history.final_result()
|
||||
|
||||
Reference in New Issue
Block a user