### Apache Airflow version

main (development)

### What happened

Currently when a new task is added to a dag and in the grid view, a user selects the top level of a dag run and then clicks on "Queue up new tasks", the list returned by the confirmation box is always empty. 

It appears that where the list of tasks is expected to be set, [here](https://github.com/apache/airflow/blob/ada91b686508218752fee176d29d63334364a7f2/airflow/api/common/mark_tasks.py#L516), `res` will always be an empty list. 


### What you think should happen instead

The UI should return a list of tasks that will be queued up once the confirmation button is pressed. 

### How to reproduce

Create a dag, trigger the dag, allow it to complete. 

Add a new task to the dag, click on "Queue up new tasks", the list will be empty.

### Operating System

n/a

### Versions of Apache Airflow Providers

2.3.3 and upwards including main. I've not looked at earlier releases. 

### Deployment

Other 3rd-party Helm chart

### Deployment details

_No response_

### Anything else

I have a PR prepared for this issue. 

### Are you willing to submit PR?

- [X] Yes I am willing to submit a PR!

### Code of Conduct

- [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)

#
#
#
from __future__ import annotations
import flask
import markupsafe
import pytest
import werkzeug
from airflow.models import DagBag, DagRun, TaskInstance
from airflow.security import permissions
from airflow.utils import timezone
from airflow.utils.session import create_session
from airflow.www.views import DagRunModelView
from tests.test_utils.api_connexion_utils import create_user, delete_roles, delete_user
from tests.test_utils.www import check_content_in_response, client_with_login
from tests.www.views.test_views_tasks import _get_appbuilder_pk_string
@pytest.fixture(scope="module")
def client_dr_without_dag_edit(app):