set history = 1000
set savehist = (1000 merge)
set history = 1000
set savehist = (1000 merge)
jexec 1 /bin/sh
tail -f ~/.history. If you close the connection, can it be that the shell is killed and has to time to updated the history file?