When I apply these patches and add a hook
(add-hook 'eglot-managed-mode-hook #'eglot-inlay-hints-mode)
and try to delete a buffer, I get
eglot--error: [eglot] Can't turn on `eglot-inlay-hints' mode.
once, and then I am able to delete the buffer.
Chinmay