fix(executor_helpers): omit exc class from error tag when stderr provides context #834
@ -620,7 +620,9 @@ def sanitize_agent_error(
|
||||
# a malicious or buggy peer injecting a huge error body, and
|
||||
# scrubs any API keys / bearer tokens that snuck into the message.
|
||||
detail = _sanitize_for_external(stderr[:_MAX_STDERR_PREVIEW])
|
||||
return f"Agent error ({tag}): {detail}"
|
||||
if category:
|
||||
return f"Agent error ({tag}): {detail}"
|
||||
return f"Agent error: {detail}"
|
||||
return f"Agent error ({tag}) — see workspace logs for details."
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user