diff --git a/codex-rs/tui/src/markdown_render.rs b/codex-rs/tui/src/markdown_render.rs index 316d9ba6f1..ba8c047306 100644 --- a/codex-rs/tui/src/markdown_render.rs +++ b/codex-rs/tui/src/markdown_render.rs @@ -1161,7 +1161,11 @@ where } else { total_cell_width as f64 / total_cells as f64 }; - let kind = if avg_words_per_cell >= 4.0 || avg_cell_width >= 28.0 { + let kind = if body_token_width >= 20 && avg_words_per_cell <= 2.0 { + // URL-like/token-heavy columns should resist collapse even if their + // average cell width is high. + TableColumnKind::Structured + } else if avg_words_per_cell >= 4.0 || avg_cell_width >= 28.0 { TableColumnKind::Narrative } else { TableColumnKind::Structured