Conversation
|
@codex review this |
|
Codex Review: Didn't find any major issues. Keep them coming! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review this |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 38fdc27d8d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
38fdc27 to
98c0e56
Compare
|
@codex review this |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5ff0745346
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review this |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c7d81f7dca
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
codex-rs/core/src/agent/control.rs
Outdated
| return false; | ||
| }; | ||
| if role != "user" { | ||
| if role != "developer" { |
There was a problem hiding this comment.
changing subagent message to dev
codex-rs/core/tests/suite/plugins.rs
Outdated
| "expected path {expected_path_str} in instructions" | ||
| ); | ||
| assert!( | ||
| instructions_text.find("## Plugins") < instructions_text.find("## Skills"), |
There was a problem hiding this comment.
after the refactor, ## Plugins is no longer in instructions_text at all.
That assertion used to check ordering within one string. Now we intentionally split into two user fragments:
- AGENTS fragment (instructions_text)
- plugins fragment (plugin_text)
So we replaced it with stronger checks in plugins.rs:
- instructions_text does not contain ## Plugins
- plugin_text does contain ## Plugins
- plugin fragment appears after AGENTS fragment in request input order
419ee40 to
51c06c6
Compare
|
@codex review this |
There was a problem hiding this comment.
💡 Codex Review
codex/codex-rs/core/src/codex.rs
Lines 415 to 419 in b5d8350
get_user_instructions now accepts only (config, skills) in project_doc.rs, but this call still passes a third plugins argument. This causes a compile-time E0061 (wrong number of arguments), so codex-core cannot build from this commit.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review this |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d8cdaaf67c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
d8cdaaf to
c8b22a3
Compare
636a666 to
e58874d
Compare
|
@codex review this |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e58874d0ac
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
9dd390a to
46fa741
Compare
|
@codex review this |
6dd1b70 to
18dfa72
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6dd1b70c77
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 18dfa72614
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
codex/codex-rs/core/src/codex.rs
Lines 1096 to 1098 in da27d66
SessionConfiguration::apply updates only cwd on turn overrides, but leaves project_doc_instructions unchanged. The AGENTS fragment now re-emits whenever cwd differs (AgentsMdInstructions::build, lines 546-553), so a cwd change can inject stale AGENTS content under the new directory label. This misguides the model with incorrect directory-specific instructions.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review this |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2a5415d226
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review this |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: addc82f6ea
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
3cd6baf to
34e7077
Compare
|
@codex review this |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 34e707738f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review this |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4bcfdafd01
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
9b202fb to
7b7ad57
Compare
|
@codex review this |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7b7ad57fe7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if separate_guardian_developer_message | ||
| && let Some(developer_instructions) = turn_context.developer_instructions.as_deref() | ||
| && let Some(guardian_developer_message) = | ||
| crate::context_manager::updates::build_developer_update_item(vec![ | ||
| developer_instructions.to_string(), | ||
| ]) | ||
| { | ||
| items.push(guardian_developer_message); | ||
| items.push(DeveloperTextFragment::new(developer_instructions).into_message()); |
There was a problem hiding this comment.
Avoid duplicating guardian developer instructions
For guardian subagent sessions, turn_context.developer_instructions is emitted twice: once in the main developer envelope via build_turn_state_fragments(None, ...) (which includes CustomDeveloperInstructionsUpdateFragment), and again in this explicit guardian-only branch. Previously guardian mode kept this text separate (not duplicated). This duplicates policy text, inflates tokens, and can overweight the same instruction.
Useful? React with 👍 / 👎.
7b7ad57 to
6f96c5d
Compare
|
@codex review this |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6f96c5d63f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
d69af5b to
04561f0
Compare
04561f0 to
1568ec0
Compare
|
@codex review this |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3d15bfde03
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Fold Apps, Skills, and Plugins into the model-visible fragment registry as ordered developer-envelope fragments, keep the turn-state/contextual-user framework intact, and refresh prompt layout snapshots/docs around the new shape. Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
a625b59 to
80241de
Compare
Summary
ModelVisibleContextFragmentModelVisibleContextRole(DeveloperContextRole/ContextualUserContextRole)DeveloperEnvelopeBuilder/ContextualUserEnvelopeBuilderbuild_initial_contextandbuild_settings_update_itemsunder a single ordered registry incore/src/context_manager/updates.rs(REGISTERED_TURN_STATE_FRAGMENT_BUILDERS).TurnContextDiffFragmentto one entrypoint:build(turn_context, reference_context_item, params)This removes pass-based boilerplate and keeps fragment extraction/diff/render logic together on each fragment type.
contextual_user_update_fragments.rs, pass enums/adapter plumbing) and keeps one obvious place to register new turn-state fragments.\n\n) because adjacent text content items are concatenated model-side.Standardized Rules
TurnContextDiffFragment.ResponseItem::Messagepayloads outside envelope builders.Additional Fixes Included
CustomDeveloperInstructions(with compatibility aliasing retained where needed).developerInstructionsAPI docs aligned in app-server protocol schema/readme.with_additional_permissionsrequests in restricted/on-request flowsrequest_permissionsin reject-policy instructionsAgentsMdInstructions, plugin-instructions naming, model-visible docs).Docs
docs/model-visible-context.mdnow documents the single registry + one-method diff trait path.AGENTS.mdnow points contributors to the same blessed registration path.developerInstructionsbehavior.Validation
just fmtcodex-coretests after rebase; current branch state still has compile errors incodex-coretests (for example missingDeveloperInstructionsimport incore/src/codex_tests.rsandRejectConfigfield update incore/src/exec_policy.rs) that need follow-up in this PR series.