Compare commits

...

1 Commits

Author SHA1 Message Date
jif-oai
37a30d2f38 Add back error messages 2025-10-22 19:26:03 +01:00

View File

@@ -161,12 +161,10 @@ fn build_never_denied_message_from_output(output: &ExecToolCallOutput) -> String
match detail {
Some(tag) => format!("failed in sandbox: {tag}"),
None => "failed in sandbox".to_string(),
None => format!("failed in sandbox: {}", output.aggregated_output.text),
}
}
fn build_denial_reason_from_output(_output: &ExecToolCallOutput) -> String {
// Keep approval reason terse and stable for UX/tests, but accept the
// output so we can evolve heuristics later without touching call sites.
"command failed; retry without sandbox?".to_string()
fn build_denial_reason_from_output(output: &ExecToolCallOutput) -> String {
format!("command failed: {}\nretry without sandbox?", output.aggregated_output.text)
}