Repository navigation
Conversation
本地修复,未 push(用户 2026-12-02 晚口径:「先本地修复一下,别 push」)。
1. 挂完 TR-1 直接跳 DS-3 + 助手说「DS 的前置是 DP-6」
根因同一个:stageplan.stage_index() 用 setdefault 建 {代号: 行},同名代号留下
资源包里的第一条——老活动 act1dp 也有 DS-1 / DS-2(「午间休息!」),于是
flow / chain 全按老活动算:DP-1~DP-6 被当成 DS 的前置,预检排序把 DS-3 排到
最前。现在同名代号取活动开始时间最晚的那条(同 resources.stage_by_code),
并在交给 MAA 前用 scatter.sort_codes() 按推图顺序再兜一层。
2. 按了暂停,作业集还在一直翻 DS-3
MAA 的多作业链会把「这一份被 AsstStop 停掉」当成「这份作业不行」,换下一份
继续点;_wait_run 只看 eng.wait() 会一直陪跑。现在看到 eng.stopped 就补一刀
AsstStop 并立刻按「没跑完」返回,上层不再换作业重挂,finally 的 close()
(AsstDestroy)把任务掐掉。
3. 顺带修掉一个埋着的坑
run_core 自己导航前调 eng.stop(),把 stopped 永久置 True,_retry_failed 以为
「用户按了停止」,翻车后从不换作业(11-22「2 星不换作业」的一半原因)。
新增 Engine.soft_stop():只发 AsstStop、不置 stopped,内部导航 / 换段 /
单关超时一律用它。
提示词:用户说「暂停 / 先停一下」必须真的调 stop_run;DS 没有 DP 前置(别把老
活动同代号关当前置)。
冒烟:新增 B94(同名代号/排序/停止),95 项全绿。
Co-authored-by: HuiParu <171644868+HuiParu@users.noreply.github.com>
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.
修复 agent 导入作业集乱序问题(同名代号取最新活动 + 交 MAA 前按推图顺序重排),修复暂停问题(多作业链停不下来 / 内部叫停污染 stopped 标志)。