Add message retry UX and refresh controls

This commit is contained in:
OpenClaw committed 2026-03-07 09:31:55 +08:00
1 parent b441ac9cc6
commit 2b21e56413
2 files changed
+22 -12

No files matched your search

@@ -97,16 +97,21 @@ fun ChatScreen(
color = MaterialTheme.colorScheme.onSurfaceVariant,
)
}
StatusPill(
text = when {
isLoading -> "同步中"
streamStatus == "reconnecting" -> "重连中"
streamStatus == "failed" -> "已断流"
streamStatus == "connecting" -> "连接中"
else -> "在线"
},
highlighted = streamStatus != "failed",
)
Column(horizontalAlignment = Alignment.End, verticalArrangement = Arrangement.spacedBy(6.dp)) {
StatusPill(
text = when {
isLoading -> "同步中"
streamStatus == "reconnecting" -> "重连中"
streamStatus == "failed" -> "已断流"
streamStatus == "connecting" -> "连接中"
else -> "在线"
},
highlighted = streamStatus != "failed",
)
TextButton(onClick = onRetry) {
Text(if (streamStatus == "failed") "重新连接" else "刷新")
}
}
}
}