Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
Fix Windows percent escaping in script env injection
Julius Marminge4d886b99f5f7
diff --git a/apps/web/src/projectScripts.test.ts b/apps/web/src/projectScripts.test.tsindex 3180e793e..3dad5824a 100644--- a/apps/web/src/projectScripts.test.ts+++ b/apps/web/src/projectScripts.test.ts@@ -40,7 +40,7 @@ describe("projectScripts helpers", () => {{ T3CODE_PROJECT_ROOT: '%USERPROFILE%^"repo"' },"Win32",);- expect(command).toBe('set "T3CODE_PROJECT_ROOT=%%USERPROFILE%%^^""repo""" && bun install');+ expect(command).toBe('set "T3CODE_PROJECT_ROOT=^%USERPROFILE^%^^""repo""" && bun install');});it("resolves primary and setup scripts", () => {diff --git a/apps/web/src/projectScripts.ts b/apps/web/src/projectScripts.tsindex d093138a6..e7086a2f7 100644--- a/apps/web/src/projectScripts.ts+++ b/apps/web/src/projectScripts.ts@@ -57,7 +57,7 @@ function shellEscapePosix(value: string): string {}function shellEscapeWindowsSetValue(value: string): string {- return value.replace(/\^/g, "^^").replace(/%/g, "%%").replace(/"/g, '""');+ return value.replace(/\^/g, "^^").replace(/%/g, "^%").replace(/"/g, '""');}export function injectEnvIntoShellCommand(