Skip to content

Remove Plan-mode gate from idle turn injection#25577

Merged
jif-oai merged 1 commit into
mainfrom
jif/remove-plan-specific
Jun 1, 2026
Merged

Remove Plan-mode gate from idle turn injection#25577
jif-oai merged 1 commit into
mainfrom
jif/remove-plan-specific

Conversation

@jif-oai
Copy link
Copy Markdown
Collaborator

@jif-oai jif-oai commented Jun 1, 2026

Why

try_start_turn_if_idle is the core helper for starting injected input only when the session is actually idle. It should stay focused on generic turn-lifecycle safety. The previous ModeKind::Plan guard mixed caller policy into that helper: Plan mode may choose not to auto-start some extension work, but that decision belongs at the extension or caller boundary rather than in the session injection primitive.

What changed

  • Removed the ModeKind::Plan early return from Session::try_start_turn_if_idle.
  • Removed the now-unused ModeKind import from core/src/session/inject.rs.

Testing

Not run locally.

@jif-oai jif-oai requested a review from a team as a code owner June 1, 2026 08:44
@jif-oai jif-oai changed the title feat: remove plan specific Remove Plan-mode gate from idle turn injection Jun 1, 2026
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: 3ca0255e26

ℹ️ 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/core/src/session/inject.rs
@jif-oai jif-oai merged commit 48c16b8 into main Jun 1, 2026
31 checks passed
@jif-oai jif-oai deleted the jif/remove-plan-specific branch June 1, 2026 09:06
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 1, 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