Skip to content

UX: Ambiguous error message in editor when a provider is blocked by Connector Approvals #660

Description

@riccardodicurti

Description
When an AI request (such as title generation) is blocked by the Connector Approvals feature, the error message displayed in the block editor is ambiguous and misleading. It suggests that no provider is connected or that the connected provider doesn't support the feature, rather than guiding the admin to approve the pending request.

Steps to Reproduce

  • Install the AI plugin and a provider plugin (e.g., AI Provider for Google).
  • Configure the API connection but do not approve the caller yet in the "Connector Approvals" screen.
  • Open a page/post and attempt to use an AI feature, such as "Generate Title".
  • Observe the red error notice at the top of the editor.

Current Behavior
The editor displays the following error notice:

"Title generation failed. Please ensure you have a connected provider that supports text generation."

This leads the user to believe their API keys are invalid, that the connection failed entirely, or that the chosen model doesn't support text capabilities.

Image

Expected Behavior
Since the provider is connected but simply awaiting administrator authorization, the error message should be context-aware.

It should explicitly mention that the connector requires approval and, if possible, provide a direct link to the approval page (/wp-admin/tools.php?page=connector-approvals).

Suggested copy:

"Title generation failed. The AI connector is currently pending authorization. Please approve the request under Tools > Connector Approvals."

Image

Environment

  • WordPress Core-AI Ecosystem (AI Plugin)
  • WordPress 7.0 / Gutenberg Editor

Activity

  1. moved this from Triage to In progress in WordPress AI Roadmapon Jun 9, 2026
  2. added this to the 1.2.0 milestone on Jun 11, 2026
  3. SohamPatel46 commented on Jun 22, 2026

    @SohamPatel46
    Contributor

    Hello @dkotter, I followed your suggested pre-request hook approach from this PR - #686 (review).
    I've opened a PR implementing this: #759.
    Let me know if you have any feedback!

  4. modified the milestones: 1.2.0, 1.3.0 on Jul 13, 2026
  5. moved this from In progress to Needs review in WordPress AI Roadmapon Jul 13, 2026
  6. modified the milestones: 1.3.0, 1.4.0 on Aug 12, 2026
  7. modified the milestones: 1.4.0, Future Release on Sep 3, 2026
  8. modified the milestones: Future Release, 1.6.0 on Sep 17, 2026
  9. moved this from Needs review to In progress in WordPress AI Roadmapon Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

Sponsor
SponsoredKunjungi sekarang
Promo