From 265095999c6772738ae48fd63d6361d443a13662 Mon Sep 17 00:00:00 2001 From: Ben Date: Sat, 4 Apr 2026 13:26:29 +0200 Subject: [PATCH] Show worktree name in window title during dev When running from a konductor worktree, appends the worktree name to the window title (e.g. "Konductor [sleek-pike]") so multiple dev instances are easy to distinguish. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/main/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/index.ts b/src/main/index.ts index 9b6243a..5939700 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -50,6 +50,12 @@ function createWindow(): void { }) mainWindow.on('ready-to-show', () => { + if (is.dev) { + const worktreeMatch = process.cwd().match(/\.konductor\/worktrees\/([^/]+)/) + if (worktreeMatch) { + mainWindow!.setTitle(`Konductor [${worktreeMatch[1]}]`) + } + } mainWindow!.show() })