Potentially fix welcome banner in agent panel not going away (#37879)

Potentially fixes #37367. Just going ahead with the change even though
it's unclear whether this is the fix, since it is quite low risk.

Release Notes:

- N/A
bd0a5dd664Michael Sloan committed on 9/9/2025, 9:13:12 PM· committed by GitHubparent2f40a3b
1 file changedLine totals unavailable