Skip to content

Core AI: Title regeneration fails with cURL timeout and exposes full HTML in console (WP 7.0 RC) #392

@PriyankaGusani

Description

@PriyankaGusani

Description

When testing the Core AI feature in WordPress 7.0 RC, I encountered an issue while regenerating a post title.

Actual behavior:

A network error occurs:

cURL error 28: Operation timed out after 30006 milliseconds with 0 bytes received
In the browser console:
A 500 Internal Server Error is logged
The response unexpectedly includes the entire HTML of the page

Also noticed:
wp.abilities.executeAbility is unavailable. Falling back to REST.

Why this is an issue:

Returning full HTML in API response may indicate improper error handling
Could expose unintended data or create debugging/security concerns

Additional Notes:

Issue seems related to the request sent to:

https://router.huggingface.co/v1/chat/completions
Possibly caused by API timeout, but response handling appears incorrect

Step-by-step reproduction instructions

  1. Created a new post
  2. Entered blog title and content
  3. Clicked on “Re-generate” title option
  4. Checked the console log

Screenshots, screen recording, code snippet

Image

Environment info

WordPress Version: 7.0 RC (Beta)
Feature: Core AI (Title Generation)
Browser: Chrome (latest)
Setup: Local/Development environment

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except the AI plugin.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Type] BugSomething isn't working

    Type

    No fields configured for Bug.

    Projects

    Status

    In discussion / Needs decision

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions