diff --git a/composeApp/src/commonMain/kotlin/cn/xiaobai/openclawapp/data/RemoteOpenClawRepository.kt b/composeApp/src/commonMain/kotlin/cn/xiaobai/openclawapp/data/RemoteOpenClawRepository.kt index 5baf4fb..3dbddc6 100644 --- a/composeApp/src/commonMain/kotlin/cn/xiaobai/openclawapp/data/RemoteOpenClawRepository.kt +++ b/composeApp/src/commonMain/kotlin/cn/xiaobai/openclawapp/data/RemoteOpenClawRepository.kt @@ -144,8 +144,8 @@ class RemoteOpenClawRepository( sessionId to snapshot.messages.map { dto -> dto.toDomainMessage() } ) } - } catch (_: CancellationException) { - throw _ + } catch (e: CancellationException) { + throw e } catch (_: Throwable) { delay(1500) }