Skip to content

[Fix]: Issue 264 | Anthropic with Title Gen#341

Open
TylerB24890 wants to merge 1 commit intoWordPress:developfrom
TylerB24890:fix/issue-264-anthropic-title-gen
Open

[Fix]: Issue 264 | Anthropic with Title Gen#341
TylerB24890 wants to merge 1 commit intoWordPress:developfrom
TylerB24890:fix/issue-264-anthropic-title-gen

Conversation

@TylerB24890
Copy link
Copy Markdown

@TylerB24890 TylerB24890 commented Mar 25, 2026

What?

Closes #264

This PR removes the multiple candidates from the Title Generation experiment and makes it return only one. All E2E and unit tests updated accordingly.

Why?

As described in #264 -- Anthropic and OpenAI no longer support multiple candidate responses. This PR ensures the title generation logic continues to work even if only one of those models is currently connected.

How?

Remove all references to candidates within the Title Generation experiment. With the removal of multiple candidates per response, the modal UI has been removed and titles are just inserted into the post directly. Editors can then regenerate the title as needed using the existing toolbar button.

Use of AI Tools

  • AI Assistance: Yes
  • Tool(s): Claude Code (Opus 4.6)
  • Used for:
    • Outlining everywhere candidates were referenced and used
    • Update E2E and Unit Tests accordingly

Testing Instructions

  1. Ensure the "Title Generation" experiment is enabled.
  2. Ensure only an Anthropic connector is active.
  3. Navigate to a post and click the "Regenerate" button.
  4. Confirm a title is generated and inserted into the post title field.
Open WordPress Playground Preview

@github-actions
Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: TylerB24890 <tyb@git.wordpress.org>
Co-authored-by: dkotter <dkotter@git.wordpress.org>
Co-authored-by: raftaar1191 <raftaar1191@git.wordpress.org>
Co-authored-by: jeffpaul <jeffpaul@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 25, 2026

Codecov Report

❌ Patch coverage is 36.36364% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 57.69%. Comparing base (32c5e2d) to head (3b76755).

Files with missing lines Patch % Lines
...es/Abilities/Title_Generation/Title_Generation.php 36.36% 7 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             develop     #341      +/-   ##
=============================================
- Coverage      57.85%   57.69%   -0.16%     
- Complexity       615      616       +1     
=============================================
  Files             46       46              
  Lines           3165     3158       -7     
=============================================
- Hits            1831     1822       -9     
- Misses          1334     1336       +2     
Flag Coverage Δ
unit 57.69% <36.36%> (-0.16%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jeffpaul jeffpaul requested a review from dkotter March 27, 2026 15:59
@jeffpaul jeffpaul added this to the 0.7.0 milestone Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error using Anthropic with Title Gen

3 participants