test(hooks): synthetic payload carries the new profile field like production
This commit is contained in:
@@ -102,7 +102,7 @@ class TestHooksTest:
|
||||
# Same top-level keys _serialize_payload produces at runtime
|
||||
assert set(seen.keys()) == {
|
||||
"hook_event_name", "tool_name", "tool_input",
|
||||
"session_id", "cwd", "extra",
|
||||
"session_id", "cwd", "extra", "profile",
|
||||
}
|
||||
# parent_session_id was routed to top-level session_id (matches runtime)
|
||||
assert seen["session_id"] == "parent-sess"
|
||||
|
||||
Reference in New Issue
Block a user