Skip to content

Skip history metadata scan for subagents#12918

Merged
daveaitel-openai merged 1 commit intomainfrom
fix/subagent-history-metadata
Feb 26, 2026
Merged

Skip history metadata scan for subagents#12918
daveaitel-openai merged 1 commit intomainfrom
fix/subagent-history-metadata

Conversation

@daveaitel-openai
Copy link
Contributor

@daveaitel-openai daveaitel-openai commented Feb 26, 2026

Summary

  • Skip history_metadata scanning when spawning subagents to avoid expensive per-spawn history scans.
  • Keeps behavior unchanged for normal sessions.

Testing

  • cd codex-rs && cargo test -p codex-core
  • Failing in this environment (pre-existing and I don't think something I did?):
  • suite::cli_stream::responses_mode_stream_cli (SIGKILL + OTEL export error to http://localhost:14318/v1/logs)
  • suite::grep_files::grep_files_tool_collects_matches (unsupported call: grep_files)
  • suite::grep_files::grep_files_tool_reports_empty_results (unsupported call: grep_files)

Co-authored-by: Codex <noreply@openai.com>
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.

lgtm
We should in the end drop this file or limit its size...

@daveaitel-openai daveaitel-openai enabled auto-merge (squash) February 26, 2026 16:02
@daveaitel-openai daveaitel-openai merged commit 79cbca3 into main Feb 26, 2026
53 of 55 checks passed
@daveaitel-openai daveaitel-openai deleted the fix/subagent-history-metadata branch February 26, 2026 16:21
@github-actions github-actions bot locked and limited conversation to collaborators Feb 26, 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