mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-28 19:51:11 +00:00
intervention fix, terminal reset
This commit is contained in:
parent
a4937de68a
commit
2aedd5fd9d
4 changed files with 22 additions and 3 deletions
|
|
@ -115,4 +115,8 @@ class CodeExecution(Tool):
|
|||
if ( full_output and idle > wait_with_output / SLEEP_TIME ) or ( not full_output and idle > wait_without_output / SLEEP_TIME ): return full_output
|
||||
|
||||
async def reset_terminal(self):
|
||||
await self.prepare_state(reset=True)
|
||||
self.state.shell.close()
|
||||
await self.prepare_state(reset=True)
|
||||
response = self.agent.read_prompt("fw.code_reset.md")
|
||||
self.log.update(content=response)
|
||||
return response
|
||||
Loading…
Add table
Add a link
Reference in a new issue