List_background_tasks (all_environments = True) doesn't return tasks from other environments

I think all_environments=True on list_background_tasks() isn’t doing anything — it only ever returns the current environment’s tasks.

Minimal repro (one app, two environments — Production + a Debug environment):

1. A background task is running in Production — I can see it in the Background Tasks panel, RUNNING, ID 6yfyhnnv….

2. From the Debug environment:

tasks = anvil.server.list_background_tasks(all_environments=True)
print([t.get_id() for t in tasks])
# → only the Debug environment's task IDs. The Production task (6yfyhnnv…) is not in the list.

So even with all_environments=True, I can’t see the other environment’s running tasks.

Digging into the open-source anvil-runtime, the server handler for list_background_tasks passes the all_environments argument into a parameter named _legacy-include-extra-environments? — the _legacy prefix makes me suspect this flag is deprecated and effectively a no-op now.

Is that right — is all_environments deprecated? And is there a supported way to list/manage background tasks across environments of the same app? (Hosted anvil.works, Full Python 3.)

Thanks!