Skip to content

feat(app): show server name on session tabs - #51345

Closed
schjonhaug wants to merge 1 commit into
anomalyco:devfrom
schjonhaug:server-tab-label
Closed

schjonhaug wants to merge 1 commit into
anomalyco:devfrom
schjonhaug:server-tab-label

Conversation

@schjonhaug

Copy link
Copy Markdown

Issue for this PR

Closes #51344

Opened as a draft so the design can be settled in the issue first.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds a small label with the server name to session tabs and new-session tabs. The name comes from the existing serverName(), so it uses the display name when one is set. The label only shows when more than one server is configured, and it is hidden while a tab title is being renamed.

How did you verify your code works?

  • Ran the web app against two local servers and against my real setup (local server plus a Mac mini on the LAN). Tabs for the same project on each server get different labels.
  • Checked the desktop tab strip and the mobile tab list.
  • bun run check and the titlebar tests in packages/app pass.

Screenshots / recordings

Before After

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

@rspadim

rspadim commented Oct 22, 2026

Copy link
Copy Markdown

I liked your solution — it's much better than mine.

I opened #58155 before I found this one: it grouped sessions by server (Home and the vertical tab strip) instead of labelling each tab. Closing it so the discussion stays in one place. Your approach is much smaller and solves the same confusion, and labels work in the horizontal strip too.

If grouping is ever wanted on top of this, the branch stays on my fork.

@github-actions

Copy link
Copy Markdown
Contributor

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Show which server a session tab belongs to

2 participants