Infiltrator still rerouted/hangs after Gate.stop #34
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
kahliburke/Kaimon.jl#34
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?
If I manually execute
Gate.stop(), infiltrator sessions still (try to) get rerouted through Kaimon. In practice, the session just hangs.Screenshot of two julia sessions, comparing Infiltrator behavior on a session with stopped Gate, vs session where Kaimon was never activated in the first place
the left session just hangs indefinitely.
@haakon-e I haven't looked this case of manually stopping, it's a bit of an edge case and may just require a restart (could be done with by the agent via manage_repl.
Currently, I have
using Kaimonin my startup.jl file, so all REPLs can be controlled by an agent; very convenient!The underlying issue is that I would sometimes like to infiltrate myself. I found no way to do this with the Gate running, and tried to stop the gate to see if it then would work (but alas, no).
So, in my opinion, it's an edge case insofar as it doesn't "automatically" work when stopping the gate. But the real issue is that there's no way whatsoever for me to infiltrate in a kaimon-connected REPL, as far as I can tell.
Unfortunately restarting is not always practical. Some work may require long compute to get to the relevant infiltration point.
Fixed on
2.0-integration(just pushed) — three parts:Hang after
Gate.stop().stop()now restores Infiltrator's normalstart_prompt, and the gate's prompt override falls back to it whenever the gate isn't running. So afterGate.stop(),@infiltrateopens the normal interactive prompt instead of routing to the now-dead gate and hanging.No way to exit a paused breakpoint. You can now press
Ctrl-Cto release a breakpoint locally instead of being stuck until an agent resumes it.Debugging a gate-connected REPL yourself (without stopping the gate). New toggle:
Eval/tools keep working while routing is off, so you don't lose a long-running computation — no
restart()/serve()needed.This addresses your point about long compute making restarts impractical. Documented in the debugging guide. Thanks for the detailed report and screenshot, @haakon-e — ships in the next release.
wow! I'm thoroughly impressed and appreciative!
You addressed all my challenges and more, thank you so much for continuing making Kaimon such a pleasure to use