peanut
|
f07817aaff
|
fix: chat 视图 scroll-view 添加 height: 100% + min-height: 0
参考项目内已工作的 .result-view 模式:
- flex: 1 仅在 flex 布局父容器中生效
- 但 UniApp <scroll-view> 是原生组件,必须显式 height: 100%
- 同时 min-height: 0 确保 flex 子项可收缩
之前只设 flex: 1,真机上原生 scroll-view 无法计算可滚动区域。
|
2026-07-19 18:32:09 +08:00 |
|
peanut
|
30ecf9f4a3
|
fix: chat 视图 scroll-view 删除固定 height,改用 flex: 1 自适应真机高度
真机上状态栏/tab 栏/安全区域高度各不相同,
硬编码 calc(100vh - 220rpx) 导致 scroll-view 超出可视区域无法滚动。
|
2026-07-19 18:07:00 +08:00 |
|
peanut
|
f6ef0222b3
|
fix: 修复 chat 视图无法滚动 + SSE 事件重复消费
- scrollResultToLatest 守卫条件兼容 chat 视图
- shortNovel.js 添加 chunkProcessed 标志位避免 H5 双重消费
|
2026-07-19 16:04:54 +08:00 |
|
peanut
|
e109e59f1a
|
feat(mini-program): sendChat 按 generationPhase 切换接口,消息进统一对话流
|
2026-07-19 15:24:49 +08:00 |
|
peanut
|
e41266e6f4
|
feat(mini-program): 统一 chat 视图,删除 clarifying/outlining/result 独立视图
|
2026-07-19 15:21:43 +08:00 |
|
peanut
|
b4fca0abfa
|
refactor(mini-program): runGeneration+交互函数改为操作对话消息
|
2026-07-19 15:15:49 +08:00 |
|
peanut
|
84b6a77632
|
refactor(mini-program): handleShortNovelEvent 改为对话流追加消息
|
2026-07-19 15:10:42 +08:00 |
|
peanut
|
c0adb48949
|
refactor(mini-program): 扩展 addResultMessage 消息模型 + 新增 generationPhase
|
2026-07-19 15:05:27 +08:00 |
|
peanut
|
25d8a9f8f2
|
docs:ScriptView 统一对话页改造实现计划
6 个任务:扩展消息模型、handleShortNovelEvent 改对话流、
runGeneration+交互函数改造、统一 chat 视图模板、
sendChat 接口切换、端到端浏览器验证
|
2026-07-19 14:55:27 +08:00 |
|
peanut
|
b2df7d4de0
|
docs:ScriptView 统一对话页改造设计
将澄清/大纲/小说生成从独立视图改为统一对话流消息。
viewState 简化为 home+chat,扩展 resultMessages 消息模型
支持 kind: text/card/outline/novel,novel_done 后切换旧接口
做后续对话修改。
|
2026-07-19 14:45:45 +08:00 |
|
peanut
|
30e2836742
|
fix(mini-program): 修复心愿实现页接口报错 + .env 指向生产服务器
根因:.env.development 指向 localhost:19089,但本地未启动后端,
所有 API 请求 ERR_CONNECTION_REFUSED。
切换至 https://lifescript.happylifeos.com/api(生产服务器),
符合 CLAUDE.md 服务器端验收规则。
此修复与 generationDisplayText + 继续会话 一起完成完整心愿实现流程验证。
|
2026-07-19 14:17:11 +08:00 |
|
peanut
|
c1293c28ac
|
fix(mini-program): 修复心愿实现页用户消息不显示 + 支持继续会话
1. runGeneration 补赋值 generationDisplayText,修复用户输入心愿不显示
2. 识别外部服务 DAILY_GENERATION_IN_PROGRESS 错误码,保存 session_id
3. 失败态新增'继续创作'按钮,调用 followup action=retry 恢复中断会话
4. 新增 resumeSession 方法,重置状态后恢复流式生成
|
2026-07-19 13:58:16 +08:00 |
|
peanut
|
d9a061a6bc
|
fix(deploy): 使用 shlex.quote 防止 curl URL 命令注入
|
2026-07-19 13:27:03 +08:00 |
|
peanut
|
e313086d9b
|
fix(deploy): Windows 平台 curl 验证使用 NUL 替代 /dev/null
Windows cmd.exe 不支持 /dev/null(那是 Unix 概念),
导致 curl 写入失败返回 exit code 23,验证误报为'访问异常'。
改为根据 sys.platform 动态选择 null 设备。
|
2026-07-19 13:25:01 +08:00 |
|
peanut
|
1b566d574c
|
fix(mini-program): ScriptView 模板闭合标签和 setupRecorder H5 兼容性
|
2026-07-19 12:56:38 +08:00 |
|
peanut
|
0190941df7
|
fix(mini-program): 短信验证码文案从 888888 改为 123456
|
2026-07-19 12:39:54 +08:00 |
|
peanut
|
34f443939e
|
feat(mini-program): ScriptView 多阶段状态机改造
|
2026-07-19 12:39:50 +08:00 |
|
peanut
|
b3a2f3a3d3
|
feat(mini-program): 澄清卡片组件
|
2026-07-19 12:36:11 +08:00 |
|
peanut
|
ab13ac258b
|
feat(mini-program): 短篇小说 SSE 流式服务
|
2026-07-19 12:36:06 +08:00 |
|
peanut
|
00f17d2f47
|
test(server): ShortNovelController 集成测试
|
2026-07-19 12:22:25 +08:00 |
|
peanut
|
c06b04869b
|
feat(server): 短篇小说 SSE 代理 Controller
|
2026-07-19 12:21:09 +08:00 |
|
peanut
|
02c58767bd
|
fix(server): SSE 代理错误消息不再暴露原始异常信息给客户端
|
2026-07-19 12:18:54 +08:00 |
|
peanut
|
7018f5780a
|
feat(server): 短篇小说服务 SSE 代理实现
|
2026-07-19 12:15:50 +08:00 |
|
peanut
|
031d824dd0
|
refactor(server): 抽取 saveNovelResult 方法供短篇小说服务复用
|
2026-07-19 12:08:54 +08:00 |
|
peanut
|
8f96239b56
|
style(server): 统一 ShortNovel 配置类和 DTO 的字段注释风格
|
2026-07-19 12:07:26 +08:00 |
|
peanut
|
21ce56c6da
|
feat(server): 短篇小说外部服务配置类和请求 DTO
|
2026-07-19 12:02:17 +08:00 |
|
peanut
|
ce244f9ad5
|
docs:短篇小说服务接口迁移实现计划
- 后端 SSE 代理层(Controller + Service + Config + DTO)
- 数据持久化 saveNovelResult 复用方法
- 前端 shortNovel.js SSE 流式服务
- ClarificationCard 组件 + ScriptView 状态机改造
- 短信验证码文案修复 + 端到端验收
|
2026-07-19 11:57:53 +08:00 |
|
peanut
|
99a3cb883e
|
docs:短篇小说服务接口迁移设计方案
- 后端 SSE 代理 + 前端多轮交互状态机改造
- 外部 short-novel-service 接口替代内部 AI Runtime
- 数据持久化改为小说完成后一次性保存
- 短信验证码修复(888888→123456)
|
2026-07-19 11:52:41 +08:00 |
|
peanut
|
2c778fabbb
|
refactor: ScriptView 删除 read 模式 + 兼容旧模式,统一对话流入口
|
2026-07-01 08:28:47 +08:00 |
|
peanut
|
6aeb5319e3
|
refactor: ScriptView 删除 read 模式,剧本入口直接进对话流
|
2026-07-01 07:59:48 +08:00 |
|
peanut
|
3bb6716e0f
|
docs: ScriptView 简化为纯对话流模式设计文档
|
2026-06-30 22:45:29 +08:00 |
|
peanut
|
86543df75d
|
fix: currentScriptContent 章节字段全空时用 plotJson.fullContent 作为 fallback
|
2026-06-30 07:45:20 +08:00 |
|
peanut
|
1073123360
|
fix: createMessage 补 userId 字段 + 使用 senderType/contentType
|
2026-06-29 23:52:37 +08:00 |
|
peanut
|
3829a3ef92
|
fix: createMessage 字段名改为 senderType/contentType 匹配后端 DTO
|
2026-06-29 23:36:26 +08:00 |
|
peanut
|
f45fee7cce
|
feat: chat 模式传 messageType/versionLabel/新 emits 给 MessageCard
|
2026-06-29 22:53:36 +08:00 |
|
peanut
|
a713e8823c
|
fix: loadMessages 对历史剧本 plotJson 自动初始化首条 AI 消息
|
2026-06-29 22:50:15 +08:00 |
|
peanut
|
4a7914eefe
|
fix: displayMessages 去掉根版本过滤(chat 模式显示首条 AI 剧本)
|
2026-06-29 22:47:37 +08:00 |
|
peanut
|
88ff280b78
|
feat: MessageCard 支持按 messageType 条件渲染 script/chat 专属按钮组
|
2026-06-29 22:45:36 +08:00 |
|
peanut
|
912fc42860
|
fix: 剧本查询时自动为历史剧本补建 conversation(兼容前端临时 ID)
|
2026-06-29 22:40:59 +08:00 |
|
peanut
|
7fb90299d1
|
docs: ScriptView 对话模式按钮完整修复设计文档
|
2026-06-29 22:34:27 +08:00 |
|
peanut
|
6ae721eb89
|
fix: 回滚 ScriptView 临时 conversationId 正则保护(误伤历史剧本)
|
2026-06-28 23:33:29 +08:00 |
|
peanut
|
808a590b8d
|
fix: nginx 根路径 301 重定向到 /emotion-museum/(修复首页 404)
|
2026-06-28 23:21:03 +08:00 |
|
peanut
|
19337b9371
|
fix: ScriptView loadMessages 对临时 conversationId 正则短路保护
|
2026-06-28 22:42:24 +08:00 |
|
peanut
|
e3eb1afbb0
|
fix: listByConversation 在 conversation 不存在时返回空列表而非抛异常
|
2026-06-28 22:40:13 +08:00 |
|
peanut
|
caaeb94477
|
feat: 增强 download-server-log.py 支持 latest/tail/errors/grep 子命令
|
2026-06-28 22:23:56 +08:00 |
|
peanut
|
bd3ccbd757
|
test: 新增 EpicScriptDialogueService 未登录场景测试
|
2026-06-28 18:49:10 +08:00 |
|
peanut
|
bf6f2797ad
|
feat: ScriptView 改造为对话中心查看/修改模式
- 新增 scriptChat.js 和 message.js 服务导入
- 新增 viewMode、scriptId、conversationId、currentVersionMessageId、
selectedVersionMessageId、messages、versions、chatInput 等状态
- 新增阅读模式:版本栏 + 剧本分章节展示 + 操作按钮
- 新增聊天模式:消息列表 + 聊天输入栏 + 对话修改功能
- 集成 createScriptWithDialogue、streamScriptChat、listMessagesByConversation、
listMessageVersions、switchVersion、deleteVersion 等后端 API
- 替换 runGeneration 使用 createScriptWithDialogue 创建剧本和对话
- 替换 openScriptChat 使用后端消息加载,不再依赖 localStorage
- 移除 localStorage 作为主要消息存储(persistResultMessages、
hydrateResultMessages、readStoredMessages、readScriptChatHistory 改为空操作)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
2026-06-28 18:41:44 +08:00 |
|
peanut
|
6109202a26
|
chore: request.js 导出 API_BASE_URL 和 getAuthHeader
|
2026-06-28 18:26:30 +08:00 |
|
peanut
|
3b9a8222de
|
feat: 新增 ScriptChatController 统一流式接口
|
2026-06-28 18:16:07 +08:00 |
|
peanut
|
8537c27015
|
feat: MessageController 新增 listByConversation、versions、deleteVersion
|
2026-06-28 18:09:07 +08:00 |
|