mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
Add missing last ps1 match output into combined output (#8097)
This commit is contained in:
parent
04bdea5faf
commit
107789b5a8
@ -462,6 +462,8 @@ class BashSession:
|
||||
ps1_matches[i].end() + 1 : ps1_matches[i + 1].start()
|
||||
]
|
||||
combined_output += output_segment + '\n'
|
||||
# Add the content after the last PS1 prompt
|
||||
combined_output += pane_content[ps1_matches[-1].end() + 1 :]
|
||||
logger.debug(f'COMBINED OUTPUT: {combined_output}')
|
||||
return combined_output
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user