Skip to content

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

Go

MUL-3420: fix(runtimes): clarify custom runtime deletion

YOMXXX9d053c57f940
diff --git a/packages/views/locales/en/runtimes.json b/packages/views/locales/en/runtimes.json
index dc1e18bd52..c0ab3f6869 100644
--- a/packages/views/locales/en/runtimes.json
+++ b/packages/views/locales/en/runtimes.json
@@ -112,6 +112,7 @@
"visibility_toast_failed": "Failed to update visibility",
"delete_dialog": {
"self_heal_notice": "This runtime is managed by a running local daemon. Deleting it will succeed, but the daemon will re-register a fresh runtime within seconds — stop the daemon process first to remove it permanently.",
+ "profile_backed_notice": "This runtime was registered from a custom runtime profile. Deleting it removes only the current runtime instance; a running daemon can register it again while the profile remains. Delete the custom runtime profile from Custom runtimes to remove it permanently.",
"light": {
"title": "Delete Runtime?",
"description": "Are you sure you want to delete \"{{name}}\"? This action cannot be undone.",
diff --git a/packages/views/locales/ja/runtimes.json b/packages/views/locales/ja/runtimes.json
index 4bad233080..e0c93ee2c2 100644
--- a/packages/views/locales/ja/runtimes.json
+++ b/packages/views/locales/ja/runtimes.json
@@ -107,6 +107,7 @@
"visibility_toast_failed": "公開範囲を更新できませんでした",
"delete_dialog": {
"self_heal_notice": "このランタイムは実行中のローカルデーモンに管理されています。削除自体は成功しますが、デーモンプロセスを停止しない限り、数秒以内に新しいランタイムとして再登録されます。完全に削除するには先にデーモンを停止してください。",
+ "profile_backed_notice": "このランタイムはカスタムランタイムプロファイルから登録されています。ここで削除しても現在のランタイムインスタンスだけが削除され、プロファイルが残っている間は実行中のデーモンが再登録できます。完全に削除するには、Custom runtimes からカスタムランタイムプロファイルを削除してください。",
"light": {
"title": "ランタイムを削除しますか?",
"description": "「{{name}}」を削除してもよろしいですか? この操作は元に戻せません。",
diff --git a/packages/views/locales/ko/runtimes.json b/packages/views/locales/ko/runtimes.json
index 950ff8d57b..a0d8918044 100644
--- a/packages/views/locales/ko/runtimes.json
+++ b/packages/views/locales/ko/runtimes.json
@@ -112,6 +112,7 @@
"visibility_toast_failed": "공개 범위를 업데이트하지 못했습니다",
"delete_dialog": {
"self_heal_notice": "이 런타임은 실행 중인 로컬 데몬이 관리합니다. 삭제는 성공하지만, 데몬 프로세스를 멈추지 않으면 몇 초 안에 새 런타임이 다시 등록됩니다. 완전히 제거하려면 먼저 데몬을 중지하세요.",
+ "profile_backed_notice": "이 런타임은 사용자 지정 런타임 프로필에서 등록되었습니다. 여기서 삭제하면 현재 런타임 인스턴스만 제거되며, 프로필이 남아 있는 동안 실행 중인 데몬이 다시 등록할 수 있습니다. 완전히 제거하려면 Custom runtimes에서 사용자 지정 런타임 프로필을 삭제하세요.",
"light": {
"title": "런타임을 삭제할까요?",
"description": "\"{{name}}\"을(를) 삭제할까요? 이 작업은 되돌릴 수 없습니다.",
diff --git a/packages/views/locales/zh-Hans/runtimes.json b/packages/views/locales/zh-Hans/runtimes.json
index 4509ef67e0..4e5b435eab 100644
--- a/packages/views/locales/zh-Hans/runtimes.json
+++ b/packages/views/locales/zh-Hans/runtimes.json
@@ -107,6 +107,7 @@
"visibility_toast_failed": "更新可见性失败",
"delete_dialog": {
"self_heal_notice": "该运行时由正在运行的本地守护进程托管。删除会成功,但守护进程会在数秒内重新注册一个新的运行时——若想彻底移除,请先停止守护进程。",
+ "profile_backed_notice": "该运行时来自自定义运行时配置。删除它只会移除当前运行时实例;只要配置仍存在,运行中的守护进程就可以再次注册它。若要彻底移除,请在“自定义运行时”中删除对应配置。",
"light": {
"title": "删除运行时?",
"description": "确定要删除「{{name}}」吗?此操作无法撤销。",
diff --git a/packages/views/runtimes/components/delete-runtime-dialog.test.tsx b/packages/views/runtimes/components/delete-runtime-dialog.test.tsx
index 1e3566f7da..33fb884320 100644
--- a/packages/views/runtimes/components/delete-runtime-dialog.test.tsx
+++ b/packages/views/runtimes/components/delete-runtime-dialog.test.tsx
@@ -334,6 +334,41 @@ describe("DeleteRuntimeDialog", () => {
).toBeInTheDocument();
});
+ it("explains that deleting a profile-backed runtime only removes the current instance", () => {
+ renderDialog({
+ runtime: makeRuntime({
+ runtime_mode: "local",
+ status: "online",
+ profile_id: "profile-1",
+ }),
+ cachedAgents: [],
+ });
+
+ expect(
+ screen.getByText(/registered from a custom runtime profile/i),
+ ).toBeInTheDocument();
+ expect(
+ screen.getByText(/delete the custom runtime profile/i),
+ ).toBeInTheDocument();
+ expect(
+ screen.queryByText(/managed by a running local daemon/i),
+ ).not.toBeInTheDocument();
+ });
+
+ it("shows the profile-backed runtime explanation in cascade mode", () => {
+ renderDialog({
+ runtime: makeRuntime({ profile_id: "profile-1" }),
+ cachedAgents: [makeAgent("a-1", { name: "Alpha" })],
+ });
+
+ expect(
+ screen.getByText(/registered from a custom runtime profile/i),
+ ).toBeInTheDocument();
+ expect(
+ screen.getByText(/Archive 1 agent and delete this Runtime/),
+ ).toBeInTheDocument();
+ });
+
it("renders the self-heal banner in cascade mode for an online local runtime with bound agents", () => {
renderDialog({
runtime: makeRuntime({ runtime_mode: "local", status: "online" }),
diff --git a/packages/views/runtimes/components/delete-runtime-dialog.tsx b/packages/views/runtimes/components/delete-runtime-dialog.tsx
index bc3220bdfc..82cdfd635c 100644
--- a/packages/views/runtimes/components/delete-runtime-dialog.tsx
+++ b/packages/views/runtimes/components/delete-runtime-dialog.tsx
@@ -227,16 +227,25 @@ export function DeleteRuntimeDialog({
}
// ---------------------------------------------------------------------------
-// Self-heal notice — informational banner shown when the runtime is a live
-// local daemon that re-registers itself within seconds of a server-side
-// delete. Replaces the old "block the affordance and toast on attempt"
-// dance (MUL-3352): the owner now sees the warning *before* confirming
-// rather than discovering it only after they've been told they cannot
-// proceed.
+// Persistence notice — informational banner shown when deleting the runtime
+// row may not permanently remove the runnable backend. Profile-backed custom
+// runtimes win over the generic local-daemon warning: stopping the daemon is
+// not sufficient when the workspace-level profile still exists.
// ---------------------------------------------------------------------------
-function SelfHealNotice({ runtime }: { runtime: AgentRuntime }) {
+function DeletePersistenceNotice({ runtime }: { runtime: AgentRuntime }) {
const { t } = useT("runtimes");
+ if (runtime.profile_id) {
+ return (
+ <div
+ role="status"
+ className="mt-3 flex items-start gap-2 rounded-md border border-warning/40 bg-warning/5 px-3 py-2 text-xs"
+ >
+ <Info className="mt-0.5 size-3.5 shrink-0 text-warning" />
+ <span>{t(($) => $.detail.delete_dialog.profile_backed_notice)}</span>
+ </div>
+ );
+ }
if (!isSelfHealingRuntime(runtime)) return null;
return (
<div
@@ -278,7 +287,7 @@ function LightBody({
name: runtime.name,
})}
</p>
- <SelfHealNotice runtime={runtime} />
+ <DeletePersistenceNotice runtime={runtime} />
</div>
<div className="border-t bg-muted/25 px-5 py-3">
<div className="flex flex-col-reverse gap-2 sm:flex-row sm:justify-end">
@@ -354,7 +363,7 @@ function CascadeBody({
})}
</p>
- <SelfHealNotice runtime={runtime} />
+ <DeletePersistenceNotice runtime={runtime} />
{/* Destructive banner — keep the user's eye on the irreversible
half before they scan the agent table. */}