Skip to content

git_panel: Disable AI commit message button instead of hiding it#46525

Merged
danilo-leal merged 2 commits intozed-industries:mainfrom
ivan-magda:fix/ai-commit-message-button-visibility
Jan 15, 2026
Merged

git_panel: Disable AI commit message button instead of hiding it#46525
danilo-leal merged 2 commits intozed-industries:mainfrom
ivan-magda:fix/ai-commit-message-button-visibility

Conversation

@ivan-magda
Copy link
Contributor

@ivan-magda ivan-magda commented Jan 10, 2026

Closes #46142

Release Notes:

  • Fixed AI commit message button in Git panel being hidden instead of disabled when no AI provider is configured. The button now remains visible with a tooltip explaining how to enable the feature.

Screenshot:

Screenshot 2026-01-10 at 18 16 12

…stries#46142)

When no AI model is available, display the "Generate Commit Message"
button as disabled with a tooltip explaining why, rather than hiding it
completely. This improves discoverability and guides users to configure
an AI provider.

- Button remains visible but disabled when model unavailable
- Icon color changes to Color::Disabled for visual feedback
- Tooltip shows "Configure an AI provider to generate commit messages"

Closes zed-industries#46142
@cla-bot
Copy link

cla-bot bot commented Jan 10, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @ivan-magda on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@ivan-magda
Copy link
Contributor Author

@cla-bot check

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jan 10, 2026
@cla-bot
Copy link

cla-bot bot commented Jan 10, 2026

The cla-bot has been summoned, and re-checked this pull request!

@smitbarmase smitbarmase self-assigned this Jan 12, 2026
@danilo-leal danilo-leal changed the title Show AI commit message button as disabled instead of hidden git_panel: Disable AI commit message button instead of hiding it Jan 15, 2026
Copy link
Member

@danilo-leal danilo-leal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much!

@danilo-leal danilo-leal enabled auto-merge (squash) January 15, 2026 13:05
@danilo-leal danilo-leal merged commit cc62b53 into zed-industries:main Jan 15, 2026
24 checks passed
@ivan-magda ivan-magda deleted the fix/ai-commit-message-button-visibility branch January 15, 2026 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AI commit message button hidden instead of disabled when zed.dev provider has no active subscription

3 participants