I tested it. It worked by accident.

On Mon, Feb 10, 2025 at 7:59 AM Visuwesh <visuweshm@gmail.com> wrote:
[திங்கள் பிப்ரவரி 10, 2025] Michael Albinus wrote:

> Version: 31.1
>
> Ship Mints <shipmints@gmail.com> writes:
>
> Hi,
>
>> Subject: [PATCH] ansi-osc-directory-tracker respects Tramp remote files
>
> I've pushed this to master.  Closing the bug.

The concat form is ill-formed in the patch you pushed, no?

    (concat (file-remote-p default-directory
                           (url-unhex-string (url-filename url))))

should be

    (concat (file-remote-p default-directory)
            (url-unhex-string (url-filename url)))