When you run `juju debug-hooks` we drop you into a tmux session with multiple windows. The first window is just a session on the machine, the latter ones are the actual hook executions. Indeed we will jump you from the current session to the hook that is requested. We need to sit you in *an* environment so that the session stays alive. So I would say this is by design, I'm not sure your particular needs. It can be true that you have a bunch of hooks pending you may struggle to exit the current one and exit the terminal overall. (I believe as it is just tmux, though, you can do ^B D to exit the session completely (it might be ^A, but I think that is the default for Screen while Tmux default is ^B)) On Tue, Jul 12, 2022 at 3:20 AM Jordan Barrett