Skip to content

Conversation

@jship
Copy link
Contributor

@jship jship commented Jan 14, 2026

In the Python stdio client's on-success, the with-repl-or-warn call was accidentally within the display-repl-status call (display-repl-status is only meant to take a single status arg). Looking at the previous generated Lua, this wasn't causing a problem as the with-repl-or-warn block was still getting called. These changes are more to avoid future confusion and mixups.

@russtoku
Copy link
Contributor

Good call!

I did some archeology on the Python client and it appears that the call to display-repl-status in the function mapped to :on-success was incorrect from the initial implementation of the Python client.

:on-success
(fn []
  (display-repl-status :started
    (with-repl-or-warn
      (fn [repl]
        ...

@russtoku
Copy link
Contributor

The Python client with your changes still appears to work. I was able evaluate all of the non-async code in dev/python/sandbox.py.

(prep-code M.initialise-repl-code)
(fn [msgs] nil)
nil)))))
nil))))
Copy link
Owner

Choose a reason for hiding this comment

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

Good catch!

@Olical Olical merged commit eaa241d into Olical:main Jan 18, 2026
6 checks passed
@jship jship deleted the python-on-success-init branch January 18, 2026 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants