Skip to content

enhance(cli, term): Repeat table header as footer in conversation ls#530

Merged
JeanMertz merged 2 commits into
mainfrom
cerebras-provider
Apr 10, 2026
Merged

enhance(cli, term): Repeat table header as footer in conversation ls#530
JeanMertz merged 2 commits into
mainfrom
cerebras-provider

Conversation

@JeanMertz

Copy link
Copy Markdown
Collaborator

When jp conversation ls lists more than 20 conversations, the table now repeats the column header row at the bottom of the output. This keeps column names visible when the top of the table has scrolled off screen.

The footer is rendered in jp_term by splicing the header content line and its separator back in just before the bottom border of the already-rendered table. Tables with fewer than 6 lines (i.e. fewer than 2 data rows) skip the footer entirely to avoid redundancy.

When `jp conversation ls` lists more than 20 conversations, the table
now repeats the column header row at the bottom of the output. This
keeps column names visible when the top of the table has scrolled off
screen.

The footer is rendered in `jp_term` by splicing the header content line
and its separator back in just before the bottom border of the
already-rendered table. Tables with fewer than 6 lines (i.e. fewer than
2 data rows) skip the footer entirely to avoid redundancy.

Signed-off-by: Jean Mertz <git@jeanmertz.com>
…tion ls`

Signed-off-by: Jean Mertz <git@jeanmertz.com>
@JeanMertz
JeanMertz merged commit 3dbf117 into main Apr 10, 2026
13 checks passed
@JeanMertz
JeanMertz deleted the cerebras-provider branch April 10, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant