fix(chat): instant 失败不重试,并支持停止当前回复 - #699
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
用户主动触发 instant 回复后,模型接口报错曾进入后台任务的重试流程,余额不足也可能等十多分钟才提示失败。此次将 instant 的生成重试次数设为 0,并让本地与云端回复都能从原生成入口停止。
停止后保留已上屏内容,流式预览保存为普通文字;未显示内容、迟到推送和补收结果不再进入聊天。不新增“已停止”消息。取消信号传到模型请求和 MCP 等工具,终止可取消的请求并阻止后续动作;已经完成的外部副作用不回滚。按任务 UUID 保存停止记录,并校正云端 self_log,防止下一轮把丢弃内容当成已经说过。
@rei-standard/amsg-server@2.6.0-next.32与@rei-standard/amsg-shared@0.4.0-next.11,同步 Worker bundle 和设置页版本检查。上游:功能 PR #90、发版 PR #91。scripts/chat-stop-qa-server.mjs、test/fixtures/chat-stop.html。验证:
pnpm vitest run:6,039 项通过。tsc --noEmit仍被仓库原有 chibi 素材脚本的 17 项错误阻挡,本次没有新增类型错误。用户自部署的 Worker 需要更新 bundle 才能取消正在执行的云端请求。