Q44: queued runs re-check their task and are superseded when it changed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-08 07:59:14 -04:00
1 parent 5698e61e5a
commit 8b521ef5d9
10 files changed
+206 -19

No files matched your search

+2
View File
@@ -29,6 +29,8 @@ export const zh: Record<string, string> = {
"Integrations": "集成密钥",
"Document": "文档",
"Writing": "写作方式",
"superseded": "已被取代",
"Why it did not run": "未运行的原因",
"Done tasks do not run": "已完成的任务不能再运行",
"A session is already queued or running": "已有会话在排队或运行中",
"Conversational (house style)": "日常沟通(公司文风)",
+1
View File
@@ -344,5 +344,6 @@ function runStateLabel(state: string): string {
if (state === "running") return t("Running");
if (state === "completed") return t("Done");
if (state === "failed") return t("Failed");
if (state === "superseded") return t("Superseded");
return state;
}
+7
View File
@@ -138,6 +138,12 @@ function RunDetail({ run, tasks, agents, providers, providerRequests }: {
<MetaLabel>{t("Context")}</MetaLabel><div className="mono" style={{ fontSize: 12, overflow: "hidden", textOverflow: "ellipsis" }}>{run.executionContextId}</div>
</div>
{run.state === "superseded" && run.errorMessage && (
<div className="card" style={{ padding: 16, marginBottom: 16 }}>
<div className="section-label" style={{ marginBottom: 8 }}>{t("Why it did not run")}</div>
<div style={{ fontSize: 14, color: "var(--text-1)", whiteSpace: "pre-wrap", lineHeight: 1.5 }}>{run.errorMessage}</div>
</div>
)}
{run.state === "failed" && run.errorMessage && (
<div className="card" style={{ padding: 16, marginBottom: 16, borderColor: "var(--red)" }}>
<div className="section-label" style={{ color: "var(--red)", marginBottom: 8 }}>{t("Error")}</div>
@@ -197,6 +203,7 @@ function runLabel(state: string): string {
if (state === "running") return t("Running");
if (state === "completed") return t("Done");
if (state === "failed") return t("Failed");
if (state === "superseded") return t("Superseded");
return state;
}
@@ -27,6 +27,7 @@ export function prettyRunState(state: string): string {
if (state === "running") return t("running");
if (state === "completed") return t("completed");
if (state === "failed") return t("failed");
if (state === "superseded") return t("superseded");
return state.replaceAll("_", " ");
}