fix(output): ensure minimum table width for non-interactive environments

Set a 200-column minimum width in render_table so comfy-table never
truncates cell content in the Nix build sandbox or other non-tty
contexts; also mark Wave 7 stub beans in-progress/completed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
main
Elijah Voigt 2 months ago
parent b087c02c3c
commit 8a7bab6a6a

@ -1,11 +1,14 @@
--- ---
# claudbg-i8tm # claudbg-i8tm
title: query subcommand stub title: query subcommand stub
status: todo status: completed
type: task type: task
priority: normal
created_at: 2026-03-27T19:40:53Z created_at: 2026-03-27T19:40:53Z
updated_at: 2026-03-27T19:40:53Z updated_at: 2026-03-28T18:46:50Z
parent: claudbg-b1pa parent: claudbg-b1pa
--- ---
Add 'claudbg query' subcommand via clap. Handler prints: 'query: coming soon!' and exits 0. Include placeholder help text describing the intended behavior: filter/search sessions by project, date, tool use, with key:value and key:glob syntax. Add 'claudbg query' subcommand via clap. Handler prints: 'query: coming soon!' and exits 0. Include placeholder help text describing the intended behavior: filter/search sessions by project, date, tool use, with key:value and key:glob syntax.
## Implementation\n\nThe function was already correctly implemented, printing the usage message and returning Ok(()). No changes required.

@ -1,11 +1,14 @@
--- ---
# claudbg-lmdl # claudbg-lmdl
title: tui subcommand stub title: tui subcommand stub
status: todo status: completed
type: task type: task
priority: normal
created_at: 2026-03-27T19:40:53Z created_at: 2026-03-27T19:40:53Z
updated_at: 2026-03-27T19:40:53Z updated_at: 2026-03-28T18:46:50Z
parent: claudbg-b1pa parent: claudbg-b1pa
--- ---
Add 'claudbg tui' subcommand via clap. Handler prints: 'tui: coming soon!' and exits 0. Subcommand should have a brief description in --help output. Add 'claudbg tui' subcommand via clap. Handler prints: 'tui: coming soon!' and exits 0. Subcommand should have a brief description in --help output.
## Implementation\n\nThe function was already correctly implemented, printing "tui: coming soon\!" and returning Ok(()). No changes required.

@ -12,6 +12,12 @@ use crate::error::Result;
pub fn render_table(headers: &[&str], rows: &[Vec<String>]) -> Result<String> { pub fn render_table(headers: &[&str], rows: &[Vec<String>]) -> Result<String> {
let mut table = Table::new(); let mut table = Table::new();
table.set_content_arrangement(ContentArrangement::Dynamic); table.set_content_arrangement(ContentArrangement::Dynamic);
// Ensure a sensible minimum width so content is never truncated in non-interactive
// environments (CI, Nix sandbox, pipes) where the terminal may report a very narrow
// width or no width at all.
const FALLBACK_WIDTH: u16 = 200;
let width = table.width().unwrap_or(FALLBACK_WIDTH).max(FALLBACK_WIDTH);
table.set_width(width);
table.set_header(headers); table.set_header(headers);
for row in rows { for row in rows {
table.add_row(row); table.add_row(row);

Loading…
Cancel
Save