Repository navigation
fix(id-cli): world join pump no longer races the refusal frame on stdin EOF - #10998
Conversation
…in EOF (#9274) With stdin already at EOF (scripted one-shot join), pump broke on the EOF arm and aborted the reader task before the server's first frame could print, so a join refusal ("join denied") never reached stdout. Track whether a frame has printed; on EOF before the first frame, disable the stdin arm and let the reader arm end the pump when the stream closes — a refusal closes the stream right after its error frame.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 15 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
What
id world join's pump raced its own reader task: when stdin was already at EOF (a scripted join with stdin closed — the one-shot probe shape), the pump broke on the EOF arm and aborted the reader before the server's first frame could print. A join refusal ("join denied") therefore never reached stdout, which is exactly what #9274's failing test asserts.Fix in
pkgs/id/crates/id-cli/src/commands/world.rs(pump):Verification
40094420c3):cargo test -p id --features web,ssh --test cli_integration serve_tests::test_world_module_shared_over_iroh_and_web_presentations -- --exactfailed atcli_integration.rs:2800(stdout lacked "join denied").cargo test -p id-cliand the fullserve_tests::module incli_integration— see the task note on serve_tests web/iroh world test: forged join not refused with "join denied" (pre-existing, hidden by suite-B compile break) #9274 for results.Fixes #9274
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.