Skip to content

Commit 5456c86

Browse files
fix(server): service launcher keeps a T3 home that ends in a space
main() trimmed T3CODE_HOME (or --base-dir), so a home whose final component ends in whitespace read service state from a different directory and exited with ENOENT. Use the path as given and only reject a blank value. Fixes #35946 Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 84e6b39 commit 5456c86

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/server/src/serviceLauncher.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,8 +1375,8 @@ export interface LauncherOptions {
13751375
}
13761376

13771377
export async function main(options: LauncherOptions = {}): Promise<void> {
1378-
const baseDir = (options.baseDir ?? process.env.T3CODE_HOME)?.trim();
1379-
if (baseDir === undefined || baseDir === "") {
1378+
const baseDir = options.baseDir ?? process.env.T3CODE_HOME;
1379+
if (baseDir === undefined || baseDir.trim() === "") {
13801380
throw new Error("T3CODE_HOME is required by the T3 Code service launcher.");
13811381
}
13821382
const output =

0 commit comments

Comments
 (0)