Add option to use custom system image #69
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#69
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?
Sometimes the repl needs to be restarted. AI tools ask Kaimon to do that, and it is doing it. But it is not using my custom system image. That causes a lot of issues. Please add an option to use a custom system image (or a custom script to launch Julia).
@ufechner7 Can you try the new 2.3.0 release, it should allow you to freely use custom sysimages.
Fixed in Kaimon 2.3.0. Thanks for the report — digging into it turned up two separate problems, and only one of them was the missing feature you asked for.
Sessions Kaimon spawns had no way to specify a system image at all. You can now set one per project, either in
~/.config/kaimon/projects.jsonor — probably nicer for your repos — in the project's ownkaimon.toml, so it's checked in and collaborators get it for free:julia_bin(a Julia binary, or a wrapper script that forwards its arguments — the "custom script to launch Julia" option you mentioned) andstartup_fileare configurable alongside it. A user-level entry inprojects.jsonis overlaid field-wise on the project'skaimon.toml, so you can override a single field locally and inherit the rest, and it's editable from the TUI Config tab (select a project, presse). A configured sysimage that isn't on disk is logged and skipped rather than failing the spawn.Separately, restarting a REPL you launched was already supposed to keep your sysimage — the gate re-execs with the original argv, so
-J, thread count and heap hint carry over. But the check for "was this launched with a script?" didn't know that--sysimagetakes its value as a separate token, so the path injulia --sysimage /path/sys.sowas mistaken for a script argument. The restart then replayed argv verbatim and re-exec'd a plain interactive REPL that never reconnected to Kaimon — so you'd lose the session, not just the image. The attached spellings (-J/path,--sysimage=/path) were unaffected. That's fixed in KaimonGate 1.2.0, which 2.3.0 requires.If you were passing the flag with a space, that second bug is very likely what you were actually hitting.
Docs: Launch Configuration.