agent_ui: Refactor in preparation for subagent permission work (#47874)

Release Notes:

- N/A *or* Added/Fixed/Improved ...

---------

Co-authored-by: MrSubidubi <dev@bahn.sh>
Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
4c8b699f03Cameron Mcloughlin committed on 1/29/2026, 10:53:53 AM· committed by GitHubparentb7e11b3
8 files changedLine totals unavailable