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
+12 -2

No files matched your search

@@ -97,6 +97,7 @@ fun ChatScreen(
color = MaterialTheme.colorScheme.onSurfaceVariant,
)
}
Column(horizontalAlignment = Alignment.End, verticalArrangement = Arrangement.spacedBy(6.dp)) {
StatusPill(
text = when {
isLoading -> "同步中"
@@ -107,6 +108,10 @@ fun ChatScreen(
},
highlighted = streamStatus != "failed",
)
TextButton(onClick = onRetry) {
Text(if (streamStatus == "failed") "重新连接" else "刷新")
}
}
}
}
+7 -2
View File
@@ -62,6 +62,7 @@ Android/iOS App
### 2.3 聊天与流式消息
- [x] 文本消息发送
- [x] 文本消息失败重试
- [x] BFF SSE 流式推送基础链路
- [x] App 支持 SSE 事件:
- `session.snapshot`
@@ -119,6 +120,7 @@ Android/iOS App
- contentType
- sizeBytes
- [x] 上传失败支持重试
- [x] 聊天页支持手动刷新 / 重新连接入口
- [x] BFF 已将附件 overlay 合并进:
- history 返回
- SSE 流
@@ -173,8 +175,10 @@ Android/iOS App
目前:
- 附件上传失败可重试
- 普通文本消息失败**还没有统一重试机制**
- [x] 附件上传失败可重试
- [x] 普通文本消息失败可重试
- [ ] 还没有离线发送队列
- [ ] 还没有网络恢复后的自动补发
### 4.2 附件后端主链路
@@ -321,6 +325,7 @@ Android/iOS App
- 默认 agent 切换
- Android 真附件选择与上传
- 附件失败重试
- 普通文本消息失败重试
### 还没做完的大头