Skip to content

fix: wpbullet ability selection regressions + 23 new test cases - #102

Merged
pluginslab merged 1 commit into
devfrom
fix/wpbullet-ability-selection-regressions
Mar 21, 2026
Merged

pluginslab merged 1 commit into
devfrom
fix/wpbullet-ability-selection-regressions

Conversation

@pluginslab

Copy link
Copy Markdown
Owner

Summary

What was fixed

Fix Details
update-check description + keywords Added "need to be updated", "out of date", "needs updating" so "list plugins that need to be updated" routes correctly
plugin-list description Added "Do NOT use for checking updates" disambiguation
System prompt example Added core/ namespace example to prevent LLM from prefixing core/get-editor-blocks with wp-agentic-admin/

New test cases by source issue

Issue Prompts Added
#82, #84, #92 Direct tool invocation (core/get-environment-info, wp-agentic-admin/cron-list, wp-agentic-admin/error-log-read)
#53, #54 Plugin activate/deactivate (Activate Gutenberg, deactivate generateblocks)
#60, #79 CMS/site identity (which CMS and version?, what is my address URL)
#66 Plugin updates (list plugins that need to be updated)
#69, #73 DB optimize with specific tables (optimize wp_options, optimize WooCommerce tables)
#96 Revision cleanup (how many post revisions?, revision-cleanup dry-run)
#58 Conversational error diagnosis (no tool expected)

Issues NOT covered (different problem type)

Test plan

  • npm run test:abilities -- --file tests/abilities/core-abilities.test.js → 64/66 (97%)
  • npx wp-scripts lint-js on all changed files — clean
  • Verify in browser that existing abilities still work

🤖 Generated with Claude Code

Add 23 regression test cases from wpbullet GitHub issues (#51–#96) to
core-abilities.test.js, covering direct tool invocation, plugin
activate/deactivate, CMS identity, update checks, db-optimize with
specific tables, revision cleanup, and conversational error diagnosis.

Fix 3 ability selection issues:
- update-check: expand description and keywords to capture "outdated",
  "need to be updated", "out of date" queries
- plugin-list: clarify description excludes update checking
- System prompt (react-agent.js + runner.js): add core/ namespace
  example to prevent LLM from prefixing core/ tools with
  wp-agentic-admin/

Test suite: 43 → 66 cases, 97% pass rate (64/66, 2 flaky from LLM
non-determinism).

Refs: #51, #53, #54, #58, #60, #66, #69, #73, #79, #82, #84, #92, #96

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant