Clarify hook trust hash normalization

This commit is contained in:
Abhinav Vedmala
2026-05-01 14:01:27 -07:00
parent dafa805c3c
commit 987ed0b237
+2
View File
@@ -483,6 +483,8 @@ fn command_hook_hash(
timeout_sec: u64,
status_message: Option<&str>,
) -> String {
// Hash normalized handler fields instead of source text so equivalent hooks from
// config TOML and hooks.json converge on the same trust identity.
let TomlValue::Table(mut table) = TomlValue::Table(Default::default()) else {
unreachable!("TOML table construction should stay a table");
};