openpod

An opencode plugin that spins up a dedicated virtual machine for each session to isolate agent work.
git clone https://unitehenry.com/git/openpod.git
Log | Files | Refs | README

commit f9c81dd597e332e1e07e3d6d7364bda8f9238dc9
parent 828cf8cacb38936dbdcb0718997d57de42a56507
Author: Henry Unite <unitehenry@gmail.com>
Date:   Mon, 19 Oct 2026 19:55:26 +0000

refactor: fix escaping in shell hook
Diffstat:
Mshell.ts | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/shell.ts b/shell.ts @@ -28,8 +28,8 @@ export async function registerShell( if (limaName) { const originalCommand = event.command; - const escapedCwd = event.cwd.replace(/'/g, "'''"); - const escapedCmd = originalCommand.replace(/'/g, "'''"); + const escapedCwd = event.cwd.replace(/'/g, "'\\''"); + const escapedCmd = originalCommand.replace(/'/g, "'\\''"); event.command = `limactl shell --preserve-env --workdir='${escapedCwd}' ${limaName} bash -c '${escapedCmd}'`; writeLog( `redirected shell command for lima ${limaName} (cwd=${event.cwd})`,