Skip to content

Add model-controlled truncation for code mode results#14258

Merged
pakrym-oai merged 2 commits intomainfrom
pakrym/describe-code-mode-truncation
Mar 10, 2026
Merged

Add model-controlled truncation for code mode results#14258
pakrym-oai merged 2 commits intomainfrom
pakrym/describe-code-mode-truncation

Conversation

@pakrym-oai
Copy link
Collaborator

Summary

  • document that @openai/code_mode exposes set_max_output_tokens_per_exec_call and that code_mode truncates the final Rust-side output when the budget is exceeded
  • enforce the configured budget in the Rust tool runner, reusing truncation helpers so text-only outputs follow the unified-exec wrapper and mixed outputs still fit within the limit
  • ensure the new behavior is covered by a code-mode integration test and string spec update

Testing

  • Not run (not requested)

@pakrym-oai pakrym-oai changed the title Add user-controlled truncation for code mode results Add model-controlled truncation for code mode results Mar 10, 2026
@pakrym-oai pakrym-oai force-pushed the pakrym/describe-code-mode-truncation branch from d2b385c to e88da2a Compare March 10, 2026 22:34
@pakrym-oai pakrym-oai merged commit e791559 into main Mar 10, 2026
30 checks passed
@pakrym-oai pakrym-oai deleted the pakrym/describe-code-mode-truncation branch March 10, 2026 22:57
@github-actions github-actions bot locked and limited conversation to collaborators Mar 10, 2026
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