diff --git a/.beans/claudbg-i8tm--query-subcommand-stub.md b/.beans/claudbg-i8tm--query-subcommand-stub.md index 8eab531..3e39f19 100644 --- a/.beans/claudbg-i8tm--query-subcommand-stub.md +++ b/.beans/claudbg-i8tm--query-subcommand-stub.md @@ -1,11 +1,14 @@ --- # claudbg-i8tm title: query subcommand stub -status: todo +status: completed type: task +priority: normal created_at: 2026-03-27T19:40:53Z -updated_at: 2026-03-27T19:40:53Z +updated_at: 2026-03-28T18:46:50Z 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. + +## Implementation\n\nThe function was already correctly implemented, printing the usage message and returning Ok(()). No changes required. diff --git a/.beans/claudbg-lmdl--tui-subcommand-stub.md b/.beans/claudbg-lmdl--tui-subcommand-stub.md index 9627e12..e6b2dc1 100644 --- a/.beans/claudbg-lmdl--tui-subcommand-stub.md +++ b/.beans/claudbg-lmdl--tui-subcommand-stub.md @@ -1,11 +1,14 @@ --- # claudbg-lmdl title: tui subcommand stub -status: todo +status: completed type: task +priority: normal created_at: 2026-03-27T19:40:53Z -updated_at: 2026-03-27T19:40:53Z +updated_at: 2026-03-28T18:46:50Z 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. + +## Implementation\n\nThe function was already correctly implemented, printing "tui: coming soon\!" and returning Ok(()). No changes required. diff --git a/src/output/table.rs b/src/output/table.rs index 395c1a6..a47358b 100644 --- a/src/output/table.rs +++ b/src/output/table.rs @@ -12,6 +12,12 @@ use crate::error::Result; pub fn render_table(headers: &[&str], rows: &[Vec]) -> Result { let mut table = Table::new(); 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); for row in rows { table.add_row(row);