Conversation
Contributor
|
这个咋关闭了 |
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.
背景与关联
AI 调用工具或执行命令时,停止按钮原先要等后台中断及清理结束才恢复,用户容易误以为点击无效。本次让点击立即结束当前轮次的运行展示,并允许提交下一条消息。
关联 Issue:N/A。
主要改动
docs/specs/feature-008-instant-chat-stop.md功能说明。验证
pnpm --filter @uselexora/lexora-buddy type-check通过。pnpm --filter @uselexora/lexora-buddy exec vitest run --project=unit src/modules/tasks/state/runs/__tests__/useChatRunSync.spec.ts src/modules/tasks/state/runs/__tests__/useChatTurnExecution.spec.ts src/modules/tasks/model/transcript/__tests__/chatStreamingMessage.spec.ts --maxWorkers=2,3 个测试文件、69 项测试通过。覆盖立即取消展示、保留部分回答、忽略迟到增量、失败恢复、避免重复取消,以及取消完成后才启动新提交消息。git diff --check通过。兼容与风险
不改变数据格式、配置、授权规则或后台取消协议。界面立即停止不代表操作系统中的进程已经退出;后台仍按现有策略中断、释放资源。新消息等待旧执行释放后启动。希望重点检查展示快照与后台终态的对齐,以及取消期间新消息的队列衔接。
界面变更
点击停止后,停止按钮立即恢复为发送按钮,保留点击时已经生成的内容,不再等待后台清理。没有新增界面布局;尚未附截图或录屏。