Skip to content

Conversation

@aibrahim-oai
Copy link
Collaborator

@aibrahim-oai aibrahim-oai commented Oct 30, 2025

Send delegate type header

@aibrahim-oai aibrahim-oai changed the title Headers Oct 30, 2025
@aibrahim-oai aibrahim-oai marked this pull request as ready for review October 30, 2025 01:20
Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ 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".

@aibrahim-oai
Copy link
Collaborator Author

@codex review

@aibrahim-oai aibrahim-oai enabled auto-merge (squash) October 30, 2025 01:26
Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ 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".

Comment on lines +1061 to +1062
#[serde(rename_all = "snake_case")]
#[ts(rename_all = "snake_case")]
Copy link
Contributor

Choose a reason for hiding this comment

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

P1 Badge Keep SubAgentSource serde names compatible

Adding #[serde(rename_all = "snake_case")] changes the serialized form of every SubAgentSource value (e.g. Reviewreview). We already persist SessionSource::SubAgent inside rollout JSONL files, and existing data on disk uses the old casing. After this change serde will refuse to deserialize those records, so code such as read_summary_from_rollout / extract_conversation_summary in codex-rs/app-server/src/codex_message_processor.rs (and the rollout list code) will fail when they call serde_json::from_value::<SessionMeta>. That makes previously recorded subagent sessions unreadable. Please keep the prior variant names (or add backward-compatible deserialization) instead of renaming them outright.

Useful? React with 👍 / 👎.

Copy link
Collaborator

@jif-oai jif-oai left a comment

Choose a reason for hiding this comment

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

Ok when comments are processed

.and_then(|v| v.as_str().map(std::string::ToString::to_string))
.unwrap_or_else(|| "other".to_string())
};
req_builder = req_builder.header("x-openai-subagent", subagent);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Make sure the infra team is aware of the new header name

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes they are

Err(_) => "unknown".to_string(),
};
req_builder = req_builder.header("Codex-Task-Type", task_type);
// Include subagent header only for subagent sessions.
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can actually always have it. It will just give more data

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the absence of it plus the originator give us the same data

@aibrahim-oai aibrahim-oai merged commit fac548e into main Oct 30, 2025
25 checks passed
@aibrahim-oai aibrahim-oai deleted the headers branch October 30, 2025 09:49
@github-actions github-actions bot locked and limited conversation to collaborators Oct 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants