Skip to content

feat: --custom-apply-patch with text shell output - #4711

Closed
dylan-hurd-oai wants to merge 8 commits into
mainfrom
dh--text-shell-output
Closed

dylan-hurd-oai wants to merge 8 commits into
mainfrom
dh--text-shell-output

Conversation

@dylan-hurd-oai

@dylan-hurd-oai dylan-hurd-oai commented Oct 4, 2025 •

Copy link
Copy Markdown
Contributor

Summary

This PR does 2 things:

  1. Updates handle_container_exec_with_params to format shell output as text instead of json when using ApplyPatchToolType::Freeform. Since we only don't serialize structured data about the exec call, besides the call_id, this approach is simpler to implement.
  2. Adds a --custom-apply-patch flag to enable this setting on a session-by-session basis

Testing

  • Tested locally
  • add tests for the new tool format

@dylan-hurd-oai
dylan-hurd-oai requested a review from jif-oai October 4, 2025 07:05
@dylan-hurd-oai dylan-hurd-oai changed the title feat: custom-apply-patch with text shell output feat: --custom-apply-patch with text shell output Oct 4, 2025
format_significant_digits(duration.as_secs_f64(), 4)
}

fn format_significant_digits(value: f64, digits: usize) -> 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.

isn't there a built-in?

@dylan-hurd-oai

Copy link
Copy Markdown
Contributor Author

Closing in favor of #4718 until we support a more flexible serialization schema

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

2 participants