assistant2: Ensure scripting tool gets disabled when switching profiles (#27244)

This PR fixes an issue where the scripting tool wasn't being disabled
when switching to a profile that did not have it enabled.

Release Notes:

- N/A
6bced3a834Marshall Bowers committed on 3/21/2025, 2:22:00 PM· committed by GitHubparente14ebcf
1 file changedLine totals unavailable