From a4ceead796de7fd187850e24725cbd8359a8e0ec Mon Sep 17 00:00:00 2001 From: kenyonxu Date: Wed, 20 May 2026 13:14:29 +0800 Subject: [PATCH] fix(gateway): propagate response_transformed flag through run_sync return dict run_sync() cherry-picks fields from the run_conversation result dict into a new response dict for the gateway. response_transformed was missing from the cherry-pick list, so the gateway always saw it as False and suppressed the final send even though a transform_llm_output hook had modified the content. --- gateway/run.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gateway/run.py b/gateway/run.py index d62fbdc0035..82aea10cce7 100644 --- a/gateway/run.py +++ b/gateway/run.py @@ -17041,6 +17041,7 @@ class GatewayRunner: "context_length": _context_length, "session_id": effective_session_id, "response_previewed": result.get("response_previewed", False), + "response_transformed": result.get("response_transformed", False), } # Start progress message sender if enabled