diff --git a/.beans/claudbg-6m2c--tuifilter-token-count-filter-fields.md b/.beans/claudbg-6m2c--tuifilter-token-count-filter-fields.md new file mode 100644 index 0000000..144e5a5 --- /dev/null +++ b/.beans/claudbg-6m2c--tuifilter-token-count-filter-fields.md @@ -0,0 +1,11 @@ +--- +# claudbg-6m2c +title: 'TUI/filter: token count filter fields' +status: todo +type: feature +created_at: 2026-04-01T06:10:58Z +updated_at: 2026-04-01T06:10:58Z +parent: claudbg-2vwx +--- + +Add token-based filter fields to the filter query language so users can narrow the session list by token usage.\n\nSupported fields and operators:\n- in: — tokens in (input tokens)\n- out: — tokens out (output tokens)\n- tokens: — total tokens (in + out)\n- All three support < and > comparisons (e.g. tokens:>50000, in:<1000)\n\nRequires storing token counts per session in the DB and exposing them via the Filter::matches() path. diff --git a/.beans/claudbg-8bs3--tui-color-highlight-selected-agent-row-instead-of.md b/.beans/claudbg-8bs3--tui-color-highlight-selected-agent-row-instead-of.md new file mode 100644 index 0000000..6f1f489 --- /dev/null +++ b/.beans/claudbg-8bs3--tui-color-highlight-selected-agent-row-instead-of.md @@ -0,0 +1,10 @@ +--- +# claudbg-8bs3 +title: 'TUI: color-highlight selected agent row instead of ''>'' cursor' +status: todo +type: feature +created_at: 2026-04-01T06:11:10Z +updated_at: 2026-04-01T06:11:10Z +--- + +In the sub-agents panel (transcript screen), the currently selected/viewed agent is shown with a '>' prefix and yellow text. Instead, use row-level color highlighting (e.g. reversed or bold style on the full row) so the cursor character is not needed — matching how ratatui Table highlights work.\n\nThe rendering is in the subagent_lines iterator in src/tui/screens/transcript.rs. Replace the '> {short_id} {agent_type}' format with ' {short_id} {agent_type}' and apply a highlight style (e.g. Modifier::REVERSED) to the selected row span instead. diff --git a/.beans/claudbg-e49f--tui-homeend-keys-jump-to-topbottom-of-transcript.md b/.beans/claudbg-e49f--tui-homeend-keys-jump-to-topbottom-of-transcript.md new file mode 100644 index 0000000..c0c7353 --- /dev/null +++ b/.beans/claudbg-e49f--tui-homeend-keys-jump-to-topbottom-of-transcript.md @@ -0,0 +1,10 @@ +--- +# claudbg-e49f +title: 'TUI: Home/End keys jump to top/bottom of transcript' +status: todo +type: feature +created_at: 2026-04-01T06:11:02Z +updated_at: 2026-04-01T06:11:02Z +--- + +Add Home and End key bindings in the transcript screen to complement the existing gg/G vim-style bindings:\n- Home → jump to top of transcript (same as gg)\n- End → jump to bottom of transcript (same as G)\n\nHandle in handle_transcript_event() in src/tui/screens/transcript.rs alongside the existing Char('g')/Char('G') cases. diff --git a/.beans/claudbg-j9az--tui-model-column-always-blank-in-sessions-list.md b/.beans/claudbg-j9az--tui-model-column-always-blank-in-sessions-list.md new file mode 100644 index 0000000..f88cad2 --- /dev/null +++ b/.beans/claudbg-j9az--tui-model-column-always-blank-in-sessions-list.md @@ -0,0 +1,10 @@ +--- +# claudbg-j9az +title: 'TUI: model column always blank in sessions list' +status: todo +type: bug +created_at: 2026-04-01T06:10:52Z +updated_at: 2026-04-01T06:10:52Z +--- + +The Model column in the TUI session-list screen is always empty. Root cause: when building SessionListItem in src/tui/run.rs the model field is set to String::new(), and the DB enrichment query (SELECT session_id, project_path, message_count FROM sessions) does not fetch the model column. The model field does exist in the sessions DB table. Fix: add model to the enrichment SELECT and populate item.model during the enrichment loop. diff --git a/.beans/claudbg-vqhj--tui-key-focuses-filtersearch-bar.md b/.beans/claudbg-vqhj--tui-key-focuses-filtersearch-bar.md new file mode 100644 index 0000000..caeca6e --- /dev/null +++ b/.beans/claudbg-vqhj--tui-key-focuses-filtersearch-bar.md @@ -0,0 +1,10 @@ +--- +# claudbg-vqhj +title: 'TUI: ''/'' key focuses filter/search bar' +status: todo +type: feature +created_at: 2026-04-01T06:10:47Z +updated_at: 2026-04-01T06:10:47Z +--- + +Pressing '/' in the session list or transcript screen should immediately focus the filter/search input, matching the less(1) convention. Currently 't' and Tab are the only bindings that open the filter. The '/' binding should work on both the session-list screen (opens the filter bar) and the transcript screen (opens the search bar). diff --git a/TODO.md b/TODO.md index 4640904..5acbbcd 100644 --- a/TODO.md +++ b/TODO.md @@ -1 +1,7 @@ # TODO + +* TUI: `/` should move the selected pane to the "search" bar (similar to less searching) — claudbg-vqhj +* TUI: Model is not showing up in the sessions list... — claudbg-j9az +* TUI: Add the ability to filter by tokens in and tokens out (`in:`, `out:`, `tokens:`, supports < and > too) — claudbg-6m2c +* TUI: In addition to G/gg for navigating to the top/bottom of the transcript, support Home (top) and End (bottom). — claudbg-e49f +* TUI: For the currently selected agent, color code the selected agent instead of the `>` cursor. — claudbg-8bs3