Skip to content

Commit e857e30

Browse files
fix(server): normalize Windows terminal identity defaults
1 parent c0ef4a0 commit e857e30

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎apps/server/src/terminal/Manager.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,6 +1269,10 @@ function createTerminalSpawnEnv(
12691269
for (const [key, value] of Object.entries(baseEnv)) {
12701270
if (value === undefined) continue;
12711271
if (shouldExcludeTerminalEnvKey(key)) continue;
1272+
if (platform === "win32") {
1273+
const normalizedKey = key.toUpperCase();
1274+
if (normalizedKey === "TERM_PROGRAM" || normalizedKey === "TERM_PROGRAM_VERSION") continue;
1275+
}
12721276
spawnEnv[key] = value;
12731277
}
12741278
// The server inherits its launcher's identity (e.g. Apple_Terminal); shells

0 commit comments

Comments
 (0)