Ensure `disable_ai` is properly respected (#34941)

Quick follow up to #34896 which ensures that the Agent Panel cannot be
caught by actions like `workspace: toggle left dock` when `disable_ai`
is set to true.

Also removes a method that was introduced but unused in the workspace
because `first_enabled_panel_idx` already covers all cases this method
could be useful for.

Release Notes:

- N/A
2bc6e18ac9Finn Evers committed on 7/23/2025, 10:20:09 AM· committed by GitHubparentc2c2264
2 files changedLine totals unavailable