Skip to content

skills.test.ts: workflows_review command missing in buildWorkspaceSkillCommandSpecs (pre-existing on main) #67965

Description

@Sway-Chan

Summary

src/agents/skills.test.ts:248buildWorkspaceSkillCommandSpecs > includes enabled Claude bundle markdown commands as native OpenClaw slash commands — is failing on main HEAD.

Repro

Error

FAIL  src/agents/skills.test.ts > buildWorkspaceSkillCommandSpecs > includes enabled Claude bundle markdown commands as native OpenClaw slash commands
AssertionError: expected [] to deeply equal ArrayContaining{…}
Expected: arrayContaining [ objectContaining {
  "description": "Review code with a structured checklist",
  "name": "workflows_review",
  "promptTemplate": "Review the branch carefully.",
  "skillName": "workflows:review"
} ]
Received: []
 ❯ src/agents/skills.test.ts:248:22

The test builds a compound-bundle plugin fixture with a workflows-review.md markdown command and expects buildWorkspaceSkillCommandSpecs to surface it as a native slash command. The returned commands array is empty.

Suspected Cause

Recent plugin-discovery cache changes on main:

  • 9da4d5f5 fix(plugins): reuse shared discovery cache
  • 35395089 test(plugins): address discovery review feedback
  • 6b45ba88 fix: reuse shared plugin discovery cache across workspaces (#67940)

The shared cache may be leaking discovery state across test files, masking the compound-bundle fixture in this specific test's isolated workspace.

Impact

Blocks CI on any PR rebased onto affected commits — including PR #67278 (fix(sessions): skip A2A flow for persistent sessions), where this check is unrelated to the PR's scope.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions