AgentBench icon indicating copy to clipboard operation
AgentBench copied to clipboard

Fixed terminal output parsing

Open rjmoss opened this issue 6 months ago • 0 comments

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"

rjmoss avatar Aug 11 '24 11:08 rjmoss