Skip to content

feat: TUI UX improvements#7666

Closed
alexhancock wants to merge 1 commit intomainfrom
alexhancock/tui-goodness
Closed

feat: TUI UX improvements#7666
alexhancock wants to merge 1 commit intomainfrom
alexhancock/tui-goodness

Conversation

@alexhancock
Copy link
Copy Markdown
Collaborator

@alexhancock alexhancock commented Mar 4, 2026

Various improvements to the core UX of using the new TUI

  • Consolidates core into a single top level file called tui.tsx and implements other features in a single .ts file each (tool calls, markdown support)
  • Rich tool calls (shows args and results - tab to open completely)
  • Markdown rendering in text content
  • Scrolling with arrows

Demo

Screenshot 2026-03-04 at 5 38 23 PM

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 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);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge 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 👍 / 👎.

@alexhancock
Copy link
Copy Markdown
Collaborator Author

this merged as part of #7683

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants