Skip to content

fix: exec commands that blows up context window. - #4706

Merged
aibrahim-oai merged 12 commits into
mainfrom
exec-bug
Oct 4, 2025
Merged

aibrahim-oai merged 12 commits into
mainfrom
exec-bug

Conversation

@aibrahim-oai

@aibrahim-oai aibrahim-oai commented Oct 4, 2025 •

Copy link
Copy Markdown
Contributor

We truncate the output of exec commands to not blow the context window. However, some cases we weren't doing that. This caused reports of people with 76% context window left facing input exceeded context window which is weird.

@aibrahim-oai
aibrahim-oai marked this pull request as ready for review October 4, 2025 02:16
@aibrahim-oai aibrahim-oai changed the title exec-bug Fix: exec commands that blows up context window. Oct 4, 2025
@aibrahim-oai aibrahim-oai changed the title Fix: exec commands that blows up context window. fix: exec commands that blows up context window. Oct 4, 2025
pakrym-oai
pakrym-oai previously approved these changes Oct 4, 2025
pakrym-oai

This comment was marked as duplicate.

@pakrym-oai
pakrym-oai self-requested a review October 4, 2025 16:03
@pakrym-oai
pakrym-oai dismissed their stale review October 4, 2025 16:03

Wrong PR

truncate_formatted_exec_output(content)
}

fn truncate_formatted_exec_output(content: &str) -> String {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK for now but we will have to merge later all the truncation code we have everywhere

@aibrahim-oai
aibrahim-oai merged commit d7acd14 into main Oct 4, 2025
@aibrahim-oai
aibrahim-oai deleted the exec-bug branch October 4, 2025 18:49
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants