Skip to content

Conversation

@manzt
Copy link
Contributor

@manzt manzt commented Jan 26, 2026

Fixes #7972
Fixes marimo-team/marimo-lsp#176

The input channel for Python's input() had its Push/Pull directions inverted between the host and kernel sides of the ZeroMQ connection. The host should Push input to the kernel, and the kernel should Pull to receive it.

This caused input() to fail with "PushQueue does not support get operations" when using marimo edit --sandbox <directory> or the VS Code extension.

Fixes #7972
Fixes marimo-team/marimo-lsp#176

The input channel for Python's `input()` had its Push/Pull directions
inverted between the host and kernel sides of the ZeroMQ connection. The
host should Push input to the kernel, and the kernel should Pull to
receive it.

This caused `input()` to fail with "PushQueue does not support get
operations" when using `marimo edit --sandbox <directory>` or the VS
Code extension.
@vercel
Copy link

vercel bot commented Jan 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
marimo-docs Ready Ready Preview, Comment Jan 26, 2026 3:46pm

Request Review

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes IPC sandbox-mode input() by correcting the ZeroMQ Push/Pull direction for the input channel so the host sends input to the kernel and the kernel receives it.

Changes:

  • Swap input channel direction in Connection.create() / Connection.connect() (host Push, kernel Pull).
  • Add a regression test verifying host→kernel input flow for the IPC connection.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
marimo/_ipc/connection.py Corrects the input channel socket direction to match intended host→kernel data flow.
tests/_session/managers/test_ipc.py Adds a regression test covering the corrected input-channel direction and updates ZMQ test gating.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@manzt manzt merged commit 9e9879d into main Jan 26, 2026
30 of 45 checks passed
@manzt manzt deleted the push-ymlxsuqvwusx branch January 26, 2026 15:57
@github-actions
Copy link

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.19.7-dev4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

3 participants