fix: 历史任务恢复按钮在非进行中状态均可显示 - #4062
Merged
Merged
Conversation
扩展恢复按钮显示条件,支持 error、skipped、cancel 等非进行中任务状态。
Contributor
PR CI 汇总状态:全部通过
由 pull_request test workflow 自动生成 |
hjhke
approved these changes
Jul 28, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
该 PR 扩展了 AI 历史任务/当前任务在“非进行中”状态下的恢复(继续)按钮展示逻辑,使任务处于 error / skipped / cancel 等状态时也能显示“继续/恢复”入口,符合“历史任务恢复按钮在非进行中状态均可显示”的目标。
Changes:
- 在任务聊天页底部操作区:为
skipped、cancel状态补齐“继续任务”按钮显示分支。 - 在历史任务树:将“继续/恢复”按钮对当前任务的展示条件从仅
error放宽为“非inProgress且非 loading”。
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| app/renderer/src/main/src/pages/ai-re-act/aiReActTaskChat/AIReActTaskChat.tsx | 在 footer extra 的状态分支中加入 skipped/cancel,与 error 一并可触发“recover”动作入口。 |
| app/renderer/src/main/src/pages/ai-agent/chatTemplate/historyTaskTree/HistoryTaskTree.tsx | 放宽当前 coordinator 的“继续/恢复”按钮展示条件为 status !== inProgress(并结合 loading 状态控制)。 |
hubin4826
approved these changes
Jul 28, 2026
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.
扩展恢复按钮显示条件,支持 error、skipped、cancel 等非进行中任务状态。
关联后端:yaklang/yaklang#4771