Skip to content

Clamp session headers to narrow terminal widths - #34775

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/7cf0ea48aa95a6f1ddd1a9dbb7c7fb70bdbcb5a3
Jul 22, 2026
Merged

Clamp session headers to narrow terminal widths#34775
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/7cf0ea48aa95a6f1ddd1a9dbb7c7fb70bdbcb5a3

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 22, 2026

Copy link
Copy Markdown

Clamp session headers to narrow terminal widths

Why

Session header rows can exceed the available inner width when the terminal is
narrow, causing the bordered header to render wider than its requested width.

What changed

Truncate each session header row to the available inner width and append an
ellipsis when content overflows.

Testing

Add a snapshot test for a 44-column session header and assert that every
rendered line matches the requested width.

## Why

Session header rows can exceed the available inner width when the terminal is
narrow, causing the bordered header to render wider than its requested width.

## What changed

Truncate each session header row to the available inner width and append an
ellipsis when content overflows.

## Testing

Add a snapshot test for a 44-column session header and assert that every
rendered line matches the requested width.

GitOrigin-RevId: 7cf0ea48aa95a6f1ddd1a9dbb7c7fb70bdbcb5a3
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/7cf0ea48aa95a6f1ddd1a9dbb7c7fb70bdbcb5a3 branch from 2959cc5 to 730ec92 Compare July 22, 2026 15:39
@copyberry
copyberry Bot merged commit 730ec92 into main Jul 22, 2026
19 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/7cf0ea48aa95a6f1ddd1a9dbb7c7fb70bdbcb5a3 branch July 22, 2026 15:40
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant