fix: adjust systemd ExecStart escape test (#995) (thanks @roshanasingh4)

This commit is contained in:
Peter Steinberger
2026-01-16 06:03:17 +00:00
parent 97acca47ac
commit 860dc74639
2 changed files with 4 additions and 3 deletions

View File

@@ -26,6 +26,7 @@
- Fix: guard model fallback against undefined provider/model values. (#954) — thanks @roshanasingh4.
- Fix: refactor session store updates, add chat.inject, and harden subagent cleanup flow. (#944) — thanks @tyler6204.
- Fix: clean up suspended CLI processes across backends. (#978) — thanks @Nachx639.
- Fix: parse systemd ExecStart arguments when whitespace is present. (#995) — thanks @roshanasingh4.
- CLI: add `--json` output for `clawdbot daemon` lifecycle/install commands.
- Memory: make `node-llama-cpp` an optional dependency (avoid Node 25 install failures) and improve local-embeddings fallback/errors.
- Browser: add `snapshot refs=aria` (Playwright aria-ref ids) for self-resolving refs across `snapshot``act`.

View File

@@ -25,14 +25,14 @@ describe("parseSystemdExecStart", () => {
]);
});
it("supports backslash-escaped characters", () => {
const execStart = "/usr/bin/clawdbot gateway start --path \/tmp\/clawdbot";
it("preserves backslashes in arguments", () => {
const execStart = String.raw`/usr/bin/clawdbot gateway start --path \/tmp\/clawdbot`;
expect(parseSystemdExecStart(execStart)).toEqual([
"/usr/bin/clawdbot",
"gateway",
"start",
"--path",
"/tmp/clawdbot",
"\\/tmp\\/clawdbot",
]);
});
});