From 711c83b7422025f4bef21fc995c2b369ef245056 Mon Sep 17 00:00:00 2001 From: Neil Jobbins <3514122+TheRealNeil@users.noreply.github.com> Date: Sat, 7 Feb 2026 19:47:36 -0800 Subject: [PATCH] Discard handler return value in exception handling to prevent polluting raw_response --- lib/active_agent/providers/concerns/exception_handler.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/active_agent/providers/concerns/exception_handler.rb b/lib/active_agent/providers/concerns/exception_handler.rb index 97e4cf54..9abb1d08 100644 --- a/lib/active_agent/providers/concerns/exception_handler.rb +++ b/lib/active_agent/providers/concerns/exception_handler.rb @@ -55,6 +55,7 @@ def with_exception_handling(&block) yield rescue => exception rescue_with_handler(exception) || raise + nil # Discard handler return value to prevent polluting raw_response end # Bubbles up exceptions to the Agent's rescue_from if a handler is defined.