Skip to content

[codex] Add comp_hash to model metadata - #27519

Merged
aibrahim-oai merged 1 commit into
codex/turn-sampling-phasesfrom
codex/add-comp-hash-model-info
Jun 11, 2026
Merged

aibrahim-oai merged 1 commit into
codex/turn-sampling-phasesfrom
codex/add-comp-hash-model-info

Conversation

@aibrahim-oai

@aibrahim-oai aibrahim-oai commented Jun 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add optional comp_hash metadata to ModelInfo
  • update ModelInfo fixtures for the shared schema change
  • keep older model responses compatible by defaulting the field to None

Why

The models endpoint needs an opaque identifier for compaction-compatible model configurations. This PR only exposes that value in model metadata; it does not add it to turn context or change runtime behavior.

Follow-up #27520 carries the value through turn context and rollouts, then uses it to trigger compaction.

Stack

Testing

  • just test -p codex-protocol model_info_defaults_availability_nux_to_none_when_omitted
  • just fix -p codex-core -p codex-protocol -p codex-analytics -p codex-models-manager

@aibrahim-oai
aibrahim-oai force-pushed the codex/add-comp-hash-model-info branch from 64e76ec to 5a77281 Compare June 11, 2026 02:48
@aibrahim-oai aibrahim-oai changed the title [codex] Add comp_hash to model metadata and rollouts [codex] Add comp_hash to model metadata Jun 11, 2026
@aibrahim-oai
aibrahim-oai marked this pull request as ready for review June 11, 2026 02:54
@aibrahim-oai
aibrahim-oai requested a review from a team as a code owner June 11, 2026 02:54

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Delightful!

ℹ️ 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
Copy Markdown
Contributor Author

@codex review this

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Can't wait for the next one!

ℹ️ 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
aibrahim-oai merged commit de7fb83 into codex/turn-sampling-phases Jun 11, 2026
30 checks passed
@aibrahim-oai
aibrahim-oai deleted the codex/add-comp-hash-model-info branch June 11, 2026 03:31
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 11, 2026
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.

2 participants