@marimo-team/islands 0.25.3-dev420 → 0.25.3-dev421

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -129,7 +129,7 @@ function N(e) {
129
129
  }
130
130
  //#endregion
131
131
  //#region src/components/editor/boundary/ErrorBoundary.tsx
132
- var P = (0, C.lazy)(() => import("./feedback-button-CNlw0PFL.js").then((e) => ({ default: e.FeedbackModal }))), F = (e) => {
132
+ var P = (0, C.lazy)(() => import("./feedback-button-C4LhwxMV.js").then((e) => ({ default: e.FeedbackModal }))), F = (e) => {
133
133
  let t = (0, S.c)(2), n;
134
134
  return t[0] === e.children ? n = t[1] : (n = /* @__PURE__ */ (0, k.jsx)(E, {
135
135
  FallbackComponent: I,
@@ -14,7 +14,7 @@ function y() {
14
14
  return e.warn("Failed to get version from mount config"), null;
15
15
  }
16
16
  }
17
- var b = y() || "0.25.3-dev420", x = a(b), S = a(!0);
17
+ var b = y() || "0.25.3-dev421", x = a(b), S = a(!0);
18
18
  a(null);
19
19
  //#endregion
20
20
  //#region src/core/wasm/state.ts
@@ -33,7 +33,7 @@ import { o as ba } from "./dist-DNkrY12t.js";
33
33
  import { a as xa, i as Sa, n as Ca, o as wa, r as Ta, t as Ea } from "./dialog-B8vU2hHC.js";
34
34
  import { t as Da } from "./useAsyncData-P5-Oovhq.js";
35
35
  import { n as W, t as G } from "./objectWithoutPropertiesLoose-BRDcTsfB.js";
36
- import { t as Oa } from "./ErrorBoundary-OkPCZwqd.js";
36
+ import { t as Oa } from "./ErrorBoundary-DqSz8xOz.js";
37
37
  import { W as ka, n as Aa } from "./vega-loader.browser-Co9gYE8Z.js";
38
38
  import { a as ja, n as Ma, r as Na, t as Pa } from "./loader-Bin_dutt.js";
39
39
  import { t as Fa } from "./useIframeCapabilities-HTZiVlGV.js";
@@ -2,7 +2,7 @@ import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
2
2
  import { t } from "./react-Bgs_wQh3.js";
3
3
  import { t as n } from "./react-dom-DdqGVp5N.js";
4
4
  import { c as r, l as i, u as a } from "./data-grid-types-DIX_pCco.js";
5
- import { a as o, i as s, n as c, r as l } from "./glide-data-editor-SsDU5p2r.js";
5
+ import { a as o, i as s, n as c, r as l } from "./glide-data-editor-TFCYuayo.js";
6
6
  //#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.1_57c124ac5a994dbbf13fd11838cf9ba9/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid-overlay-editor/data-grid-overlay-editor-style.js
7
7
  var u = /* @__PURE__ */ e(t(), 1), d = /* @__PURE__ */ e(n(), 1), f = /*#__PURE__*/ o("div")({
8
8
  name: "DataGridOverlayEditorStyle",
@@ -4,13 +4,13 @@ import { t as r } from "./react-Bgs_wQh3.js";
4
4
  import { t as i } from "./compiler-runtime-C5KHtL5D.js";
5
5
  import { t as a } from "./copy-icon-CeOpTht4.js";
6
6
  import { D as o, E as s, F as c, G as l, N as u, Yt as d, en as f, i as p, n as m } from "./error-entries-BNzYy3Ci.js";
7
- import { n as h, t as ee } from "./globals-BET0Lqsh.js";
7
+ import { n as h, t as ee } from "./globals-PhvMXKoh.js";
8
8
  import { r as g } from "./assertNever-ChGm2jYv.js";
9
9
  import { t as _ } from "./jsx-runtime-D8btoEHk.js";
10
10
  import { Lt as v, m as y, xt as te } from "./use-restore-focus-CTa7IRP6.js";
11
11
  import { a as ne, i as re, n as ie, r as ae } from "./dialog-B8vU2hHC.js";
12
12
  import { t as oe } from "./useAsyncData-P5-Oovhq.js";
13
- import { t as se } from "./code-visibility-Cjmof3go.js";
13
+ import { t as se } from "./code-visibility-0CDbZv0k.js";
14
14
  //#region src/components/ui/skeleton.tsx
15
15
  var b = /* @__PURE__ */ e(r(), 1), x = i(), S = _(), ce = (e) => {
16
16
  let n = (0, x.c)(8), r, i;
@@ -14,7 +14,7 @@ import { t as F } from "./jsx-runtime-D8btoEHk.js";
14
14
  import { d as ae, r as I } from "./use-restore-focus-CTa7IRP6.js";
15
15
  import { t as oe } from "./useEvent-BoN7U38T.js";
16
16
  import { n as L, t as se } from "./objectWithoutPropertiesLoose-BRDcTsfB.js";
17
- import { t as ce } from "./ErrorBoundary-OkPCZwqd.js";
17
+ import { t as ce } from "./ErrorBoundary-DqSz8xOz.js";
18
18
  import { A as le, C as ue, D as de, E as fe, F as pe, I as me, L as he, M as ge, N as R, O as z, P as _e, R as ve, S as ye, T as be, _ as xe, a as Se, b as B, c as Ce, d as we, f as V, g as Te, h as Ee, i as De, j as H, k as Oe, l as ke, m as Ae, n as je, o as Me, p as Ne, r as U, s as Pe, t as Fe, u as Ie, v as Le, w as Re, x as ze, y as Be, z as Ve } from "./data-grid-types-DIX_pCco.js";
19
19
  //#region ../node_modules/.pnpm/@emotion+memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
20
20
  function He(e) {
@@ -7061,7 +7061,7 @@ function ds(e, t, n, r, i) {
7061
7061
  }
7062
7062
  //#endregion
7063
7063
  //#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.1_57c124ac5a994dbbf13fd11838cf9ba9/node_modules/@glideapps/glide-data-grid/dist/esm/data-editor/data-editor.js
7064
- var fs = /* @__PURE__ */ e(Tr(), 1), ps = /* @__PURE__ */ e(kr(), 1), ms = W.lazy(async () => await import("./data-grid-overlay-editor-CJ4s7ulW.js")), hs = 0;
7064
+ var fs = /* @__PURE__ */ e(Tr(), 1), ps = /* @__PURE__ */ e(kr(), 1), ms = W.lazy(async () => await import("./data-grid-overlay-editor-BAh3yqTI.js")), hs = 0;
7065
7065
  function gs(e) {
7066
7066
  return (0, fs.default)((0, ps.default)((0, ps.default)(e).filter((e) => e.span !== void 0).map((e) => (0, ao.default)((e.span?.[0] ?? 0) + 1, (e.span?.[1] ?? 0) + 1))));
7067
7067
  }
@@ -9284,7 +9284,7 @@ function Ys(e, t, n, r, i) {
9284
9284
  }
9285
9285
  //#endregion
9286
9286
  //#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.1_57c124ac5a994dbbf13fd11838cf9ba9/node_modules/@glideapps/glide-data-grid/dist/esm/cells/number-cell.js
9287
- var Xs = W.lazy(async () => await import("./number-overlay-editor-CQB7RHTl.js")), Zs = {
9287
+ var Xs = W.lazy(async () => await import("./number-overlay-editor-hX4zsJ2n.js")), Zs = {
9288
9288
  getAccessibilityString: (e) => e.data?.toString() ?? "",
9289
9289
  kind: U.Number,
9290
9290
  needsHover: (e) => e.hoverEffect === !0,
@@ -1,6 +1,6 @@
1
1
  import { h as e } from "./tooltip-DsQZP310.js";
2
2
  import { xt as t } from "./use-restore-focus-CTa7IRP6.js";
3
- import { r as n } from "./code-visibility-Cjmof3go.js";
3
+ import { r as n } from "./code-visibility-0CDbZv0k.js";
4
4
  var r = e("triangle-alert", [
5
5
  ["path", {
6
6
  d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
package/dist/main.js CHANGED
@@ -6,7 +6,7 @@ import { i as x, n as S, r as C, t as w } from "./copy-icon-CeOpTht4.js";
6
6
  import { B as T, Bt as E, Dt as D, E as O, F as k, Ft as A, Ht as j, I as M, It as N, L as P, Lt as F, M as I, O as L, Ot as R, P as z, Pt as B, R as ee, Rt as te, St as ne, Ut as re, X as ie, Y as ae, _ as oe, _t as se, a as ce, at as le, b as ue, c as de, ct as fe, gt as pe, i as me, it as he, j as ge, jt as _e, lt as ve, n as ye, nt as be, o as xe, pt as Se, q as Ce, rt as we, st as Te, ut as Ee, vt as De, xt as Oe, yt as ke, z as Ae, zt as je } from "./html-to-image-CO_NVoKY.js";
7
7
  import { a as Me, f as Ne, h as Pe, i as Fe, m as Ie, n as Le, o as Re, r as ze, t as Be } from "./tooltip-DsQZP310.js";
8
8
  import { D as Ve, E as He, S as Ue, T as We, _ as Ge, a as Ke, c as qe, d as Je, f as Ye, g as Xe, h as Ze, i as Qe, l as $e, m as et, n as tt, o as nt, p as rt, r as it, s as at, t as ot, u as st, v as ct, w as lt, x as ut, y as dt } from "./spec-BWpscSQi.js";
9
- import { $t as ft, A as pt, At as mt, B as ht, Bt as gt, C as _t, Cn as vt, Ct as yt, D as bt, Dn as xt, Dt as St, E as Ct, En as wt, Et as Tt, F as Et, Ft as Dt, G as Ot, Gt as kt, H as At, Ht as jt, I as Mt, It as Nt, J as Pt, Jt as Ft, K as It, Kt as Lt, L as Rt, Lt as zt, M as Bt, Mt as Vt, N as Ht, Nt as Ut, O as Wt, On as Gt, Ot as Kt, P as qt, Pt as Jt, Qt as Yt, R as Xt, Rt as Zt, S as Qt, Sn as $t, T as en, Tn as tn, Tt as nn, U as rn, Ut as an, V as on, Vt as sn, W as cn, Wt as ln, X as un, Xt as dn, Y as fn, Yt as pn, Z as mn, Zt as hn, _ as gn, _n, _t as vn, an as yn, at as bn, b as xn, bn as Sn, bt as Cn, c as wn, cn as Tn, ct as En, d as Dn, dn as On, dt as kn, en as An, f as jn, fn as Mn, ft as Nn, g as Pn, gn as Fn, gt as In, h as Ln, hn as Rn, ht as zn, in as Bn, it as Vn, j as Hn, jt as Un, k as Wn, kt as Gn, ln as Kn, lt as qn, m as Jn, mn as Yn, mt as Xn, nn as Zn, nt as Qn, on as $n, ot as er, p as tr, pn as nr, pt as rr, q as ir, qt as ar, r as or, rn as sr, rt as cr, sn as lr, st as ur, t as dr, tn as fr, tt as pr, u as mr, un as hr, ut as gr, v as _r, vn as vr, vt as yr, w as br, wn as xr, wt as Sr, x as Cr, xn as wr, y as Tr, yt as Er, z as Dr, zt as Or } from "./common-IWr3ajS6.js";
9
+ import { $t as ft, A as pt, At as mt, B as ht, Bt as gt, C as _t, Cn as vt, Ct as yt, D as bt, Dn as xt, Dt as St, E as Ct, En as wt, Et as Tt, F as Et, Ft as Dt, G as Ot, Gt as kt, H as At, Ht as jt, I as Mt, It as Nt, J as Pt, Jt as Ft, K as It, Kt as Lt, L as Rt, Lt as zt, M as Bt, Mt as Vt, N as Ht, Nt as Ut, O as Wt, On as Gt, Ot as Kt, P as qt, Pt as Jt, Qt as Yt, R as Xt, Rt as Zt, S as Qt, Sn as $t, T as en, Tn as tn, Tt as nn, U as rn, Ut as an, V as on, Vt as sn, W as cn, Wt as ln, X as un, Xt as dn, Y as fn, Yt as pn, Z as mn, Zt as hn, _ as gn, _n, _t as vn, an as yn, at as bn, b as xn, bn as Sn, bt as Cn, c as wn, cn as Tn, ct as En, d as Dn, dn as On, dt as kn, en as An, f as jn, fn as Mn, ft as Nn, g as Pn, gn as Fn, gt as In, h as Ln, hn as Rn, ht as zn, in as Bn, it as Vn, j as Hn, jt as Un, k as Wn, kt as Gn, ln as Kn, lt as qn, m as Jn, mn as Yn, mt as Xn, nn as Zn, nt as Qn, on as $n, ot as er, p as tr, pn as nr, pt as rr, q as ir, qt as ar, r as or, rn as sr, rt as cr, sn as lr, st as ur, t as dr, tn as fr, tt as pr, u as mr, un as hr, ut as gr, v as _r, vn as vr, vt as yr, w as br, wn as xr, wt as Sr, x as Cr, xn as wr, y as Tr, yt as Er, z as Dr, zt as Or } from "./common-cA8LiBo4.js";
10
10
  import { a as kr, n as Ar, s as jr, t as Mr } from "./useLifecycle-Bw0JtmoB.js";
11
11
  import { t as Nr } from "./check-BHRB6N0I.js";
12
12
  import { A as Pr, C as Fr, D as Ir, M as Lr, O as Rr, a as zr, c as Br, d as Vr, i as Hr, k as Ur, l as Wr, n as Gr, o as Kr, r as qr, s as Jr, t as Yr, w as Xr, x as Zr } from "./select-Brvb-RwP.js";
@@ -16,7 +16,7 @@ import { At as zi, B as Bi, Dt as Vi, E as Hi, Ft as Ui, G as Wi, Ht as Gi, J as
16
16
  import { a as Da, d as Oa, i as ka, n as Aa, o as ja, r as Ma, s as Na, t as Pa, u as Fa } from "./process-output-CznNfcKe.js";
17
17
  import { t as Ia } from "./pencil-DWRFEz2B.js";
18
18
  import { a as La, c as Ra, d as za, f as Ba, i as Va, l as Ha, r as Ua } from "./glide-utils-BzjESEmr.js";
19
- import { n as Wa, t as Ga } from "./globals-BET0Lqsh.js";
19
+ import { n as Wa, t as Ga } from "./globals-PhvMXKoh.js";
20
20
  import { a as Ka, i as qa, n as Ja, r as Ya, s as Xa, t as Za } from "./assertNever-ChGm2jYv.js";
21
21
  import { t as Qa } from "./react-dom-DdqGVp5N.js";
22
22
  import { t as $a } from "./jsx-runtime-D8btoEHk.js";
@@ -40,10 +40,10 @@ import { n as Xs, t as Zs } from "./esm-Bwp_FHP0.js";
40
40
  import { p as Qs } from "./dist-DpYpG8Yc.js";
41
41
  import { t as $s } from "./useAsyncData-P5-Oovhq.js";
42
42
  import { n as ec, r as tc, t as nc } from "./useDeepCompareMemoize-B2RNcTmn.js";
43
- import { t as rc } from "./ErrorBoundary-OkPCZwqd.js";
43
+ import { t as rc } from "./ErrorBoundary-DqSz8xOz.js";
44
44
  import { G as ic, W as ac } from "./vega-loader.browser-Co9gYE8Z.js";
45
45
  import { a as oc, n as sc } from "./loader-Bin_dutt.js";
46
- import { a as cc, c as lc, i as uc, l as dc, o as fc, s as pc, t as mc } from "./code-visibility-Cjmof3go.js";
46
+ import { a as cc, c as lc, i as uc, l as dc, o as fc, s as pc, t as mc } from "./code-visibility-0CDbZv0k.js";
47
47
  import { t as hc } from "./esm-B9n0caHs.js";
48
48
  //#region ../node_modules/.pnpm/iconify-icon@2.3.0/node_modules/iconify-icon/dist/iconify-icon.mjs
49
49
  var gc = Object.freeze({
@@ -12958,7 +12958,7 @@ function pO(e, t) {
12958
12958
  }
12959
12959
  //#endregion
12960
12960
  //#region src/plugins/impl/DataEditorPlugin.tsx
12961
- var mO = J.lazy(() => import("./glide-data-editor-SsDU5p2r.js").then((e) => e.t)), hO = YE("marimo-data-editor", { cssStyles: [vD, yD] }).withData(W({
12961
+ var mO = J.lazy(() => import("./glide-data-editor-TFCYuayo.js").then((e) => e.t)), hO = YE("marimo-data-editor", { cssStyles: [vD, yD] }).withData(W({
12962
12962
  initialValue: W({ edits: G(W({
12963
12963
  rowIdx: K(),
12964
12964
  columnId: U(),
@@ -32704,7 +32704,7 @@ function _U(e) {
32704
32704
  }
32705
32705
  //#endregion
32706
32706
  //#region src/components/editor/renderers/slides-layout/slides-layout.tsx
32707
- var vU = J.lazy(() => import("./reveal-component-C1RY2hz7.js")), yU = (e) => {
32707
+ var vU = J.lazy(() => import("./reveal-component-CoIJxJu-.js")), yU = (e) => {
32708
32708
  let t = (0, X.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o = _o(Rs), s = a === "read" || o, c = _o(la) > 1, [l, u] = (0, J.useState)(null), d;
32709
32709
  t[0] !== i || t[1] !== n ? (d = hz(i, n), t[0] = i, t[1] = n, t[2] = d) : d = t[2];
32710
32710
  let { slideCells: f, skippedIds: p, noOutputIds: m, slideTypes: h, startCellIndex: g } = d, _;
@@ -34359,6 +34359,7 @@ function uG(e, t, n, r) {
34359
34359
  case "completion-result":
34360
34360
  case "reload":
34361
34361
  case "focus-cell":
34362
+ case "breakpoints":
34362
34363
  case "active-line":
34363
34364
  case "variables":
34364
34365
  case "variable-values":
@@ -1,6 +1,6 @@
1
1
  import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
2
2
  import { t } from "./react-Bgs_wQh3.js";
3
- import { a as n } from "./glide-data-editor-SsDU5p2r.js";
3
+ import { a as n } from "./glide-data-editor-TFCYuayo.js";
4
4
  //#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.17.21_marked@15.0.12_react-dom@19.3.1_57c124ac5a994dbbf13fd11838cf9ba9/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid-overlay-editor/private/number-overlay-editor-style.js
5
5
  var r = /* @__PURE__ */ e(t()), i = /*#__PURE__*/ n("div")({
6
6
  name: "NumberOverlayEditorStyle",
@@ -3,7 +3,7 @@ import { g as t, h as n, i as r, m as i, t as a } from "./button-qQhINE7z.js";
3
3
  import { t as o } from "./react-Bgs_wQh3.js";
4
4
  import { t as s } from "./compiler-runtime-C5KHtL5D.js";
5
5
  import { h as c, t as l } from "./tooltip-DsQZP310.js";
6
- import { $ as u, Q as d, Sn as f, an as p, et as m, i as h, l as g, n as _, on as v, r as y, t as b, u as x, vn as S, yn as C } from "./common-IWr3ajS6.js";
6
+ import { $ as u, Q as d, Sn as f, an as p, et as m, i as h, l as g, n as _, on as v, r as y, t as b, u as x, vn as S, yn as C } from "./common-cA8LiBo4.js";
7
7
  import { M as w } from "./select-Brvb-RwP.js";
8
8
  import { X as T } from "./dropdown-menu-DzhAnAhr.js";
9
9
  import { Nt as E } from "./error-entries-BNzYy3Ci.js";
@@ -11,7 +11,7 @@ import { t as D } from "./jsx-runtime-D8btoEHk.js";
11
11
  import { Bt as O, Lt as k, f as A, i as ee } from "./use-restore-focus-CTa7IRP6.js";
12
12
  import { t as j } from "./useEvent-BoN7U38T.js";
13
13
  import { o as te } from "./static-state-BhCfPRoz.js";
14
- import { n as ne, t as re } from "./code-visibility-Cjmof3go.js";
14
+ import { n as ne, t as re } from "./code-visibility-0CDbZv0k.js";
15
15
  /* empty css */
16
16
  var M = c("sticky-note", [["path", {
17
17
  d: "M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marimo-team/islands",
3
- "version": "0.25.3-dev420",
3
+ "version": "0.25.3-dev421",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -11,7 +11,6 @@ import {
11
11
  createActiveLineInfoAtom,
12
12
  createCellBreakpointsAtom,
13
13
  createDebuggerLineAtom,
14
- resyncBreakpoints,
15
14
  setActiveLine,
16
15
  toggleBreakpoint,
17
16
  } from "../debugger-state";
@@ -90,25 +89,6 @@ describe("debugger-state", () => {
90
89
  });
91
90
  });
92
91
 
93
- describe("resyncBreakpoints", () => {
94
- it("re-sends the current breakpoint set", () => {
95
- toggleBreakpoint(cell1, 4);
96
- vi.clearAllMocks();
97
-
98
- resyncBreakpoints();
99
-
100
- expect(mockRequestClient.sendSetBreakpoints).toHaveBeenCalledWith({
101
- breakpoints: { [cell1]: [4] },
102
- });
103
- });
104
-
105
- it("does not send when there are no breakpoints", () => {
106
- resyncBreakpoints();
107
-
108
- expect(mockRequestClient.sendSetBreakpoints).not.toHaveBeenCalled();
109
- });
110
- });
111
-
112
92
  describe("createCellBreakpointsAtom", () => {
113
93
  it("returns the empty set for a cell with no breakpoints", () => {
114
94
  const atom = createCellBreakpointsAtom(cell1);
@@ -14,9 +14,8 @@ import { Logger } from "@/utils/Logger";
14
14
  * currently executing (driven by `active-line` notifications), plus when
15
15
  * the frontend first saw execution on that line. Only one cell runs at a
16
16
  * time, so a single global value suffices.
17
- * - `breakpointsAtom` holds the user's gutter breakpoints, session-only. It is
18
- * the source of truth; mutations are mirrored to the kernel via
19
- * `sendSetBreakpoints`.
17
+ * - `breakpointsAtom` mirrors the session's breakpoint notifications, with
18
+ * optimistic gutter edits sent through `sendSetBreakpoints`.
20
19
  */
21
20
 
22
21
  export interface ActiveLine {
@@ -105,14 +104,6 @@ export function clearCellBreakpoints(cellId: CellId): void {
105
104
  sendBreakpoints(next);
106
105
  }
107
106
 
108
- /** Re-push the current breakpoints to a freshly started kernel, whose `MarimoPdb` starts empty. */
109
- export function resyncBreakpoints(): void {
110
- const current = store.get(breakpointsAtom);
111
- if (current.size > 0) {
112
- sendBreakpoints(current);
113
- }
114
- }
115
-
116
107
  /** Toggle a breakpoint at `(cellId, line)` and sync the full set to the kernel. */
117
108
  export function toggleBreakpoint(cellId: CellId, line: number): void {
118
109
  const prev = store.get(breakpointsAtom);
@@ -186,6 +186,7 @@ function handleNotification(
186
186
  case "completion-result":
187
187
  case "reload":
188
188
  case "focus-cell":
189
+ case "breakpoints":
189
190
  case "active-line":
190
191
  case "variables":
191
192
  case "variable-values":
@@ -41,6 +41,7 @@ import { cellId } from "@/__tests__/branded";
41
41
  import { alertAtom, getPackageAlert } from "@/core/alerts/state";
42
42
  import { stagedAICellsAtom } from "@/core/ai/staged-cells";
43
43
  import { notebookAtom } from "@/core/cells/cells";
44
+ import { breakpointsAtom } from "@/core/codemirror/cells/debugger-state";
44
45
  import { AppConfigSchema } from "@/core/config/config-schema";
45
46
  import { ConnectionNotice } from "@/components/editor/alerts/connection-notice";
46
47
  import { kernelStartupErrorAtom } from "@/core/errors/state";
@@ -456,6 +457,29 @@ it("does not mark the session connected on kernel-ready alone", async () => {
456
457
  expect(store.get(connectionAtom).state).toBe(ConnectionState.CONNECTING);
457
458
  });
458
459
 
460
+ it("replaces gutter breakpoints with the session's replayed state", async () => {
461
+ const store = createStore();
462
+ const staleCell = cellId("stale");
463
+ const currentCell = cellId("current");
464
+ store.set(breakpointsAtom, new Map([[staleCell, new Set([1])]]));
465
+ const fake = withTransport();
466
+ vi.mocked(useRuntimeManager).mockReturnValue(makeRuntimeManager());
467
+ renderConnectionHook(store);
468
+ await started();
469
+ const conn = connection(fake);
470
+ await act(async () => conn.open());
471
+
472
+ act(() =>
473
+ conn.send({ op: "breakpoints", breakpoints: { [currentCell]: [2, 4] } }),
474
+ );
475
+ expect(store.get(breakpointsAtom)).toEqual(
476
+ new Map([[currentCell, new Set([2, 4])]]),
477
+ );
478
+
479
+ act(() => conn.send({ op: "breakpoints", breakpoints: {} }));
480
+ expect(store.get(breakpointsAtom)).toEqual(new Map());
481
+ });
482
+
459
483
  describe("connection notice", () => {
460
484
  beforeEach(() => vi.useFakeTimers());
461
485
  afterEach(() => vi.useRealTimers());
@@ -11,6 +11,7 @@ import {
11
11
  } from "@/core/cells/cells";
12
12
  import { useStagedAICellsActions } from "@/core/ai/staged-cells";
13
13
  import { followDocument } from "@/core/cells/document";
14
+ import type { CellId } from "@/core/cells/ids";
14
15
  import { AUTOCOMPLETER } from "@/core/codemirror/completion/Autocompleter";
15
16
  import { createDocumentModel } from "@/core/notebook/document";
16
17
  import type { NotificationPayload } from "@/core/kernel/messages";
@@ -24,13 +25,14 @@ import { logNever } from "@/utils/assertNever";
24
25
  import { prettyError } from "@/utils/errors";
25
26
  import { safeExtractSetUIElementMessageBuffers } from "@/utils/json/base64";
26
27
  import { Logger } from "@/utils/Logger";
28
+ import { Objects } from "@/utils/objects";
27
29
  import { reloadSafe } from "@/utils/reload-safe";
28
30
  import { useAlertActions } from "../alerts/state";
29
31
  import { cacheInfoAtom } from "../cache/requests";
30
32
  import { useRunsActions } from "../cells/runs";
31
33
  import { focusAndScrollCellOutputIntoView } from "../cells/scrollCellIntoView";
32
34
  import {
33
- resyncBreakpoints,
35
+ breakpointsAtom,
34
36
  setActiveLine,
35
37
  } from "../codemirror/cells/debugger-state";
36
38
  import { notebookCells } from "../cells/utils";
@@ -156,11 +158,7 @@ export function useNotebookSession(opts: { sessionId: SessionId }) {
156
158
  (msg.data.stable_session_id as StableSessionId | null | undefined) ??
157
159
  null,
158
160
  );
159
- // A freshly started kernel has no breakpoints of its own; re-push
160
- // the client's set so they still apply, and clear the stale
161
- // highlighted line from the previous kernel instance.
162
161
  setActiveLine(null);
163
- resyncBreakpoints();
164
162
  return;
165
163
  }
166
164
 
@@ -351,6 +349,16 @@ export function useNotebookSession(opts: { sessionId: SessionId }) {
351
349
  case "focus-cell":
352
350
  focusAndScrollCellOutputIntoView(msg.data.cell_id);
353
351
  return;
352
+ case "breakpoints":
353
+ store.set(
354
+ breakpointsAtom,
355
+ new Map(
356
+ Objects.entries<CellId, number[]>(msg.data.breakpoints).map(
357
+ ([cellId, lines]) => [cellId, new Set(lines)],
358
+ ),
359
+ ),
360
+ );
361
+ return;
354
362
  case "active-line":
355
363
  setActiveLine(
356
364
  msg.data.line == null