Enter to send·Shift+Enter new line
terminate_on_close: NotRequired[bool]
Whether to terminate the session on close.