AgentBench
AgentBench copied to clipboard
Fixed terminal output parsing
Currently the output parsing from the terminal breaks when it first sees a escape symbol however it appends the whole package received from the socket, which does not necessarily correspond to a line in the terminal (if the command was run by a human). As an example:
Before the agent receives "The output of the OS: The output of the OS:\n\n10\n[?2004h]0;root@e88175735799:/root@e88175735799:/# [K"
Now after this fix the agent receives "The output of the OS: 10"