Fix a bug where switching the disable AI flag would cause a panic (#45050)

Also quiet some noisy logs

Release Notes:

- N/A
847457df1bMikayla Maki committed on 12/17/2025, 6:49:39 PM· committed by GitHubparent8c7a04c
8 files changedLine totals unavailable