Skip to content

Accept agent follow-ups through native turn input delivery - #58829

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/92d49465f97bb366babbf1b1bc18a1e8a6c6ed1c
Nov 2, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/92d49465f97bb366babbf1b1bc18a1e8a6c6ed1c

Conversation

@copyberry

@copyberry copyberry Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Accept agent follow-ups through native turn input delivery

Why

start_or_steer_turn rejected agent messages, preventing callers from submitting follow-up work through the turn input API.

What changed

Route TurnInput::InterAgentCommunication through native agent message delivery and return TurnInputSubmission::Accepted, without implying an immediate turn ID. These submissions request work regardless of trigger_turn, retain the recipient's settings, and forward turn-start options.

Wrap plaintext messages with agent context while preserving encrypted content. Reject submissions to idle recipients when the host is draining.

Testing

Add scenario tests and snapshots covering queued-message ordering, encrypted follow-ups, preemption at reasoning boundaries, and follow-ups arriving before or after a final answer. Extend drain-gate coverage to agent submissions with parent-turn lineage.

## Why

`start_or_steer_turn` rejected agent messages, preventing callers from submitting follow-up work through the turn input API.

## What changed

Route `TurnInput::InterAgentCommunication` through native agent message delivery and return `TurnInputSubmission::Accepted`, without implying an immediate turn ID. These submissions request work regardless of `trigger_turn`, retain the recipient's settings, and forward turn-start options.

Wrap plaintext messages with agent context while preserving encrypted content. Reject submissions to idle recipients when the host is draining.

## Testing

Add scenario tests and snapshots covering queued-message ordering, encrypted follow-ups, preemption at reasoning boundaries, and follow-ups arriving before or after a final answer. Extend drain-gate coverage to agent submissions with parent-turn lineage.

GitOrigin-RevId: 92d49465f97bb366babbf1b1bc18a1e8a6c6ed1c
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/92d49465f97bb366babbf1b1bc18a1e8a6c6ed1c branch from b3e2aed to 05c08d7 Compare November 2, 2026 07:27
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-11-02T07:28:00.803086Z b3e2aed PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot merged commit 05c08d7 into main Nov 2, 2026
31 of 63 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/92d49465f97bb366babbf1b1bc18a1e8a6c6ed1c branch November 2, 2026 07:28
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 2, 2026

This branch was previously deployed

1 inactive deployment
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.