Repository navigation
fix(cli): flush the login authorization URL synchronously under non-TTY stdout (#1007) - #1029
Merged
Merged
Conversation
…TY stdout (#1007) console.log can buffer behind a pipe, hiding the URL for the entire polling window. The pre-poll block (URL + instructions + flow id) now goes out as one atomic synchronous fd-1 write with partial-write looping, and a pipe-based regression proves the URL is readable while the child is still authenticating.
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughAccount login now writes Codex and OAuth instructions as complete synchronous stdout blocks before polling. The regression test runs a pending login through a local mock API and verifies that piped output contains the authorization URL and flow identifier. ChangesAccount login output
Estimated code review effort: 3 (Moderate) | ~20 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
3 tasks done
agentHits
pushed a commit
to agentHits/opencodex
that referenced
this pull request
Sep 17, 2026
…url-flush fix(cli): flush the login authorization URL synchronously under non-TTY stdout (lidge-jun#1007)
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.
Bug-stack campaign lane (
devlog/_plan/260805_bug_stack_campaign/080). Fixes #1007.console.logcan buffer behind a pipe, hiding the authorization URL for the entire polling window. The pre-poll block (URL + instructions + flow id) now goes out as one atomic synchronous fd-1 write with partial-write looping and zero-progress failure.--jsonmode untouched; TTY ordering preserved.bun run typecheck0 errors;bun run privacy:scanpass; tests/cli-account 64/64; full suite on ssh lidge 8314/0 (campaign tree).Summary by CodeRabbit
Bug Fixes
Tests