Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions hooks/recall-approve.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,11 @@ async function main() {
});
return;
}

writeOutput({ continue: true, suppressOutput: true });
// Any other tool: no output, so Muse applies its normal approval. Muse 1.4.4 rejects
// `continue` in PreToolUse output and logs the hook as failed on every tool call.
} catch (err) {
debugLog(settings, 'Recall approve error', { error: err.message });
writeOutput({ continue: true, suppressOutput: true });
}
}

main().catch(() => {
writeOutput({ continue: true, suppressOutput: true });
});
main().catch(() => {});
3 changes: 1 addition & 2 deletions test/unit.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ describe('hooks', () => {
input: JSON.stringify({ tool_name: 'mcp__supermemory__add_memory' }),
});
assert.equal(result.status, 0, result.stderr);
const out = JSON.parse(result.stdout.trim().split('\n').at(-1));
assert.equal(out.continue, true);
assert.equal(result.stdout.trim(), '');
});
});

Expand Down