Answer security round 1: 0 🔴, 1 🟡 (0 misread); keep the hooks in settings.json on their full path, so a session started outside the loop still runs them
CI / tests (pull_request) Successful in 4m36s

This commit is contained in:
2026-12-03 13:11:11 +01:00
parent 0653c2744e
commit 9240b34e0c
4 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ class Reviewers(unittest.TestCase):
def test_settings_run_the_hook_as_each_subagent_starts(self):
hooks = json.loads((REPO / "settings.json").read_text())["hooks"]["SubagentStart"]
self.assertEqual(hooks, [{"hooks": [{"command": "larv-review reviewer-context", "timeout": 30, "type": "command"}]}])
self.assertEqual(hooks, [{"hooks": [{"command": "~/.claude/bin/larv-review reviewer-context", "timeout": 30, "type": "command"}]}])
if __name__ == "__main__":