fix(TASK-033): cover hooks env overrides with tests and debug-log malformed hook config
This commit is contained in:
3 files changed
+92
-9
No files matched your search
+7
-1
@@ -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)>) {
|
||||
|
||||
Reference in new issue
Block a user