Skip to content

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

Merged
dkotter merged 7 commits intoWordPress:developfrom
TylerB24890:fix/issue-264-anthropic-title-gen
Apr 3, 2026
Merged

[Fix]: Issue 264 | Anthropic with Title Gen#341
dkotter merged 7 commits intoWordPress:developfrom
TylerB24890:fix/issue-264-anthropic-title-gen

Conversation

@TylerB24890
Copy link
Copy Markdown
Contributor

@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

github-actions bot commented Mar 25, 2026

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.

Unlinked Accounts

The following contributors have not linked their GitHub and WordPress.org accounts: @raftaar1191.

Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases.

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

Unlinked contributors: raftaar1191.

Co-authored-by: TylerB24890 <tyb@git.wordpress.org>
Co-authored-by: dkotter <dkotter@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 43.75000% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 58.04%. Comparing base (ab57fa9) to head (5290d7c).
⚠️ Report is 8 commits behind head on develop.

Files with missing lines Patch % Lines
...es/Abilities/Title_Generation/Title_Generation.php 43.75% 9 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             develop     #341      +/-   ##
=============================================
+ Coverage      57.95%   58.04%   +0.08%     
- Complexity       629      630       +1     
=============================================
  Files             46       46              
  Lines           3204     3189      -15     
=============================================
- Hits            1857     1851       -6     
+ Misses          1347     1338       -9     
Flag Coverage Δ
unit 58.04% <43.75%> (+0.08%) ⬆️

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
@dkotter dkotter merged commit 588d786 into WordPress:develop Apr 3, 2026
19 of 20 checks passed
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

4 participants