Skip to content

Use inject_if_running for active goal steering#24924

Merged
jif-oai merged 5 commits into
mainfrom
jif/use-inject-if-running
May 29, 2026
Merged

Use inject_if_running for active goal steering#24924
jif-oai merged 5 commits into
mainfrom
jif/use-inject-if-running

Conversation

@jif-oai
Copy link
Copy Markdown
Collaborator

@jif-oai jif-oai commented May 28, 2026

Why

This PR is stacked on #24918, which moves goal steering onto source-labeled internal model context fragments. Active-turn goal steering should use the same running-turn injection path as other runtime steering, so those fragments enter the pending input queue as ResponseItems through the existing Session::inject_if_running behavior instead of through a goal-specific conversion wrapper.

What Changed

  • Exposes a narrow CodexThread::inject_if_running bridge for callers that only hold a thread handle.
  • Changes ext/goal active-turn steering to pass ResponseItems directly.
  • Builds goal steering prompts as contextual internal model context ResponseItems before injecting them into the running turn.

Testing

Not run locally; PR metadata update only.

@jif-oai jif-oai requested a review from a team as a code owner May 28, 2026 15:00
@jif-oai jif-oai changed the title feat: uses inject in running Use inject_if_running for active goal steering May 28, 2026
@jif-oai
Copy link
Copy Markdown
Collaborator Author

jif-oai commented May 28, 2026

@codex review

@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".

Base automatically changed from jif/use-fragment-for-goals to main May 29, 2026 08:28
…ning

# Conflicts:
#	codex-rs/ext/goal/src/steering.rs
@jif-oai
Copy link
Copy Markdown
Collaborator Author

jif-oai commented May 29, 2026

@codex review

Copy link
Copy Markdown
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.

Reviewed commit: 21e55c95cb

ℹ️ 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 thread codex-rs/ext/goal/src/runtime.rs
@jif-oai jif-oai merged commit 8f6a945 into main May 29, 2026
31 checks passed
@jif-oai jif-oai deleted the jif/use-inject-if-running branch May 29, 2026 09:24
@github-actions github-actions Bot locked and limited conversation to collaborators May 29, 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.

1 participant