Skip to content

fix: SessionStart hook fails on Linux/macOS (@echo: command not found) - #61

Merged
khajavi merged 1 commit into
mainfrom
fix/session-start-hook-linux
Aug 25, 2026
Merged

fix: SessionStart hook fails on Linux/macOS (@echo: command not found)#61
khajavi merged 1 commit into
mainfrom
fix/session-start-hook-linux

Conversation

@khajavi

@khajavi khajavi commented Aug 25, 2026

Copy link
Copy Markdown
Member

Summary

  • hooks/hooks.json runs run-hook.cmd through bash for the SessionStart event, but that's a Windows batch script. On Linux/macOS this fails with @echo: command not found since bash reads @echo off literally.
  • A working bash equivalent, hooks/session-start, already exists in the same directory but is unused. Point hooks.json at it instead.

Test plan

  • Confirmed the error reproduces from the plugin cache (run-hook.cmd executed via bash → @echo: command not found)
  • Verified hooks/session-start reads skills/zio-knowledge/SKILL.md correctly when invoked directly
  • Reinstall/reload the plugin and confirm SessionStart fires without error on Linux

hooks.json invoked run-hook.cmd via bash, which fails on Linux/macOS
with "@echo: command not found" since it's a Windows batch file. A
working bash equivalent (hooks/session-start) already existed unused;
wire hooks.json to it instead.
@khajavi
khajavi merged commit f37383f into main Aug 25, 2026
2 checks passed
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