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
@@ -59,9 +59,9 @@ export function createStartWorkHook(ctx: PluginInput) {
.join("\n")
.trim() || ""
const isStartWorkCommand =
promptText.includes("Start Sisyphus work session") ||
promptText.includes("<session-context>")
// Only trigger on actual command execution (contains <session-context> tag)
// NOT on description text like "Start Sisyphus work session from Prometheus plan"
const isStartWorkCommand = promptText.includes("<session-context>")
if (!isStartWorkCommand) {
return