agent_ui: Remove unnecessary Arc allocation (#45172)

Follow up to https://github.com/zed-industries/zed/pull/44297.

Initial implementation in ce884443f1c38ca8da9edf9fbbb8e7fd579452cb used
`Arc` to store the reference to the hash map inside the iterator while
keeping the lifetime static. The code was later simplified in
5151b22e2ea37fb457cf4f88b88fe4f315306074 to build the list eagerly but
the Arc was forgotten, although it became unnecessary.

cc @bennetbo

Release Notes:

- N/A
df48294caaOleksii Orlenko committed on 12/18/2025, 9:48:45 AM· committed by GitHubparentcdc5cc3
1 file changedLine totals unavailable