Skip to content

Conversation

easong-openai
Copy link
Collaborator

Wait for newlines, then render markdown on a line by line basis. Word wrap it for the current terminal size and then spit it out line by line into the UI. Also adds a bunch of tests and fixes some UI regressions.

@openai openai deleted a comment from github-actions bot Aug 9, 2025
…t! for boolean checks with formatted messages\n- Avoid false positive by anchoring truncated phrase at line start\n- Accept >=1 'codex' header per turn (multiple answer blocks possible)
};
sess.tx_event.send(event).await.ok();
}
ResponseEvent::ReasoningSummaryPartAdded => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this because we get multiple reasoning sections is a row?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or just because we don't want to track content_part -> Thinking transition?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need a way to affirmatively break between different parts of the summary presently so that we can make sure they get newlines. I also want it so that we can just show thinking headers in the UI, similar to how we show a summarized command view - this will be important for the next part of the UI overhaul.

loop {
let ev = timeout(wait_time, codex.next_event())
// Allow a bit more time to accommodate async startup work (e.g. config IO, tool discovery)
let ev = timeout(wait_time.max(Duration::from_secs(5)), codex.next_event())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we up the default above?

@pakrym-oai
Copy link
Collaborator

core lgtm

Copy link
Collaborator

@bolinfest bolinfest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lfg

@easong-openai easong-openai merged commit 6340acd into main Aug 13, 2025
11 checks passed
@easong-openai easong-openai deleted the re-add-markdown branch August 13, 2025 00:37
@github-actions github-actions bot locked and limited conversation to collaborators Aug 13, 2025
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.

3 participants