This website requires JavaScript.
Explore
Forum
Help
Register
Sign In
Search…
Search repos…
xhgit
/
webup-cloud
Watch
1
Star
1
Fork
1
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
AI 开发支持确认后手动停止任务
#4
Merged
xhgit
merged 1 commits from
codex/confirm-stop-ai-task
into
main
2026-11-08 00:37:24 +08:00
Conversation
0
Commits
1
Files Changed
4
+132
-14
xhgit
commented
2026-11-07 23:08:42 +08:00
Owner
Copy link
Copy source
人工发现的 Bug
原入口用「取消」表示终止任务,用户确认后没有清晰的「正在停止」状态。后台在停止请求等待当前调用结束期间,另一条暂停请求还能覆盖停止请求。临近结束的调用也可能把已受理的停止请求写成完成。
修复内容
为排队中、执行中和已暂停的任务提供「停止任务」入口和页面内二次确认,解释当前调用结算、未用预算释放和生成文件保留。
停止期间隐藏冲突操作,显示等待当前调用结束。后端去除重复请求,保留先前受理的停止,并在结算时处理停止和完成的竞态。金额未确认时进入核算流程。
验证结果
浏览器验证返回和 Esc 都不发送请求,只有确认发送一次,并显示「正在停止」到「已停止」。
PostgreSQL 和 Redis 环境下 133 项测试通过,包含重复停止、暂停竞争、结束竞争、预算释放和费用未确认情形。前端构建通过。
## 人工发现的 Bug - 原入口用「取消」表示终止任务,用户确认后没有清晰的「正在停止」状态。后台在停止请求等待当前调用结束期间,另一条暂停请求还能覆盖停止请求。临近结束的调用也可能把已受理的停止请求写成完成。 ## 修复内容 - 为排队中、执行中和已暂停的任务提供「停止任务」入口和页面内二次确认,解释当前调用结算、未用预算释放和生成文件保留。 - 停止期间隐藏冲突操作,显示等待当前调用结束。后端去除重复请求,保留先前受理的停止,并在结算时处理停止和完成的竞态。金额未确认时进入核算流程。 ## 验证结果 - 浏览器验证返回和 Esc 都不发送请求,只有确认发送一次,并显示「正在停止」到「已停止」。 - PostgreSQL 和 Redis 环境下 133 项测试通过,包含重复停止、暂停竞争、结束竞争、预算释放和费用未确认情形。前端构建通过。
xhgit
added 1 commit
2026-11-07 23:08:43 +08:00
Confirm manual task stops and protect cancellation state
Verify control plane / verify (push)
Canceled after 0s
Details
Verify control plane / verify (pull_request)
Canceled after 0s
Details
fb82821dc7
xhgit
merged commit
43b5e24453
into
main
2026-11-08 00:37:24 +08:00
xhgit
deleted branch
codex/confirm-stop-ai-task
2026-11-08 00:37:24 +08:00
Sign in
to join this conversation.
Reviewers
No Reviewers
Labels
No items
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
Clear assignees
xhgit
(itxiaohui)
No Assignees
1 Participants
Notifications
Subscribe
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xhgit/webup-cloud#4
Write
Preview
Loading…
x
Add
Cancel
Save
Reference in new issue
Repository
xhgit/webup-cloud
Title
Body
Create Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues.
Learn more about blocking a user.
User to block:
Optional note:
The note is not visible to the blocked user.
Cancel
Block
人工发现的 Bug
修复内容
验证结果