Skip to content

Conversation

@dylan-hurd-oai
Copy link
Collaborator

Fixes #7867 and #7906

Summary

Update truncation details.

@dylan-hurd-oai dylan-hurd-oai enabled auto-merge (squash) December 12, 2025 20:17

- When searching for text or files, prefer using `rg` or `rg --files` respectively because `rg` is much faster than alternatives like `grep`. (If the `rg` command is not found, then use alternatives.)
- Read files in chunks with a max chunk size of 250 lines. Do not use python scripts to attempt to output larger chunks of a file. Command line output will be truncated after 10 kilobytes or 256 lines of output, regardless of the command used.
- Do not use python scripts to attempt to output larger chunks of a file.
Copy link
Collaborator

@etraut-openai etraut-openai Dec 12, 2025

Choose a reason for hiding this comment

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

Would it make sense to make the same change to the non-OAI prompt.md?

That was requested in https://github.com/openai/codex/pull/7868/changes.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, will pull in

@dylan-hurd-oai dylan-hurd-oai merged commit 570eb5f into main Dec 12, 2025
26 checks passed
@dylan-hurd-oai dylan-hurd-oai deleted the dh--gpt-prompt-patch-2 branch December 12, 2025 20:21
@github-actions github-actions bot locked and limited conversation to collaborators Dec 12, 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.

Remove hard-coded output limits from gpt-5.1 (non-codex) system prompt

4 participants