Skip to content

fix: keep SSH tabs visible above terminal - #35

Merged
zhravan merged 9 commits into
mainfrom
fix/ssh-tab-bar-layout
Sep 19, 2026
Merged

zhravan merged 9 commits into
mainfrom
fix/ssh-tab-bar-layout

Conversation

@zhravan

@zhravan zhravan commented Sep 19, 2026

Copy link
Copy Markdown
Owner

Fix

The SSH terminal layout could render the tab strip as effectively invisible.

Root cause

The tab renderer measured styled Lip Gloss output with utf8.RuneCountInString. ANSI styling sequences were counted as visible characters, so the tab strip could be truncated in the middle of an ANSI escape sequence.

Changes

  • Measure rendered tabs with lipgloss.Width
  • Never truncate styled ANSI output by slicing raw runes
  • Keep long host names compact
  • Add a visible full-width tab strip with a bottom separator
  • Add a fallback Hosts tab if the tab collection is unexpectedly empty
  • Add a regression test for visible tab labels and one-line/fixed-width rendering
  • Bump version to 0.1.22

This specifically addresses the SSH screenshot where the terminal starts immediately without the Vecna tab strip.

@coderabbitai

coderabbitai Bot commented Sep 19, 2026 •

Copy link
Copy Markdown

Review Change StackReview Change Stack

Warning

Review limit reached

Next included review available in 23 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 12b2035f-f48a-4f4d-8719-b158af3dccb5

📥 Commits

Reviewing files that changed from the base of the PR and between a72241a and bfc4ae1.

📒 Files selected for processing (4)
  • internal/tui/styles.go
  • internal/tui/ux_test.go
  • internal/tui/views.go
  • version.txt
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@zhravan
zhravan merged commit 8fcb519 into main Sep 19, 2026
2 checks passed
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