修复确认生成后的任务列表对账

问题:客户端确认 Quote 后只刷新一次任务,遇到短暂投影延迟时任务列表为空且流程静默成功。

修复:按 quoteId 有界重试任务列表,合并 REST 与实时推送快照,缺任务时显示明确错误;补充 Store 与页面回归测试。
This commit is contained in:
2026-08-03 15:48:04 +08:00
parent 78e4de91e4
commit fab0e4034c
4 changed files with 92 additions and 2 deletions

View File

@@ -580,6 +580,9 @@ function asErrorDetail(payload: unknown): ServerErrorDetail {
}
function userFacingErrorMessage(code: string, fallback: string): string {
if (code === 'generation_task_not_created') {
return '生成方案已确认,但任务创建失败,请刷新后重试';
}
const messages: Record<string, string> = {
workspace_not_found: '设计项目不存在或无权访问',
workspace_revision_conflict: '设计项目已更新,请刷新后重试',