Repository navigation
ai: bound prompt IO for Codex and Copilot CLI providers - #750
Draft
OllieinCanada wants to merge 1 commit into
Draft
OllieinCanada wants to merge 1 commit into
OllieinCanada wants to merge 1 commit into
Conversation
Writing the whole prompt before draining output can deadlock when a CLI fills an output pipe first. A child that does not read stdin also keeps prompt transfer outside the existing call timeout. Share Claude's collector to transfer input and drain output concurrently, with the existing deadline around the whole operation. Preserve nonzero exit diagnostics when stdin closes early, and reject successful exits whose prompt transfer failed. Keep Claude's typed error classification. Add offline process fixtures for both providers covering stalled stdin, startup stderr, early failure diagnostics and incomplete prompt delivery. Fixes: 6fb16bc ("feat: add codex-cli provider for OpenAI Codex subscription auth") Fixes: 10a28b5 ("ai/copilot-cli: pipe prompt via stdin to avoid E2BIG on large reviews") Signed-off-by: Ollie Slapinski <oliverslapinski@hotmail.com>
OllieinCanada
marked this pull request as draft
October 26, 2026 03:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Codex and Copilot wrote stdin before draining output and starting their timeout. Transfer input and collect output concurrently under the existing deadline, preserving diagnostics and Claude behavior.
Offline regressions fail before the repair and pass afterward. Rust 1.90.0: make check-pr passed; 1,156 tests passed, two ignored; formatting and three Clippy profiles passed. The inherited RUST_LOG override was unset. No schema changes or historical data rewrites.
DRAFT: required local Sashiko model self-review is incomplete because provider authentication failed. No clean local review is claimed. Keep as draft until the required review completes and findings are addressed.
Base: d7c69ae
Head: 4d72afb