Merge branch 'main' of git.arirex.me:iris/ai-app
This commit is contained in:
commit
c9d74b63f2
9 files changed
+154
-17
No files matched your search
@@ -724,8 +724,15 @@ fun SessionScreen(settings: ServerSettings, summary: SessionSummary, onBack: ()
|
||||
apply(entry)
|
||||
}
|
||||
}
|
||||
} catch (e: ApiException) {
|
||||
streamError = e.message
|
||||
} catch (e: kotlinx.coroutines.CancellationException) {
|
||||
// Leaving the screen or going below STARTED. Not a failure, and
|
||||
// swallowing it would leave this loop reconnecting forever.
|
||||
throw e
|
||||
} catch (e: Exception) {
|
||||
// Any failure, not only an [ApiException]: the stream reconnects from its
|
||||
// cursor, so there is nothing a failure here can cost that is worth
|
||||
// closing the app over. Reported on the screen either way.
|
||||
streamError = e.message ?: e::class.simpleName
|
||||
} finally {
|
||||
stream.close()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user