mirror of
https://github.com/openai/codex.git
synced 2026-11-26 07:26:11 +00:00
Add developer instructions for persistent mode (#41050)
## What changed - Add bundled proactivity and follow-up guidance when `ReasoningEffort::Persistent` is selected. - Allow model metadata to override or disable the guidance with `persistent_instructions`. - Track the instructions as world state so effort and model changes replace or retire stale guidance without duplicating unchanged context. - Tailor approval guidance to `send_user_message_async` availability, rebuild it for forked agents and rolled-back history, and exclude Guardian sessions. ## Testing - Cover default, overridden, disabled, replaced, and retired instructions. - Cover model changes, history transitions, agent forks, Guardian sessions, and asynchronous-message tool availability. GitOrigin-RevId: 78e05d0335a70b385bd069b45edcd4ba570cef91
This commit is contained in:
1 parent
72c96598c6
commit
f1433fc71f
24 files changed
+565
-9
No files matched your search
@@ -42,6 +42,7 @@ const CONTEXTUAL_DEVELOPER_PREFIXES: &[&str] = &[
|
||||
APPROVED_COMMAND_PREFIX_SAVED_MESSAGE_PREFIX,
|
||||
"<model_switch>",
|
||||
"<managed_developer_instructions>",
|
||||
"<persistent_mode>",
|
||||
APPS_INSTRUCTIONS_OPEN_TAG,
|
||||
COLLABORATION_MODE_OPEN_TAG,
|
||||
"<multi_agent_role>",
|
||||
|
||||
Reference in new issue
Block a user