Repository navigation
Conversation
Contributor
|
All contributors have signed the CLA ✍️ ✅ |
Contributor
Coverage Report for ./frontend
File CoverageNo changed files found. |
manzt
force-pushed
the
notebook-extensions/breakpoints
branch
from
December 3, 2026 01:10
74037f8 to
2fa5975
Compare
manzt
changed the base branch from
notebook-extensions/foundation
to
notebook-extensions/scope
December 3, 2026 01:11
Contributor
|
React Doctor skipped this pull request — it changed no React files. Reviewed by React Doctor for commit |
manzt
force-pushed
the
notebook-extensions/breakpoints
branch
from
December 3, 2026 19:07
2fa5975 to
29fa141
Compare
manzt
force-pushed
the
notebook-extensions/breakpoints
branch
from
December 3, 2026 19:11
29fa141 to
0740a2a
Compare
manzt
force-pushed
the
notebook-extensions/breakpoints
branch
from
December 3, 2026 19:14
0740a2a to
c8fe665
Compare
manzt
marked this pull request as ready for review
December 3, 2026 19:16
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The legacy breakpoint route allows non-positive lines to corrupt retained state and returns HTTP 500 instead of the intended status codes for expected HostError refusals.
2 open issues
What changed in this PR
Adds marimo.breakpoints as the first notebook extension, making breakpoint state server-owned and shared across connected editors.
Changes:
- Defines the extension contract and generated TypeScript/Python bindings.
- Publishes breakpoint updates and snapshots, with empty state for new runtimes.
- Delegates the legacy route to the extension and adds integration coverage.
| File | Description |
|---|---|
| tests/_server/host/test_host_websocket.py | Tests kernel dispatch and filtered stream replay. |
| tests/_server/host/test_host_index.py | Checks advertised breakpoint operation. |
| tests/_server/host/test_host_bridge.py | Updates expected runtime attachment events. |
| tests/_server/host/test_host_breakpoints.py | Tests sharing, permissions, reconnects, and clearing. |
| tests/_server/host/test_host_api.py | Tests rejection without a live runtime. |
| packages/host-protocol/src/marimo/breakpoints.ts | Defines breakpoint records and replacement operation. |
| packages/host-protocol/src/marimo.ts | Registers the extension. |
| packages/client/src/protocol.ts | Adds generated breakpoint schemas and events. |
| packages/client/src/operations.ts | Adds generated operation metadata. |
| packages/client/src/extensions.ts | Exposes the client replacement method. |
| packages/client/src/__tests__/protocol.test.ts | Tests breakpoint decoding and validation. |
| packages/client/src/__tests__/notebook-client.test.ts | Tests request routing and serialization. |
| packages/client/README.md | Documents breakpoint extension access. |
| marimo/_server/host/stream_options.py | Allows filtering breakpoint events. |
| marimo/_server/host/notebook_api.py | Routes and authorizes extension requests. |
| marimo/_server/host/index.py | Advertises extensions for untitled notebooks. |
| marimo/_server/host/__init__.py | Includes extension operations in host capabilities. |
| marimo/_server/extensions/notebook.py | Installs and dispatches the breakpoint handler. |
| marimo/_server/extensions/breakpoints/extension.py | Manages runtime-scoped breakpoint state. |
| marimo/_server/extensions/breakpoints/_generated.py | Adds generated Python extension bindings. |
| marimo/_server/extensions/breakpoints/__init__.py | Introduces the breakpoint package. |
| marimo/_server/extensions/api.py | Collects extension operations and dispatch. |
| marimo/_server/api/endpoints/execution.py | Delegates legacy breakpoint requests. |
| marimo/_core/handlers.py | Extracts reusable mutation dispatch. |
Review effort: Balanced
manzt
force-pushed
the
notebook-extensions/breakpoints
branch
from
December 3, 2026 19:56
c8fe665 to
61d17bd
Compare
manzt
force-pushed
the
notebook-extensions/breakpoints
branch
from
December 3, 2026 20:52
61d17bd to
192e2fd
Compare
manzt
force-pushed
the
notebook-extensions/breakpoints
branch
from
December 3, 2026 20:56
192e2fd to
0603afe
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This PR adds
marimo.breakpoints, the first notebook extension. When a notebook has a runtime, the host owns one breakpoint set for that runtime. Edits to the set reach connected editors through the notebook stream. An editor that connects later gets the current set in its snapshot. A new runtime starts with an empty set.Extension definition
breakpoints.tsdefinesreplaceas aPUToperation. The request maps cell IDs to one-based line numbers and replaces the full breakpoint set. The response contains the accepted set and its runtime ID. Extension definitionGenerated TypeScript client
The client generator uses the operation ID to expose
notebook.extensions.breakpoints.replace. Generated client bindingGenerated Python bindings
The extension definition generates the Python call and handler signature. Generated Python bindings
Breakpoint handler
extension.pyimplementsapi.Handlers. The host opens one handler per notebook and binds it to each runtime as it attaches. ImplementationThe existing editor route delegates to this handler. #12226 switches the debugger gutter to the generated client method and removes the legacy route and notification.