-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Is your feature request related to a problem? Please describe.
For some long outputs like ls in a directory with a lot of files or a script showing a long output log the end is truncated.
Describe the solution you'd like
Please add an option to truncate the middle part of the output instead of the end. This is especially important when an agent runs a script and needs feedback if the script has run successfully. An example is given as an attachment where the output of the command "python3 infra/helper.py build_image libtiff" is truncated and the agent assumes that the command has been run successfully. However, we don't know if later in the process an error occurred.
Describe alternatives you've considered
An alternative would be to use the entire context or to increase the truncation limit so that this occurs rarer. However, these two approaches have their own limitations.