In the new Gmail version, Thethe id available in the address bar is an encoded value. You can get the thread id from the HTML. Try searching "data-legacy-thread-id" in the HTML elements.
Or you can find it by running JavaScript code in the console:
document.querySelector('[data-legacy-thread-id]').getAttribute('data-legacy-thread-id')