Skip to content

Conversation

@kylecarbs
Copy link
Member

Window title was showing the full workspaceId (e.g., cmux-duplicate-titles) which duplicated the project name.

Now extracts the branch name from the workspace path (last path component), matching the sidebar's display logic.

Result: duplicate-titles - cmux - cmux instead of cmux-duplicate-titles - cmux - cmux

Generated with cmux

Extract branch name from workspace path instead of duplicating
project name. Title format is now: <branch> - <project> - cmux
useEffect(() => {
if (selectedWorkspace) {
const title = `${selectedWorkspace.workspaceId} - ${selectedWorkspace.projectName} - cmux`;
// Extract branch name from workspace path (last path component)
Copy link
Member

Choose a reason for hiding this comment

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

Just to not confuse the LLM, we should be clear this isn't the workspace branch but the workspace name. The agents can and do tend to switch branches

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.

2 participants