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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user