fix(TASK-033): cover hooks env overrides with tests and debug-log malformed hook config

This commit is contained in:
Dark-Alex-17 committed 2026-09-16 13:44:34 -06:00
1 parent 9693cdd4ac
commit b020e1b75e
3 files changed
+92 -9

No files matched your search

+7 -1
View File
@@ -558,7 +558,13 @@ fn parse_mcp_tools_map(value: &Value) -> Option<IndexMap<String, Vec<String>>> {
}
fn parse_hooks_map(value: &Value) -> Option<HooksMap> {
serde_json::from_value(value.clone()).ok()
match serde_json::from_value(value.clone()) {
Ok(map) => Some(map),
Err(err) => {
debug!("Ignoring malformed hooks configuration: {err}");
None
}
}
}
fn parse_structure_prompt(prompt: &str) -> (&str, Vec<(&str, &str)>) {