Repository navigation
Conversation
回补 AUTO-MAS-Project#1965 到 5.9 正式版。 (cherry picked from commit abb36a9)
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
停止任务只确认会话已关闭。原生配置保存和超时收尾统一提示实际可确认的状态。
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 77507ffb4a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| throw new Error(response.message || t(keys.stopFailed)) | ||
| } | ||
| clearSession(keepDiscardFrames) | ||
| clearSession() |
There was a problem hiding this comment.
Retain discard subscriptions while teardown frames arrive
When a save's HTTP stop response arrives before its WebSocket teardown frames, this call now immediately removes the discard subscription. MAA's ScriptConfig.final_task() can reject the entire edit with structure, unreadable, or not_written; the delayed discard frame is then ignored, so the user loses the discard/recovery dialog and sees only the generic “saving could not be confirmed” toast. Replaying a stop response followed by a discard frame 10 ms later shows the parent displaying the warning and this revision dropping it. Preserve the result subscriptions through teardown rather than removing the previous grace handling; Scripts.vue::stopConfigSession has the same regression.
Useful? React with 👍 / 👎.
总体结论:修改后合并
[结果反馈 · P2] 停止请求一返回,就会丢掉晚到的配置丢弃原因(阻断合并) 账号设置会话和脚本列表都在停止返回后解绑通知。两条消息走的是不同连接;如果 MAA 的“本次改动已丢弃”晚一点到,原来会告诉用户是配置结构变化、文件读不了还是没写出,现在只剩一句“未确认”。先把界面关掉也没关系,保留旧任务 ID 的结果订阅到有明确结果或到期,让晚到的具体原因还能弹出来;别改回猜成功。补一条停止先返回、丢弃随后到的测试,并确认不串到下一次会话。 不误报成功,也别把丢弃原因丢了。dot酱 |
停止响应后短暂保留会话通知。没有写回结果时仍只提示未确认。
e89a7e7
into
AUTO-MAS-Project:release/v5.9-stable
摘要
验证
8ac95b267。yarn test src/composables/useNativeGuiSession.test.ts通过 3 项,覆盖停止响应无保存凭据和稍晚到达的写回失败通知。yarn typecheck通过。