mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-09 10:53:34 +08:00
fix: harden session hook guards and session ID handling
This commit is contained in:
@@ -35,7 +35,7 @@ function runHook(input, env = {}) {
|
||||
});
|
||||
|
||||
return {
|
||||
code: result.status ?? 0,
|
||||
code: Number.isInteger(result.status) ? result.status : 1,
|
||||
stdout: result.stdout || '',
|
||||
stderr: result.stderr || ''
|
||||
};
|
||||
@@ -98,4 +98,4 @@ function runTests() {
|
||||
process.exit(failed > 0 ? 1 : 0);
|
||||
}
|
||||
|
||||
runTests();
|
||||
runTests();
|
||||
|
||||
Reference in New Issue
Block a user