tshrec: record tsh sessions