Repository navigation
Conversation
Contributor
|
All contributors have signed the CLA ✍️ ✅ |
Contributor
Author
|
I have read the CLA Document and I hereby sign the CLA |
- add `tui.stream_reasoning_live` config plumbing and docs - render live reasoning via transient history cell with throttled redraws - ensure final buffered reasoning matches streamed output - cover new behavior with focused chatwidget tests
jmalmo
force-pushed
the
feat/stream-thinking
branch
from
October 31, 2025 00:25
fcabc0e to
b1881bc
Compare
jmalmo
marked this pull request as ready for review
October 31, 2025 00:25
Contributor
|
Thanks for the contribution. We've updated our contribution guidelines to clarify that we're currently accepting contributions for bugs and security fixes, but we're not generally accepting new features at this time. We need to make sure that all new features compose well with both existing and upcoming features and fit into our roadmap. If you would like to propose a new feature, please file or upvote an enhancement request in the issue tracker. We will generally prioritize new features based on community feedback. |
youta7
added a commit
to youta7/ta-codex
that referenced
this pull request
Nov 10, 2025
swordfish444
pushed a commit
to swordfish444/codex
that referenced
this pull request
Feb 26, 2026
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.
✨ TUI: Stream “thinking / reasoning” live in the CLI (opt-in via
tui.stream_reasoning_live)Relates to: #5339 (live streaming of “thinking” in CLI, like the VS Code extension)
What
This PR adds live, incremental streaming of the agent’s reasoning (“thinking”) to the Codex CLI TUI, so users see progress as each chunk arrives instead of waiting for the entire reasoning phase to complete.
**bold**subheading extracted from the block).hide_agent_reasoning = truestill hides reasoning entirely; this feature only affects the TUI view.Default: Off. Users can opt in with:
stream_reasoning_live = truein ~/.codex/config.tomlWhy
How (design & implementation)
User-facing behavior
Key changes (high-level)
Config.tui.stream_reasoning_live: bool(defaultfalse).chatwidget):AgentReasoningDeltaby appending to the active reasoning cell and scheduling a redraw (with throttling).history_cell):push_content,is_empty) so we don’t introduce a bespoke live cell; formatting stays identical to the summary renderer.docs/config.md— addtui.stream_reasoning_livewith a short description and example.hide_agent_reasoning.This approach is deliberately minimal-surface and builds on the repo’s existing TUI streaming and reasoning work (see #5540, #5857).
Screens / GIFs
Backward compatibility & defaults
stream_reasoning_live = true) keeps today’s default (buffered) behavior for existing users.hide_agent_reasoning(and other reasoning visibility controls mentioned across the tracker).Tests
live_reasoning_streams_incrementally_when_enabled— verifies live growth and end-of-turn finalize equals last live state.live_reasoning_respects_hide_flag—hide_agent_reasoning = true→ no streaming.In
~/.codex/config.toml:stream_reasoning_live = trueRun the TUI against a task that induces multiple reasoning passes, using gpt-5-codex high.
Observe incremental lines (dim + italic) and header updates.
Flip the flag off and verify legacy (buffered) behavior.