we can reuse sessions instead of using a single one (should be faster because it reduces the start-up cost)
we can interrupt sessions instead of letting them finish (useful for goal printing)
solve the problem of leftover processes
If I see it right, fixing it consists in adding a new variable to hold the session name, start the session at the beginning (loading the required functions instead of reloading them every time), and replace the async by their counterpart (with the backquotes).
Use https://codeberg.org/FelipeLema/session-async.el instead of async. This has several advantages:
If I see it right, fixing it consists in adding a new variable to hold the session name, start the session at the beginning (loading the required functions instead of reloading them every time), and replace the async by their counterpart (with the backquotes).