diff --git a/gateway/platforms/api_server.py b/gateway/platforms/api_server.py index 9eb2c4c784e..d04803f5ebb 100644 --- a/gateway/platforms/api_server.py +++ b/gateway/platforms/api_server.py @@ -3747,8 +3747,12 @@ class APIServerAdapter(BasePlatformAdapter): len(conversation_history) + 1, ) full_history = list(_agent_messages) - except Exception: - pass + except Exception as e: + logger.warning( + "Failed to persist compressed response_store snapshot " + "(streaming): %s", + e, + ) _persist_response_snapshot( completed_env, conversation_history_snapshot=full_history, @@ -4095,8 +4099,11 @@ class APIServerAdapter(BasePlatformAdapter): full_history = list(_agent_messages) if _rotated and _result_sid: _effective_session_id = _result_sid - except Exception: - pass # Fall back to default behavior + except Exception as e: + logger.warning( + "Failed to persist compressed response_store snapshot: %s", + e, + ) # Build output items from the current turn only. AIAgent returns a # full transcript in result["messages"], while older/mocked paths may