@devries-cameron20 / t3code-1 / commits / 4d886b99f5
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Fix Windows percent escaping in script env injection

Co-authored-by: codex <codex@users.noreply.github.com>

Julius Marminge committed Feb 17, 2026 at 21:33 UTC 4d886b99f5f786ee407d8d38d77c0e9d1c7548da
2 files changed +2 -2
apps/web/src/projectScripts.test.ts
+1 -1
@@ -40,7 +40,7 @@ describe("projectScripts helpers", () => {
40 { T3CODE_PROJECT_ROOT: '%USERPROFILE%^"repo"' },
41 "Win32",
42 );
43 - expect(command).toBe('set "T3CODE_PROJECT_ROOT=%%USERPROFILE%%^^""repo""" && bun install');
43 + expect(command).toBe('set "T3CODE_PROJECT_ROOT=^%USERPROFILE^%^^""repo""" && bun install');
44 });
45
46 it("resolves primary and setup scripts", () => {
apps/web/src/projectScripts.ts
+1 -1
@@ -57,7 +57,7 @@ function shellEscapePosix(value: string): string {
57 }
58
59 function shellEscapeWindowsSetValue(value: string): string {
60 - return value.replace(/\^/g, "^^").replace(/%/g, "%%").replace(/"/g, '""');
60 + return value.replace(/\^/g, "^^").replace(/%/g, "^%").replace(/"/g, '""');
61 }
62
63 export function injectEnvIntoShellCommand(