Apple Terminal startup errors (session save/restore)

Ok so I tried this (using Howard Oakley’s excellent sandboxed lightweight VM, ViableS).

I have installed nothing, nada, zip, and added no files to ~/ or anywhere else.

However, after starting and restarting Terminal.app with a few tabs, and ensuring that “close windows when quitting” is unset, I immediately got the message

/Users/jaffe/.zsh_sessions/<random hex guid>.session:2: command not found: Saving

I haven’t used a vm before, but I don’t think there is any possible pollution from my host environment (I specifically chose the “Sandboxed” version of the app to be extra sure!).

So, with all due respect to anyone who doesn’t see this issue: how is this possible???