Skip to content

The agent that grows with you

fix(gateway): redact secrets in background process completion output

handnewbc0d204810d0c
diff --git a/gateway/run.py b/gateway/run.py
index 47d476d891c..3132e1d037b 100644
--- a/gateway/run.py
+++ b/gateway/run.py
@@ -24097,6 +24097,7 @@ class GatewayRunner(GatewayAuthorizationMixin, GatewayKanbanWatchersMixin, Gatew
_out = f"[… output truncated — showing last {len(_tail)} chars]\n{_tail}"
else:
_out = _raw
+ _out = _redact_gateway_user_facing_secrets(_out)
completion_evt = {
"type": "completion",
"session_id": session_id,