show full shell session labels instead of truncating to 140px#497
Merged
Conversation
The Shell page truncated session names with an ellipsis (max-w-[140px]), which hid the agent id portion of labels like 'Claude Code TUI agent-ec11f870'. Drop the width cap and switch the tab strip from horizontal scroll to flex-wrap so longer labels can flow onto multiple lines.
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the Shell page session tab strip to display full session labels (including agent IDs) by removing the fixed truncation width and allowing the tab list to wrap onto multiple lines instead of horizontally scrolling.
Changes:
- Switch session tab container from horizontal scroll (
overflow-x-auto) to wrapping layout (flex-wrap). - Remove
truncate max-w-[140px]from session label rendering so full labels are visible.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Copilot flagged that with truncation removed, a very long unbroken label (e.g. a long cwd basename or agent id) could push the flex tab wider than the viewport. flex-wrap on the parent strip only wraps between tabs, not inside one. Add min-w-0 break-all on the label span so the label itself wraps and the tab stays within the viewport.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Shell page truncated session names with an ellipsis (
truncate max-w-[140px]), which hid the agent id portion of labels likeClaude Code TUI agent-ec11f870— so the user couldn't tell sessions apart at a glance. Drop the width cap and switch the tab strip from horizontal scroll (overflow-x-auto) toflex-wrapso longer labels can flow onto multiple lines.Test plan
<provider name> <agent id>)