From 7f56b7c0de40544cdb56c906c86d2907983d7e59 Mon Sep 17 00:00:00 2001 From: Dotta Date: Tue, 25 Aug 2026 19:32:34 +0000 Subject: [PATCH] fix(ui): reconcile worktree run settings card Co-Authored-By: Paperclip --- ui/src/pages/InstanceExperimentalSettings.tsx | 59 +------------------ 1 file changed, 1 insertion(+), 58 deletions(-) diff --git a/ui/src/pages/InstanceExperimentalSettings.tsx b/ui/src/pages/InstanceExperimentalSettings.tsx index 167a0b91bd4..6045cd3c5a1 100644 --- a/ui/src/pages/InstanceExperimentalSettings.tsx +++ b/ui/src/pages/InstanceExperimentalSettings.tsx @@ -12,7 +12,7 @@ import type { import { experimentalSettingKey } from "@paperclipai/shared"; import { instanceSettingsApi } from "@/api/instanceSettings"; import { useHiddenSettings } from "@/hooks/useHiddenSettings"; -import { getWorktreeInstanceId, isWorktreeRuntime } from "../lib/worktree-branding"; +import { isWorktreeRuntime } from "../lib/worktree-branding"; import { WorktreeRunEngineBanner } from "@/components/WorktreeRunEngineBanner"; import { useBreadcrumbs } from "../context/BreadcrumbContext"; import { queryKeys } from "../lib/queryKeys"; @@ -707,63 +707,6 @@ export function InstanceExperimentalSettings() { ariaLabel="Toggle managed environment only experimental setting" /> - {inWorktree ? ( - -
-
-
-
-

Run tasks in this worktree

- {worktreeRunExecutionManaged ? : null} -
-

- This is an isolated git-worktree preview instance. Turn this on to let the scheduler execute runs - here. Only tasks created after enabling will run automatically — copied/pre-existing tasks stay - parked. Toggling off and on resets the cutoff. -

-
- { - if (worktreeRunExecutionManaged) return; - toggleMutation.mutate({ enableWorktreeRunExecution: checked }); - }} - disabled={toggleMutation.isPending || worktreeRunExecutionManaged} - aria-label="Toggle worktree run execution setting" - /> -
- - {worktreeRunExecutionState.kind === "armed" ? ( -
- - - Running tasks created after{" "} - - {formatActivationTimestamp(worktreeRunExecutionState.activatedAt)} - - . - -
- ) : null} - - {worktreeRunExecutionState.kind === "fail_closed" ? ( -
- -
-

Execution is suppressed — effectively off.

-

- {worktreeRunExecutionState.reason === "instance_mismatch" - ? "This setting was armed in a different instance and copied here, so no tasks run automatically." - : "This setting is missing its activation cutoff, so no tasks run automatically."}{" "} - Toggle it off and back on to arm execution for tasks created here. -

-
-
- ) : null} -
-
- ) : null} -