Remote Control: sessions from different environments on the same machine are visually indistinguishable (generic auto-titles + hostname-only breadcrumb)

Open 💬 0 comments Opened Jun 10, 2026 by pearlzzi98

Problem Statement

I run multiple claude remote-control servers on one always-on VM (hostname devbox), one per project directory:

tmux session
├─ ~/projects/kakao_chatbot    → claude remote-control --name kakao --spawn=worktree
└─ ~/projects/morning-briefing → claude remote-control --name briefing --spawn=worktree

The environment picker on claude.ai/code distinguishes them fine (directory name + machine). But once sessions are running, two problems combine to make them visually indistinguishable:

  1. Auto-generated titles from slash commands are generic. If the first message is a slash command (e.g. /todo, a brainstorming skill), the auto title becomes the command's generic name — "Todo list", "Brainstorming session". Starting the same command in two different environments produces two sessions with identical titles. (Slash commands must be the first token of the message, so you can't prefix the project name and still have the command execute.)
  1. The in-session breadcrumb shows only <hostname> / <title>. With multiple environments on one machine, the breadcrumb reads devbox / Todo list for both projects — the environment/project name appears nowhere in the session view or session list entry.

Real outcome: I accidentally created two identical-looking "Todo list" sessions on the wrong project before noticing, and the only reliable ways to tell sessions apart were comparing session_… IDs in the URL or running pwd inside the session.

Proposed Solution

Any of these would solve it (in rough order of preference):

  • Include the environment/project name (working directory basename or the server's --name) in the auto-generated title when the first message is a slash command — e.g. kakao_chatbot: Todo list.
  • Show the environment name in the in-session breadcrumb alongside the hostname — e.g. devbox · kakao_chatbot / Todo list.
  • Show the environment name as a secondary label on session entries in the session list.

Related: #62754 asks for programmatic display-name setting via hook/CLI flag, which would also mitigate this; this issue is specifically about the default behavior for Remote Control multi-environment setups.

Environment

  • Claude Code v2.1.170 (native install) on Ubuntu 24.04, Max subscription OAuth
  • Remote Control servers in tmux, attached from claude.ai/code web UI

View original on GitHub ↗