Skip to content

Speed up subagent startup#12935

Merged
daveaitel-openai merged 2 commits intomainfrom
fix/subagent-startup-fastpath
Feb 28, 2026
Merged

Speed up subagent startup#12935
daveaitel-openai merged 2 commits intomainfrom
fix/subagent-startup-fastpath

Conversation

@daveaitel-openai
Copy link
Copy Markdown
Contributor

Summary

  • skip online model refresh for subagent sessions
  • avoid rollout flushes during subagent startup
  • keep /models refresh for non-subagent sessions

Testing

  • cargo test -p codex-core --test all suite::models_etag_responses::refresh_models_on_models_etag_mismatch_and_avoid_duplicate_models_fetch
  • cargo test -p codex-core --test all suite::remote_models::remote_models_long_model_slug_is_sent_with_high_reasoning
  • cargo test -p codex-core --test all suite::model_switching::model_switch_to_smaller_model_updates_token_context_window
  • cargo test -p codex-core --test all suite::compact::pre_sampling_compact_runs_on_switch_to_smaller_context_model
  • cargo test -p codex-core --test all suite::compact::pre_sampling_compact_runs_after_resume_and_switch_to_smaller_model
  • cargo test -p codex-core --test all suite::personality::remote_model_friendly_personality_instructions_with_feature
daveaitel-openai and others added 2 commits February 26, 2026 11:42
Skip rollout flushes and online model refresh for subagents; avoid list_models when model pinned.

Co-authored-by: Codex <noreply@openai.com>
Only skip list_models when running subagent sessions.

Co-authored-by: Codex <noreply@openai.com>
@daveaitel-openai daveaitel-openai enabled auto-merge (squash) February 26, 2026 20:19
@jif-oai
Copy link
Copy Markdown
Collaborator

jif-oai commented Feb 26, 2026

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. 🚀

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

@daveaitel-openai daveaitel-openai merged commit eec3b1e into main Feb 28, 2026
53 of 55 checks passed
@daveaitel-openai daveaitel-openai deleted the fix/subagent-startup-fastpath branch February 28, 2026 13:54
@github-actions github-actions bot locked and limited conversation to collaborators Feb 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants