Loading routines...
) : error ? ({error instanceof Error ? error.message : "Failed to load routines."}
) : workspaceRoutines.length === 0 ? (No routines use workspace-specific variables yet.
Loading workspace…
; if (workspaceQuery.error) { return ({workspaceQuery.error instanceof Error ? workspaceQuery.error.message : "Failed to load workspace"}
); } if (!workspace || !form || !initialState) return null; const canRunWorkspaceCommands = Boolean(workspace.cwd); const canStartRuntimeServices = Boolean(effectiveRuntimeConfig) && canRunWorkspaceCommands; const runtimeControlSections = buildWorkspaceRuntimeControlSections({ runtimeConfig: effectiveRuntimeConfig, runtimeServices: workspace.runtimeServices ?? [], canStartServices: canStartRuntimeServices, canRunJobs: canRunWorkspaceCommands, }); const pendingRuntimeAction = controlRuntimeServices.isPending ? controlRuntimeServices.variables ?? null : null; const pluginSlotContext = { companyId: workspace.companyId, projectId: workspace.projectId, entityId: workspace.id, entityType: "execution_workspace" as const, }; const activePluginTab = workspacePluginTabItems.find((item) => item.value === activeTab) ?? null; if (workspaceId && activeTab === null) { return{runtimeActionErrorMessage}
: null} {!runtimeActionErrorMessage && runtimeActionMessage ?{runtimeActionMessage}
: null}{runtimeConfigSource === "execution_workspace" ? "This execution workspace currently overrides the project workspace runtime config." : runtimeConfigSource === "project_workspace" ? "This execution workspace is inheriting the project workspace runtime config." : "No runtime config is currently defined on this execution workspace or its project workspace."}
Override the inherited workspace command model only when this execution workspace truly needs different service or job behavior.
{errorMessage}
: null} {!errorMessage && !isDirty ?No unsaved changes.
: null}Loading workspace operations…
) : workspaceOperationsQuery.error ? ({workspaceOperationsQuery.error instanceof Error ? workspaceOperationsQuery.error.message : "Failed to load workspace operations."}
) : workspaceOperationsQuery.data && workspaceOperationsQuery.data.length > 0 ? (No workspace operations have been recorded yet.
)}