Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bc7acb5a3c
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| import { marked } from "marked"; | ||
| import { markedTerminal } from "marked-terminal"; | ||
|
|
||
| marked.use(markedTerminal({ width: 76, reflowText: true, tab: 2 }) as any); |
There was a problem hiding this comment.
Use runtime terminal width for markdown wrapping
markedTerminal is configured with a fixed width: 76, but markdown lines are rendered later with additional left padding in buildTurnBodyLines, so the effective content width is smaller than 76 on normal terminals (including 80-column shells). This causes wrapped markdown to overflow/reflow incorrectly and breaks readability/scrolling for typical responses; the renderer width should be derived from the current available body width instead of a constant.
Useful? React with 👍 / 👎.
|
this merged as part of #7683 |
Various improvements to the core UX of using the new TUI
tui.tsxand implements other features in a single.tsfile each (tool calls, markdown support)Demo