fix(#205): fix typing effect by checking actual streamed word counts and default it to enabled (#246)

* fix(#205): fix typing effect by checking actual streamed word counts and default it to enabled

* fix: correct import path of rememberSaveable to resolve build error

* fix: make typingDelayMs reactive using rememberUpdatedState in StreamingBubbleWithTypingEffect

* fix(#205): support message.delta event type to enable streaming text

* feat(#205): increase typing effect delay slider maximum to 1000ms

* fix(#205): continue animating completed streaming messages until all words are revealed

* fix(#205): revert slider delay maximum value back to 100ms
This commit is contained in:
M57 authored and GitHub committed 2026-06-21 19:38:51 +03:00
1 parent 2f5a31d3cb
commit 0c192eddad
3 files changed
+42 -11

No files matched your search

@@ -35,7 +35,7 @@ object AuthManager {
private const val DEFAULT_HOST = "127.0.0.1"
private const val DEFAULT_PORT = 9119
private const val DEFAULT_AUTO_RECONNECT = true
private const val DEFAULT_TYPING_EFFECT_ENABLED = false
private const val DEFAULT_TYPING_EFFECT_ENABLED = true
private const val DEFAULT_TYPING_EFFECT_DELAY_MS = 30
@Volatile
@@ -51,7 +51,7 @@ object EventParser {
WsEvent.MessageStart(sessionId)
}
"message.token" -> {
"message.token", "message.delta" -> {
val token = payload?.get("text") as? String ?: ""
WsEvent.MessageToken(token, sessionId)
}