Manual REPL restart from the TUI or REPL #16
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
kahliburke/Kaimon.jl#16
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Is there a way to restart a REPL session while preserving its session ID — either from the TUI or from the Julia REPL itself?
The use cases where this would help:
I notice the session overview already has a Shutdown button — a Restart button alongside it would address this nicely.
A public
Gate.restart()function would also be useful for triggering this directly from the Julia REPL:The key difference from the MCP path is that the 0.3s sleep (which exists to let the ZMQ
:okreply flush beforeexecvptears down the sockets) is not needed here, so cleanup can happen immediately.In the meantime, the following can be pasted directly into the Julia REPL:
This calls
_exec_restartdirectly and preserves the session ID so the TUI reconnects automatically, but relies on a private internal function.Happy to discuss further, thanks!
Current version for testing: v1.1 branch, commit:
ac23906 Use full session ID for TCP sessions in short_key (2 days ago)@haakon-e Likely yes do you want to put that in as a PR, or just use it as a starting point?
Also 1.1 really will come eventually I just have been busy.
@haakon-e Thanks for the PR I will review it and get it in shortly!