Expose attachment retry action

This commit is contained in:
OpenClaw committed 2026-03-07 15:43:36 +08:00
1 parent 662b4d24cd
commit 270c0aa29e
2 files changed
+6 -5

No files matched your search

@@ -450,6 +450,11 @@ private fun MessageBubble(
color = MaterialTheme.colorScheme.onSurfaceVariant,
)
}
if (message.retryable && message.status == "upload-failed") {
Button(onClick = { onRetryAttachment(message.id) }) {
Text("重新发送附件")
}
}
Row(horizontalArrangement = Arrangement.spacedBy(6.dp)) {
TextButton(onClick = { onOpenAttachment(message.id) }) {
Text("打开")
@@ -463,11 +468,6 @@ private fun MessageBubble(
TextButton(onClick = { attachmentDetailsExpanded = !attachmentDetailsExpanded }) {
Text(if (attachmentDetailsExpanded) "收起详情" else "查看详情")
}
if (message.retryable && message.status == "upload-failed") {
TextButton(onClick = { onRetryAttachment(message.id) }) {
Text("重试")
}
}
}
if (attachmentDetailsExpanded) {
Column(