Spaces:
Paused

deciduus commited on
Commit
620b4d5
·
1 Parent(s): 892d63d

Edit: Code Exe Tool - The get_terminal_output function will now detect if the last 128 characters repeat 5 times consecutively and will stop execution if this pattern occurs, indicating a likely infinite loop.

Browse files

Now, when a repeating output pattern is detected:
An error message will be printed to the console, indicating the loop and that the session is being reset.
The log will be updated.
self.reset_terminal(session=session) will be called to reset the specific session where the loop occurred.
A detailed message will be returned to the agent, including the captured output, the loop detection confirmation, a notification that the session was reset, and advice to review the problematic code/command.

1 file changed +22 -1
python/tools/code_execution_tool.py+22-1