-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
If client gets an event with unknown session id, it should ignore it and write a WARN to the logs. In general a client should try to keep going event if it can't parse some event. We might want to have ability to pass a custom error handler for that
com.agentclientprotocol.protocol.AcpExpectedError: Session 019a62c8-6b42-7aa3-bb9b-ba5532712aa5 not found
at com.agentclientprotocol.protocol.ProtocolKt.acpFail(Protocol.kt:40)
at com.agentclientprotocol.client.Client.getSessionOrThrow-0izbxq0(Client.kt:132)
at com.agentclientprotocol.client.Client.access$getSessionOrThrow-0izbxq0(Client.kt:34)
at com.agentclientprotocol.client.Client$2.invokeSuspend(Client.kt:48)
at com.agentclientprotocol.client.Client$2.invoke(Client.kt)
at com.agentclientprotocol.client.Client$2.invoke(Client.kt)
at com.agentclientprotocol.client.Client$special$$inlined$setNotificationHandler$default$1.invokeSuspend(Protocol.extensions.kt:65)
at com.agentclientprotocol.client.Client$special$$inlined$setNotificationHandler$default$1.invoke(Protocol.extensions.kt)
at com.agentclientprotocol.client.Client$special$$inlined$setNotificationHandler$default$1.invoke(Protocol.extensions.kt)
at com.agentclientprotocol.protocol.Protocol$setNotificationHandlerRaw$1$1$1.invokeSuspend(Protocol.kt:259)
at com.agentclientprotocol.protocol.Protocol$setNotificationHandlerRaw$1$1$1.invoke(Protocol.kt)
at com.agentclientprotocol.protocol.Protocol$setNotificationHandlerRaw$1$1$1.invoke(Protocol.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:44)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:157)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
at com.agentclientprotocol.protocol.Protocol$setNotificationHandlerRaw$1$1.invokeSuspend(Protocol.kt:258)
at com.agentclientprotocol.protocol.Protocol$setNotificationHandlerRaw$1$1.invoke(Protocol.kt)
at com.agentclientprotocol.protocol.Protocol$setNotificationHandlerRaw$1$1.invoke(Protocol.kt)
at com.agentclientprotocol.protocol.Protocol.handleNotification(Protocol.kt:393)
at com.agentclientprotocol.protocol.Protocol.handleIncomingMessage(Protocol.kt:319)
at com.agentclientprotocol.protocol.Protocol.access$handleIncomingMessage(Protocol.kt:83)
at com.agentclientprotocol.protocol.Protocol$start$2.invokeSuspend(Protocol.kt:134)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:34)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:610)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runDefaultDispatcherTask(CoroutineScheduler.kt:1194)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:906)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:775)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:762)
Metadata
Metadata
Assignees
Labels
No labels