mirror of
https://github.com/openai/codex.git
synced 2026-11-26 07:26:11 +00:00
Add managed developer instructions to requirements (#39755)
## What changed - Add `additional_developer_instructions` to managed requirements and expose it through `configRequirements/read` as `additionalDeveloperInstructions`, independently of ordinary developer instructions. - Include the managed instructions in model context, emit explicit replacement or removal messages when requirements change, and preserve the current value across compaction, resume, and agent forks without duplication. - Reject managed instructions whose rendered context exceeds 10,000 estimated tokens. ## Testing - Cover requirements layering and API serialization, context updates and removal, size validation, repeated model requests, compaction and resume, rollout migration, and agent forks. GitOrigin-RevId: bc0b70fb7988944c2f68176dff55f5ed61eb46c8
This commit is contained in:
1 parent
85a1b0e33d
commit
ce950dcf26
31 files changed
+540
-19
No files matched your search
@@ -41,6 +41,7 @@ const CONTEXTUAL_DEVELOPER_PREFIXES: &[&str] = &[
|
||||
"<permissions instructions>",
|
||||
APPROVED_COMMAND_PREFIX_SAVED_MESSAGE_PREFIX,
|
||||
"<model_switch>",
|
||||
"<managed_developer_instructions>",
|
||||
APPS_INSTRUCTIONS_OPEN_TAG,
|
||||
COLLABORATION_MODE_OPEN_TAG,
|
||||
"<multi_agent_role>",
|
||||
|
||||
Reference in new issue
Block a user