Add missing last ps1 match output into combined output (#8097)

This commit is contained in:
Ryan H. Tran 2025-04-28 20:06:26 +07:00 committed by GitHub
parent 04bdea5faf
commit 107789b5a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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