Skip to content

fix(backend): quote hook commands for Windows shells - #153

Open
DevMello wants to merge 1 commit into
MemTensor:v1.0.5from
DevMello:fix/149-windows-hook-quoting
Open

fix(backend): quote hook commands for Windows shells#153
DevMello wants to merge 1 commit into
MemTensor:v1.0.5from
DevMello:fix/149-windows-hook-quoting

Conversation

@DevMello

@DevMello DevMello commented Aug 5, 2026

Copy link
Copy Markdown

Install plugin wraps hook commands in POSIX single quotes. cmd.exe treats those as literal characters and PowerShell parses them as string expressions, so installed hooks never run on Windows and memory capture silently stops (#149).

Fix: double quotes on win32, POSIX form unchanged elsewhere, bare command names left unquoted. Verified on Windows 11 under cmd.exe; hook-command.test.ts now covers both platforms.

Fixes #149

Hook commands used POSIX single quotes, which cmd.exe and PowerShell
cannot execute, so installed hooks never ran on Windows. Use double
quotes on win32 and keep the POSIX form elsewhere.

Fixes MemTensor#149
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant