[wp-trac] [WordPress Trac] #65058: Abilities API: Catch exceptions thrown by ability callbacks

WordPress Trac noreply at wordpress.org
Fri Apr 10 07:52:11 UTC 2026


#65058: Abilities API: Catch exceptions thrown by ability callbacks
--------------------------+---------------------------
 Reporter:  gziolo        |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  7.0
Component:  AI            |    Version:  6.9
 Severity:  normal        |   Keywords:  abilities-api
  Focuses:                |
--------------------------+---------------------------
 Originally reported at https://github.com/WordPress/ai/issues/392.

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


 === Environment info

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

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/65058>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list