fix(subagents): run bundled JS launcher via runtime on Windows (#975)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Charles Packer
2026-02-16 01:11:41 -08:00
committed by GitHub
parent 1b8dab2040
commit 702e888300
4 changed files with 217 additions and 21 deletions

View File

@@ -24,6 +24,22 @@ describe("shellEnv letta shim", () => {
});
});
test("resolveLettaInvocation strips accidental wrapping quotes in LETTA_CODE_BIN", () => {
const invocation = resolveLettaInvocation(
{
LETTA_CODE_BIN:
'"C:\\Users\\Example User\\AppData\\Roaming\\npm\\letta.cmd"',
},
["node", "/irrelevant/script.js"],
"/opt/homebrew/bin/bun",
);
expect(invocation).toEqual({
command: "C:\\Users\\Example User\\AppData\\Roaming\\npm\\letta.cmd",
args: [],
});
});
test("resolveLettaInvocation infers dev entrypoint launcher", () => {
const invocation = resolveLettaInvocation(
{},