From 615adf6e4fd8c38a4784090d3a3a13f28449ce53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20K=C5=82osko?= Date: Wed, 12 Jun 2024 18:23:13 +0700 Subject: [PATCH] Always send an initial smart cell definitions report --- lib/livebook/runtime/erl_dist/runtime_server.ex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/livebook/runtime/erl_dist/runtime_server.ex b/lib/livebook/runtime/erl_dist/runtime_server.ex index 286f02e04..2cb358a90 100644 --- a/lib/livebook/runtime/erl_dist/runtime_server.ex +++ b/lib/livebook/runtime/erl_dist/runtime_server.ex @@ -366,7 +366,9 @@ defmodule Livebook.Runtime.ErlDist.RuntimeServer do smart_cell_supervisor: nil, smart_cell_gl: nil, smart_cells: %{}, - smart_cell_definitions: [], + # Always send the first smart cell definitions report, in case + # there are extra definitions + smart_cell_definitions: nil, smart_cell_definitions_module: Keyword.get(opts, :smart_cell_definitions_module, Kino.SmartCell), extra_smart_cell_definitions: Keyword.get(opts, :extra_smart_cell_definitions, []),