# Ensure \`disable_ai\` is properly respected \(\#34941\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/2bc6e18ac913f363e7f75fd12efccc02dc3c05d9)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 2bc6e18ac913f363e7f75fd12efccc02dc3c05d9

Requested commit: 2bc6e18ac913f363e7f75fd12efccc02dc3c05d9

Commit: 2bc6e18ac913f363e7f75fd12efccc02dc3c05d9

Tree: 1349f61d2a7df8857cd2460749c9d798f1a9d2ab

Author: Finn Evers

Committer: GitHub

## Message

```
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
```

## Parents

- [c2c2264a60abf65e8a5e14859d6b588e307142c2](https://git.cafe/gitcafe/zed/commit/c2c2264a60abf65e8a5e14859d6b588e307142c2?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/2bc6e18ac913f363e7f75fd12efccc02dc3c05d9?format=markdown)
