Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

fix(windows): keep the SCM reveal join total over an unset cwd

review386aa31373e3
diff --git a/src/renderer/lib/osReveal.ts b/src/renderer/lib/osReveal.ts
index 480f8b872..8949f18b3 100644
--- a/src/renderer/lib/osReveal.ts
+++ b/src/renderer/lib/osReveal.ts
@@ -33,7 +33,7 @@ export function osRevealLabel(os: RevealOs = viewerRevealOs()): string {
* Windows gets one native separator throughout; every other platform keeps the historical
* `${cwd}/${rel}` byte for byte.
*/
-export function localRevealPath(cwd: string, rel: string, os: RevealOs = viewerRevealOs()): string {
- if (os !== 'win32') return `${cwd}/${rel}`
+export function localRevealPath(cwd: string | undefined, rel: string, os: RevealOs = viewerRevealOs()): string {
+ if (os !== 'win32' || cwd === undefined) return `${cwd}/${rel}`
return `${cwd.replace(/[\\/]+$/, '')}\\${rel.replace(/\//g, '\\')}`
}