From 979fcb5897227925316c209c9f3e713f49784937 Mon Sep 17 00:00:00 2001 From: Peanut Date: Mon, 20 Jul 2026 00:17:18 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E5=BF=83=E6=84=BF=E5=AE=9E=E7=8E=B0=20?= =?UTF-8?q?chat=20=E8=A7=86=E5=9B=BE=20loading=20=E6=A0=87=E8=AF=86?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=9E=E6=96=BD=E8=AE=A1=E5=88=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plans/2026-07-19-chat-view-loading-fix.md | 163 ++++++++++++++++++ 1 file changed, 163 insertions(+) create mode 100644 docs/superpowers/plans/2026-07-19-chat-view-loading-fix.md diff --git a/docs/superpowers/plans/2026-07-19-chat-view-loading-fix.md b/docs/superpowers/plans/2026-07-19-chat-view-loading-fix.md new file mode 100644 index 0000000..a75be36 --- /dev/null +++ b/docs/superpowers/plans/2026-07-19-chat-view-loading-fix.md @@ -0,0 +1,163 @@ +# 心愿实现 chat 视图 Loading 标识修复实施计划 + +> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking. + +**Goal:** 修复 ScriptView chat 视图在等待后端 SSE 响应期间 loading 立即消失导致页面空白的问题。 + +**Architecture:** 新增 computed `showChatLoading`,基于 `generationPhase === 'generating'` + `generationStatus !== 'failed'` + `resultMessages 最后一条消息 role === 'user'` 三个条件判断是否显示 loading。替换原 `v-if="generating && generationStatus !== 'failed'"`。 + +**Tech Stack:** UniApp Vue 3 `