diff --git a/backend/api/cloud/connections.py b/backend/api/cloud/connections.py index c9e7500..3703299 100644 --- a/backend/api/cloud/connections.py +++ b/backend/api/cloud/connections.py @@ -651,6 +651,11 @@ async def reconnect_connection( ip_address=_ip, metadata_={"provider": result["provider"], "connection_id": str(connection_id)}, ) + # CR-05: The service committed the credential update; this commit persists the + # audit row that was written to the session after that commit. Without this, + # the audit row is rolled back when the session closes and the reconnect event + # is silently lost. + await session.commit() return result