Skip to content

fix(tui): pad markdown table cells - #41937

Merged
kitlangton merged 1 commit into
v2from
table-cell-padding
Aug 12, 2026
Merged

fix(tui): pad markdown table cells#41937
kitlangton merged 1 commit into
v2from
table-cell-padding

Conversation

@kitlangton

Copy link
Copy Markdown
Contributor

What

Add one column of horizontal padding inside markdown table cells in the V2 TUI. Tables remain vertically compact, but borders no longer touch their content.

Before / After

Before: Grid tables used OpenTUI's default zero horizontal cell padding, so headings and body text sat directly against cell borders.

After: Assistant messages and compaction summaries pass cellPaddingX: 1, leaving one terminal column on each side of cell content without adding blank rows.

How

  • Update both session-route markdown renderers in packages/tui/src/routes/session/index.tsx.
  • Leave mini and mono table rendering unchanged so those intentionally compact surfaces retain their current layout.

Testing

  • bun typecheck from packages/tui
  • Repository pre-push typecheck, 32 packages successful
  • bun run lint packages/tui/src/routes/session/index.tsx, 0 errors (existing warnings remain)
  • OpenCode Drive scripted TUI capture using the simulated model and the production markdown renderer

Demo

The simulated response exercises a grid table in the modified V2 TUI:

Markdown table with horizontal cell padding

@kitlangton
kitlangton enabled auto-merge (squash) August 12, 2026 03:20
@kitlangton
kitlangton merged commit a8fc664 into v2 Aug 12, 2026
9 of 10 checks passed
@kitlangton
kitlangton deleted the table-cell-padding branch August 12, 2026 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant