Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(docs): label deferred discussion runs as waiting to retry (MUL-10066) (#11411)

Bohan Jiangaaefb60c583e
diff --git a/packages/views/docs/components/doc-thread-runs.test.tsx b/packages/views/docs/components/doc-thread-runs.test.tsx
index a6dbcd5c14..83ff52a7b4 100644
--- a/packages/views/docs/components/doc-thread-runs.test.tsx
+++ b/packages/views/docs/components/doc-thread-runs.test.tsx
@@ -61,8 +61,8 @@ it("shows how a failed run ended, with no way to stop it", () => {
expect(screen.queryByRole("button", { name: "Stop" })).toBeNull();
});
-it("shows a retry waiting for the runtime as stoppable", () => {
+it("shows a pending retry as stoppable", () => {
mount(run("deferred"));
- expect(screen.getByText("Waiting for the runtime to come back online")).toBeTruthy();
+ expect(screen.getByText("Waiting to retry")).toBeTruthy();
expect(screen.getByRole("button", { name: "Stop" })).toBeTruthy();
});
diff --git a/packages/views/docs/components/doc-thread-runs.tsx b/packages/views/docs/components/doc-thread-runs.tsx
index f826ec0bcb..39e4df3732 100644
--- a/packages/views/docs/components/doc-thread-runs.tsx
+++ b/packages/views/docs/components/doc-thread-runs.tsx
@@ -14,8 +14,9 @@ import { useStatusLabel } from "../../issues/components/task-run-labels";
import { TerminateTaskConfirmDialog } from "../../issues/components/terminate-task-confirm-dialog";
import { useT } from "../../i18n";
-// Deferred is a retry waiting for the agent's runtime to reconnect: it has
-// not run yet and can still be stopped.
+// Deferred is an automatic retry that has not started yet (waiting for the
+// runtime to reconnect, or a short backoff after a provider network error):
+// it can still be stopped.
const ACTIVE_STATUSES = new Set(["queued", "dispatched", "waiting_local_directory", "running", "deferred"]);
export function isActiveDocRun(run: DocTaskRun): boolean {
@@ -52,7 +53,7 @@ export function DocThreadRun({ docId, run }: { docId: string; run: DocTaskRun })
const active = isActiveDocRun(run);
const outcome = { status: run.status, error: run.error, failure_reason: run.failureReason, cancelled_by: run.cancelledBy };
const label = run.status === "deferred"
- ? tDocs(($) => $.comments.run_waiting_runtime)
+ ? tDocs(($) => $.comments.run_waiting_retry)
: active ? status : (runOutcomeLabel(outcome, tAgents) ?? status);
const error = !active && run.error?.trim() ? redactSecrets(run.error.trim()) : "";
const stopping = cancel.isPending || cancel.isSuccess;
diff --git a/packages/views/locales/en/docs.json b/packages/views/locales/en/docs.json
index e6dd4ecb2c..622d0a0c40 100644
--- a/packages/views/locales/en/docs.json
+++ b/packages/views/locales/en/docs.json
@@ -99,6 +99,6 @@
"delete": "Could not delete the comment",
"resolve": "Could not update the comment"
},
- "run_waiting_runtime": "Waiting for the runtime to come back online"
+ "run_waiting_retry": "Waiting to retry"
}
}
diff --git a/packages/views/locales/es/docs.json b/packages/views/locales/es/docs.json
index 4fff488b8a..794dcd8781 100644
--- a/packages/views/locales/es/docs.json
+++ b/packages/views/locales/es/docs.json
@@ -99,6 +99,6 @@
"delete": "No se pudo eliminar el comentario",
"resolve": "No se pudo actualizar el comentario"
},
- "run_waiting_runtime": "Esperando a que el runtime vuelva a estar en línea"
+ "run_waiting_retry": "Esperando para reintentar"
}
}
diff --git a/packages/views/locales/fr/docs.json b/packages/views/locales/fr/docs.json
index 4a8781d29c..f4d16519a6 100644
--- a/packages/views/locales/fr/docs.json
+++ b/packages/views/locales/fr/docs.json
@@ -99,6 +99,6 @@
"delete": "Impossible de supprimer le commentaire",
"resolve": "Impossible de mettre à jour le commentaire"
},
- "run_waiting_runtime": "En attente du retour en ligne du runtime"
+ "run_waiting_retry": "En attente d'une nouvelle tentative"
}
}
diff --git a/packages/views/locales/ja/docs.json b/packages/views/locales/ja/docs.json
index 3f0d7d80f5..481ac61f03 100644
--- a/packages/views/locales/ja/docs.json
+++ b/packages/views/locales/ja/docs.json
@@ -98,6 +98,6 @@
"delete": "コメントを削除できませんでした",
"resolve": "コメントを更新できませんでした"
},
- "run_waiting_runtime": "ランタイムのオンライン復帰を待機中"
+ "run_waiting_retry": "再試行を待機中"
}
}
diff --git a/packages/views/locales/ko/docs.json b/packages/views/locales/ko/docs.json
index 3c22d7989b..54cdc6e315 100644
--- a/packages/views/locales/ko/docs.json
+++ b/packages/views/locales/ko/docs.json
@@ -98,6 +98,6 @@
"delete": "댓글을 삭제하지 못했습니다",
"resolve": "댓글을 업데이트할 수 없습니다"
},
- "run_waiting_runtime": "런타임이 다시 온라인이 되기를 기다리는 중"
+ "run_waiting_retry": "재시도 대기 중"
}
}
diff --git a/packages/views/locales/ru/docs.json b/packages/views/locales/ru/docs.json
index 57952584b9..9a9bbd455a 100644
--- a/packages/views/locales/ru/docs.json
+++ b/packages/views/locales/ru/docs.json
@@ -101,6 +101,6 @@
"delete": "Не удалось удалить комментарий",
"resolve": "Не удалось обновить комментарий"
},
- "run_waiting_runtime": "Ожидание, пока среда выполнения снова будет в сети"
+ "run_waiting_retry": "Ожидание повторной попытки"
}
}
diff --git a/packages/views/locales/zh-Hans/docs.json b/packages/views/locales/zh-Hans/docs.json
index d329a73078..d1d441ec8c 100644
--- a/packages/views/locales/zh-Hans/docs.json
+++ b/packages/views/locales/zh-Hans/docs.json
@@ -98,6 +98,6 @@
"delete": "评论删除失败",
"resolve": "无法更新评论状态"
},
- "run_waiting_runtime": "等待运行环境重新上线"
+ "run_waiting_retry": "等待重试"
}
}
diff --git a/packages/views/locales/zh-Hant/docs.json b/packages/views/locales/zh-Hant/docs.json
index 672dfe7139..da48737dcb 100644
--- a/packages/views/locales/zh-Hant/docs.json
+++ b/packages/views/locales/zh-Hant/docs.json
@@ -98,6 +98,6 @@
"delete": "評論刪除失敗",
"resolve": "無法更新評論"
},
- "run_waiting_runtime": "等待執行環境重新上線"
+ "run_waiting_retry": "等待重試"
}
}