Skip to content

Please add an option to truncate the middle of a long output instead of the end. #3

@DavidBeste

Description

@DavidBeste

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.

truncate_example.txt

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions