Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ function AppInner() {
// Update window title when workspace changes
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

const branch = selectedWorkspace.workspacePath.split("/").pop() ?? "unknown";
const title = `${branch} - ${selectedWorkspace.projectName} - cmux`;
void window.api.window.setTitle(title);
} else {
void window.api.window.setTitle("cmux");
Expand Down