mirror of
https://github.com/Youzini-afk/ST-Bionic-Memory-Ecology.git
synced 2026-05-15 22:30:38 +08:00
fix: surface rerun preparation failures
This commit is contained in:
@@ -1187,6 +1187,30 @@ export async function onExtractionTaskController(runtime, options = {}) {
|
||||
context,
|
||||
);
|
||||
if (!rollbackResult?.success) {
|
||||
const rollbackError = String(
|
||||
rollbackResult?.error ||
|
||||
rollbackResult?.reason ||
|
||||
rollbackResult?.recoveryPath ||
|
||||
"回滚失败",
|
||||
).trim() || "回滚失败";
|
||||
setExtractionProgressStatus(
|
||||
runtime,
|
||||
"重新提取失败",
|
||||
rollbackError,
|
||||
"warning",
|
||||
{
|
||||
syncRuntime: true,
|
||||
toastKind: "",
|
||||
toastTitle: "ST-BME 重新提取",
|
||||
},
|
||||
);
|
||||
runtime.toastr?.warning?.(
|
||||
`重新提取未开始:${rollbackError}`,
|
||||
"ST-BME 重新提取",
|
||||
{
|
||||
timeOut: 4500,
|
||||
},
|
||||
);
|
||||
return {
|
||||
...rollbackResult,
|
||||
rerunPerformed: false,
|
||||
|
||||
Reference in New Issue
Block a user