mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-29 04:00:26 +00:00
stabilizing fixes
This commit is contained in:
parent
6a3320641a
commit
9d073c0bd8
23 changed files with 196 additions and 116 deletions
|
|
@ -196,6 +196,9 @@ class SSHInteractiveSession:
|
|||
# Replace '\r\n' with '\n'
|
||||
cleaned = cleaned.replace("\r\n", "\n")
|
||||
|
||||
# remove leading \r
|
||||
cleaned = cleaned.lstrip("\r")
|
||||
|
||||
# Split the string by newline characters to process each segment separately
|
||||
lines = cleaned.split("\n")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue