fix(hooks): prevent start-work false trigger from command description

- Remove 'Start Sisyphus work session' text check, keep only <session-context> tag
- Update interactive_bash description with WARNING: TMUX ONLY emphasis
- Update tests to use <session-context> wrapper
This commit is contained in:
justsisyphus
2026-01-16 14:01:29 +09:00
parent d00c2e7439
commit 1ecb2bafdf
3 changed files with 25 additions and 29 deletions
+3 -3
View File
@@ -11,8 +11,8 @@ export const BLOCKED_TMUX_SUBCOMMANDS = [
"pipep",
]
export const INTERACTIVE_BASH_DESCRIPTION = `Execute tmux commands. Use "omo-{name}" session pattern.
export const INTERACTIVE_BASH_DESCRIPTION = `WARNING: This is TMUX ONLY. Pass tmux subcommands directly (without 'tmux' prefix).
For: server processes, long-running tasks, background jobs, interactive CLI tools.
Examples: new-session -d -s omo-dev, send-keys -t omo-dev "vim" Enter
Blocked (use bash instead): capture-pane, save-buffer, show-buffer, pipe-pane.`
For TUI apps needing ongoing interaction (vim, htop, pudb). One-shot commands → use Bash with &.`