Skip to content

Conversation

@dby-tmwctw
Copy link
Contributor

In the current "dispatch_shell", if we fail the "should_handle" check during execution, we will not send any message to ioPub indicating shell status. For a client waiting for an "idle" status update, this could block the state machine and cause a hang command. This PR fixes the bug by publishing an "idle" status when the "should_handle" check fails.

@jasongrout
Copy link
Member

CC @ianthomas23 for review, hopefully this is pretty easy and straightforward.

@dby-tmwctw dby-tmwctw requested a review from jasongrout May 15, 2025 17:32
Copy link
Collaborator

@ianthomas23 ianthomas23 left a comment

Choose a reason for hiding this comment

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

Thanks @dby-tmwctw, this looks sensible to me.

@ianthomas23 ianthomas23 merged commit 7603443 into ipython:6.x May 16, 2025
31 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants