diff --git a/jupyter_server_terminals/terminalmanager.py b/jupyter_server_terminals/terminalmanager.py index 8a742d7..580e55b 100644 --- a/jupyter_server_terminals/terminalmanager.py +++ b/jupyter_server_terminals/terminalmanager.py @@ -164,3 +164,6 @@ async def _cull_inactive_terminal(self, name): "Culling terminal '%s' due to %s seconds of inactivity.", name, inactivity ) await self.terminate(name, force=True) + + def pre_pty_read_hook(self, ptywclients): + ptywclients.last_activity = utcnow()