展示 INI 面板 shell workflow session readiness

This commit is contained in:
2026-06-16 06:52:38 +08:00
parent 68ff2fb5d6
commit eb50e6b455
6 changed files with 120 additions and 14 deletions

View File

@@ -1427,6 +1427,15 @@ export function createIniPanelShellSessionHandoffWorkflowSummary({
missingStatusFields: [],
},
} = {}) {
const sessionReadiness = readonlyStatusResult?.readonlyStatus?.sessionReadiness ?? null;
const sessionReadinessMissing = Array.isArray(sessionReadiness?.missing)
? [...sessionReadiness.missing]
: [];
const sessionReadinessValue = sessionReadiness
? `${sessionReadiness.ready ? "ready" : "blocked"}${
sessionReadinessMissing.length > 0 ? `: ${sessionReadinessMissing.join(", ")}` : ""
}`
: "missing";
const blockingReasons = [];
if (mountWorkflow?.ready !== true) {
blockingReasons.push(`mount:${mountWorkflow?.phase ?? "blocked"}`);
@@ -1472,6 +1481,13 @@ export function createIniPanelShellSessionHandoffWorkflowSummary({
? [...readonlyStatusResult.missingStatusFields]
: [],
},
sessionReadiness: sessionReadiness
? {
phase: sessionReadiness.phase ?? (sessionReadiness.ready ? "ready" : "blocked"),
ready: sessionReadiness.ready === true,
missing: sessionReadinessMissing,
}
: null,
blockingReasons,
rows: [
{
@@ -1489,6 +1505,11 @@ export function createIniPanelShellSessionHandoffWorkflowSummary({
label: "Readonly status workflow",
value: readonlyStatusResult?.statusLine ?? "missing",
},
{
id: "session-readiness",
label: "Session readiness",
value: sessionReadinessValue,
},
{
id: "readonly-status-missing-fields",
label: "Readonly missing fields",