agent: Prevent use of disabled tools (#33392)

The agent now checks if a tool is enabled in the current profile before
calling it. Previously, the agent could still call disabled tools, which
commonly happened after switching profiles in the middle of a thread.

Release Notes:

- Fixed a bug where the agent could use disabled tools sometimes
b0bab0bf9aOleksiy Syvokon committed on 6/25/2025, 4:30:22 PM· committed by GitHubparent630a326
2 files changedLine totals unavailable