Skip to content

Show remote environment names in thread rows - #4425

Closed
colonelpanic8 wants to merge 2 commits into
pingdotgg:mainfrom
colonelpanic8:t3code/show-remote-host-name
Closed

colonelpanic8 wants to merge 2 commits into
pingdotgg:mainfrom
colonelpanic8:t3code/show-remote-host-name

Conversation

@colonelpanic8

@colonelpanic8 colonelpanic8 commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

What Changed

  • Show the remote host/environment name beside the existing remote icon in inbox thread rows.
  • Place the hostname before the glyph and use the same muted treatment as surrounding metadata.
  • Use a named container query so narrow rows keep the compact icon-only treatment.
  • Share the accessible remote indicator between the classic and v2 sidebars.
  • Exclude desktop-local secondary backends such as WSL from remote labeling.

Why

Remote threads were identifiable as remote, but the inbox did not reveal which host they belong to without hovering. Showing the environment name when the row has room makes remote threads easier to distinguish while preserving the compact layout at narrow widths.

UI Changes

These captures use the app’s real draggable sidebar at 440px; no production sizing defaults were changed.

Before After
Remote thread row with icon only Remote thread row with hostname before the remote icon

Verified the real remote-thread flow in both sidebar variants. Wide rows show ryzen-shine before the glyph; at a 210px sidebar the label is hidden while the remote icon and accessible name remain.

Checklist

  • vp test run apps/web/src/components/RemoteEnvironmentIndicator.test.tsx --passWithNoTests
  • vp lint apps/web/src/components/RemoteEnvironmentIndicator.tsx apps/web/src/components/RemoteEnvironmentIndicator.test.tsx apps/web/src/components/Sidebar.tsx apps/web/src/components/SidebarV2.tsx
  • vp fmt --check apps/web/src/components/RemoteEnvironmentIndicator.tsx apps/web/src/components/RemoteEnvironmentIndicator.test.tsx apps/web/src/components/Sidebar.tsx apps/web/src/components/SidebarV2.tsx apps/web/src/index.css
  • vp run --filter @t3tools/web typecheck
  • vp check
  • vp run typecheck
  • Tested the authenticated remote-environment inbox flow in both classic and v2 sidebars at wide and constrained row widths
  • Verified desktop-local secondary environments are excluded from remote labeling

Note

Show remote environment names in sidebar thread rows

  • Adds a RemoteEnvironmentIndicator component that renders an icon with an accessible aria-label and a text label span for the environment name.
  • Updates both SidebarThreadRow and SidebarV2Row to use the new component, replacing the bare icon with a labeled indicator.
  • The environment name is hidden by default and revealed via a CSS container query (@container thread-row (min-width: 13rem)) so it only appears when the row is wide enough.
  • In SidebarV2Row, the indicator is suppressed for desktop-local connections via the new shouldShowRemoteEnvironmentIndicator helper.
📊 Macroscope summarized f40fc1a. 3 files reviewed, 0 issues evaluated, 0 issues filtered, 0 comments posted

🗂️ Filtered Issues

No issues evaluated.

@coderabbitai

coderabbitai Bot commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 514372b0-7b91-4e54-8e3a-63256e43edd1

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Jul 24, 2026
Comment thread apps/web/src/components/Sidebar.tsx Resolved
Comment thread apps/web/src/components/SidebarV2.tsx Resolved
@macroscopeapp

macroscopeapp Bot commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Needs human review

1 blocking correctness issue found. An unresolved accessibility concern was flagged - the lost aria-hidden attribute on the trailing icons span may expose provider initials to screen readers. This substantive issue warrants human review before merge.

You can customize Macroscope's approvability policy. Learn more.

@github-actions github-actions Bot added size:L 100-499 changed lines (additions + deletions). and removed size:M 30-99 changed lines (additions + deletions). labels Jul 24, 2026
Comment thread apps/web/src/components/SidebarV2.tsx Resolved

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit f40fc1a. Configure here.

Comment thread apps/web/src/components/Sidebar.tsx Resolved
@t3dotgg

t3dotgg commented Jul 24, 2026

Copy link
Copy Markdown
Member

Takes up way too much space sadly, branch names are too long for this to work

@t3dotgg t3dotgg closed this Jul 24, 2026
colonelpanic8 added a commit to colonelpanic8/t3code that referenced this pull request Oct 18, 2026
…ine icon

Re-port of pingdotgg#4425 onto the merged sidebar.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
colonelpanic8 added a commit to colonelpanic8/t3code that referenced this pull request Oct 20, 2026
…ine icon

Re-port of pingdotgg#4425 onto the merged sidebar.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
colonelpanic8 added a commit to colonelpanic8/t3code that referenced this pull request Nov 3, 2026
…ine icon

Re-port of pingdotgg#4425 onto the merged sidebar.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants