From a7e99a3ca3e1ad5d54eec0216c2d13f1cb694aa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Monnom?= Date: Mon, 2 Mar 2026 14:46:40 -0800 Subject: [PATCH 1/2] add AGENT_ERROR disconnect reason --- livekit/livekit_models.pb.go | 4 ++++ protobufs/livekit_models.proto | 2 ++ 2 files changed, 6 insertions(+) diff --git a/livekit/livekit_models.pb.go b/livekit/livekit_models.pb.go index 9ec92f522..df820a373 100644 --- a/livekit/livekit_models.pb.go +++ b/livekit/livekit_models.pb.go @@ -581,6 +581,8 @@ const ( DisconnectReason_CONNECTION_TIMEOUT DisconnectReason = 14 // media stream failure or media timeout DisconnectReason_MEDIA_FAILURE DisconnectReason = 15 + // agent encountered an error + DisconnectReason_AGENT_ERROR DisconnectReason = 16 ) // Enum value maps for DisconnectReason. @@ -602,6 +604,7 @@ var ( 13: "SIP_TRUNK_FAILURE", 14: "CONNECTION_TIMEOUT", 15: "MEDIA_FAILURE", + 16: "AGENT_ERROR", } DisconnectReason_value = map[string]int32{ "UNKNOWN_REASON": 0, @@ -620,6 +623,7 @@ var ( "SIP_TRUNK_FAILURE": 13, "CONNECTION_TIMEOUT": 14, "MEDIA_FAILURE": 15, + "AGENT_ERROR": 16, } ) diff --git a/protobufs/livekit_models.proto b/protobufs/livekit_models.proto index bc23358a6..de9415003 100644 --- a/protobufs/livekit_models.proto +++ b/protobufs/livekit_models.proto @@ -607,6 +607,8 @@ enum DisconnectReason { CONNECTION_TIMEOUT = 14; // media stream failure or media timeout MEDIA_FAILURE = 15; + // agent encountered an error + AGENT_ERROR = 16; } message RTPDrift { From 1ec3544ad78b4560fab8ef2bcafcd7006ad42d80 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2026 22:47:52 +0000 Subject: [PATCH 2/2] generated protobuf --- livekit/livekit_models.pb.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/livekit/livekit_models.pb.go b/livekit/livekit_models.pb.go index df820a373..caa7d99ca 100644 --- a/livekit/livekit_models.pb.go +++ b/livekit/livekit_models.pb.go @@ -6652,7 +6652,7 @@ const file_livekit_models_proto_rawDesc = "" + "\x13ClientConfigSetting\x12\t\n" + "\x05UNSET\x10\x00\x12\f\n" + "\bDISABLED\x10\x01\x12\v\n" + - "\aENABLED\x10\x02*\xd7\x02\n" + + "\aENABLED\x10\x02*\xe8\x02\n" + "\x10DisconnectReason\x12\x12\n" + "\x0eUNKNOWN_REASON\x10\x00\x12\x14\n" + "\x10CLIENT_INITIATED\x10\x01\x12\x16\n" + @@ -6670,7 +6670,8 @@ const file_livekit_models_proto_rawDesc = "" + "\rUSER_REJECTED\x10\f\x12\x15\n" + "\x11SIP_TRUNK_FAILURE\x10\r\x12\x16\n" + "\x12CONNECTION_TIMEOUT\x10\x0e\x12\x11\n" + - "\rMEDIA_FAILURE\x10\x0f*\x89\x01\n" + + "\rMEDIA_FAILURE\x10\x0f\x12\x0f\n" + + "\vAGENT_ERROR\x10\x10*\x89\x01\n" + "\x0fReconnectReason\x12\x0e\n" + "\n" + "RR_UNKNOWN\x10\x00\x12\x1a\n" +