fix(claude): accept async rewake metadata

This commit is contained in:
ZacharyZhang-NY committed 2026-07-20 08:50:50 -04:00
1 parent 586ffa0278
commit b59404cd33
4 files changed
+46 -3

No files matched your search

+16 -1
View File
@@ -10,7 +10,22 @@ const claudeBinary = process.env.ELYDORA_CLAUDE_BINARY;
test('official Claude Code accepts the installed user hook contract', {
skip: claudeBinary ? false : 'set ELYDORA_CLAUDE_BINARY to the official Claude Code executable',
}, async () => {
const fixture = await createFixture();
const fixture = await createFixture({
settings: {
hooks: {
Stop: [{
hooks: [{
type: 'command',
command: process.execPath,
args: ['--version'],
asyncRewake: true,
rewakeMessage: 'Background validation failed',
rewakeSummary: 'Validation feedback',
}],
}],
},
},
});
try {
assert.equal((await fixture.install()).code, 0);
const environment = {