Skip to content

[Bug]: document-extract plugin loads but registers zero capabilities (bundled, 2026.6.1) #91539

Closed

Description

@CEKitchens

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

The bundled document-extract plugin loads but registers zero capabilities after upgrading to 2026.6.1, making DOCX and PDF file reading non-functional.

Steps to reproduce

  1. Install/upgrade to OpenClaw 2026.6.1
  2. Run: openclaw plugins inspect document-extract --runtime --json
  3. Observe contracts.documentExtractors declares ["pdf"] but capabilityCount is 0,
    tools is [], and shape is "non-capability"
  4. Plugin is absent from gateway startup log despite showing status "loaded"

Expected behavior

The document-extract plugin registers its PDF/DOCX extraction capability at gateway startup and appears in the gateway startup plugins list, allowing the agent to read local document files.

Actual behavior

Plugin shows status "loaded" in openclaw plugins inspect but registers zero capabilities: capabilityCount: 0, tools: [], shape: "non-capability". Plugin is absent from gateway startup log. Agent cannot read DOCX or PDF files. Began after upgrading from 2026.5.27 to 2026.6.1.

OpenClaw version

2026.6.1

Operating system

Windows 11

Install method

npm global

Model

anthropic/claude-haiku-4-5-20251001

Provider / routing chain

openclaw -> anthropic

Additional provider/model setup details

Logs, screenshots, and evidence

PS C:\WINDOWS\system32> openclaw plugins inspect document-extract --runtime --json
{
  "workspaceDir": "C:\\Users\\Effie Stone\\.openclaw\\workspace",
  "plugin": {
    "id": "document-extract",
    "name": "Document Extraction",
    "description": "Extract text and fallback page images from local document attachments.",
    "version": "2026.6.1",
    "packageName": "@openclaw/document-extract-plugin",
    "format": "openclaw",
    "source": "C:\\Users\\Effie Stone\\AppData\\Roaming\\npm\\node_modules\\openclaw\\dist\\extensions\\document-extract\\index.js",
    "rootDir": "C:\\Users\\Effie Stone\\AppData\\Roaming\\npm\\node_modules\\openclaw\\dist\\extensions\\document-extract",
    "origin": "bundled",
    "enabled": true,
    "compat": [],
    "explicitlyEnabled": true,
    "activated": true,
    "activationSource": "explicit",
    "activationReason": "enabled in config",
    "syntheticAuthRefs": [],
    "status": "loaded",
    "toolNames": [],
    "hookNames": [],
    "channelIds": [],
    "cliBackendIds": [],
    "providerIds": [],
    "embeddingProviderIds": [],
    "speechProviderIds": [],
    "realtimeTranscriptionProviderIds": [],
    "realtimeVoiceProviderIds": [],
    "mediaUnderstandingProviderIds": [],
    "transcriptSourceProviderIds": [],
    "imageGenerationProviderIds": [],
    "videoGenerationProviderIds": [],
    "musicGenerationProviderIds": [],
    "webFetchProviderIds": [],
    "webSearchProviderIds": [],
    "migrationProviderIds": [],
    "contextEngineIds": [],
    "memoryEmbeddingProviderIds": [],
    "agentHarnessIds": [],
    "cliCommands": [],
    "services": [],
    "gatewayDiscoveryServiceIds": [],
    "commands": [],
    "httpRoutes": 0,
    "hookCount": 0,
    "configSchema": true,
    "configJsonSchema": {
      "type": "object",
      "additionalProperties": false,
      "properties": {}
    },
    "contracts": {
      "documentExtractors": [
        "pdf"
      ]
    },
    "imported": true,
    "dependencyStatus": {
      "hasDependencies": false,
      "installed": true,
      "requiredInstalled": true,
      "optionalInstalled": true,
      "missing": [],
      "missingOptional": [],
      "dependencies": [],
      "optionalDependencies": []
    }
  },
  "shape": "non-capability",
  "capabilityMode": "none",
  "capabilityCount": 0,
  "capabilities": [],
  "typedHooks": [],
  "customHooks": [],
  "tools": [],
  "commands": [],
  "cliCommands": [],
  "services": [],
  "gatewayDiscoveryServices": [],
  "gatewayMethods": [],
  "mcpServers": [],
  "lspServers": [],
  "httpRouteCount": 0,
  "bundleCapabilities": [],
  "diagnostics": [],
  "policy": {
    "allowedModels": [],
    "hasAllowedModelsConfig": false
  },
  "usesLegacyBeforeAgentStart": false,
  "compatibility": []
}
PS C:\WINDOWS\system32>

Impact and severity

Affected: any agent using the bundled document-extract plugin on 2026.6.1
Severity: High — blocks all DOCX and PDF file reading
Frequency: Always (100% reproducible)
Consequence: Agent cannot process any document files; workaround requires manually attaching files via Telegram

Additional information

Last known good version: 2026.5.27
First known bad version: 2026.6.1
Plugin origin is "bundled" — cannot be reinstalled independently.
contracts.documentExtractors declares ["pdf"] but capabilityCount is 0 and tools is empty, suggesting capability registration silently fails during gateway startup.

Activity

  1. clawsweeper commented on Jun 9, 2026

    @clawsweeper
    Contributor

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 21, 2026, 3:31 PM ET / 19:31 UTC.

    Summary
    Keep open. Current main and v2026.6.9 still leave the reported document-extract inspect/runtime surface unresolved, and #95059 is an open closing PR rather than a merged fix.

    Reproducibility: yes. for the inspect/registration symptom by source inspection: current main has a document extractor manifest contract but inspect classification does not count it. The installed-package PDF runtime failure is supported by the user log and open candidate PR, but still needs live package proof.

    Root-cause cluster
    Relationship: canonical
    Canonical: #91539
    Summary: This issue is the canonical user-facing report; open PRs cover candidate runtime/build and inspect-diagnostic fixes, but neither has merged.

    Members:

    Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

    Next step
    Do not queue a new fix PR because a closing PR is already open and this issue is marked for linked-PR handling.

    Review details

    Best possible solution:

    Review and land or replace the linked runtime/build fix, land the inspect-taxonomy fix if maintainers accept the additive inspect kind, then verify an installed build reports and uses the PDF extractor; keep DOCX as separate feature work.

    Do we have a high-confidence way to reproduce the issue?

    Yes for the inspect/registration symptom by source inspection: current main has a document extractor manifest contract but inspect classification does not count it. The installed-package PDF runtime failure is supported by the user log and open candidate PR, but still needs live package proof.

    Is this the best way to solve the issue?

    Unclear as a final fix because current main is not fixed and the linked runtime/build PR still needs package-level proof. The diagnostic PR is the right narrow fix for inspect output only, while the runtime regression needs the build/package path proven or replaced.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • The open build/runtime PR may not be the complete root-cause fix; its existing review asks for real OpenClaw build/package proof before merge.
    • The open inspect-taxonomy PR fixes the visible capabilityCount/shape diagnostic but explicitly does not prove installed document extraction works.
    • The issue body mentions DOCX, but current bundled manifest and docs establish PDF extraction as the shipped document-extract contract; DOCX support should remain separate unless maintainers expand scope.

    Codex review notes: model internal, reasoning high; reviewed against 6daf9307e0b9.

    Label changes

    Label justifications:

    • P1: The report describes a release regression that can block bundled document extraction in a real user workflow.
    • impact:other: The affected surface is bundled document extraction and plugin capability diagnostics, which is maintainer-visible but outside the specific owned impact categories.
    Evidence reviewed

    What I checked:

    • Current inspect gap: Current main's inspect capability taxonomy does not include document extractor contracts, so a plugin with only contracts.documentExtractors is still not counted as an inspect capability. (src/plugins/inspect-shape.ts:5, 6daf9307e0b9)
    • Bundled manifest declares PDF document extraction: The bundled document-extract plugin is enabled by default and declares contracts.documentExtractors: ["pdf"], so this is an existing bundled plugin contract rather than a new optional feature request. (extensions/document-extract/openclaw.plugin.json:6, 6daf9307e0b9)
    • Runtime depends on public artifact exports: Runtime PDF extraction resolves enabled bundled document extractor contracts and loads create*DocumentExtractor factories from the plugin public artifact, matching the user's zero-export/zero-capability failure mode. (src/plugins/document-extractors.runtime.ts:43, 6daf9307e0b9)
    • Unified build config still lacks the proposed runtime/build fix: The unified root dist graph still uses nodeBuildConfig without an explicit ESM format, while bundled plugin entrypoints are included in that unified graph. (tsdown.config.ts:136, 6daf9307e0b9)
    • Latest release still has the same gaps: v2026.6.9 points at c645ec4 and still lacks document-extractors in inspect-shape and the explicit nodeBuildConfig ESM setting, so there is no shipped fix yet. (src/plugins/inspect-shape.ts:5, c645ec4555c0)
    • Open closing PR exists: GitHub lists fix(build): add explicit ESM format to nodeBuildConfig for type module package #95059 as a closing PR for this issue, but it remains open and unmerged, so this issue should not close before that candidate lands or is replaced.

    Likely related people:

    • vincentkoc: GitHub path history shows e3cba98 moved document extraction into the bundled plugin and touched the manifest, runtime, and public-artifact path. (role: feature introducer and adjacent owner; confidence: high; commits: e3cba98f3904; files: extensions/document-extract/openclaw.plugin.json, extensions/document-extract/document-extractor.ts, src/plugins/document-extractor-public-artifacts.ts)
    • steipete: Recent GitHub history shows work on plugin inspect-shape and build/config surfaces that overlap the reported diagnostics and candidate build fix. (role: recent adjacent contributor; confidence: medium; commits: 463e9f270434, b8d08f0cfd0c; files: src/plugins/inspect-shape.ts, tsdown.config.ts)
    • shakkernerd: Recent commits touched lazy capability plugin startup and extractor manifest resolution in the same bundled contract/runtime area. (role: adjacent plugin resolver contributor; confidence: medium; commits: 86bdeb056176, 51bd95fff3c6; files: extensions/document-extract/openclaw.plugin.json, src/plugins/document-extractors.runtime.ts)
    • mmyzwl: Opened the current closing PR focused on the build format surface implicated by the runtime export failure theory. (role: candidate fix author; confidence: medium; commits: 9802f3838f9a; files: tsdown.config.ts)
    • xydt-tanshanshan: Opened the inspect-shape PR that adds document-extractors to capability classification but does not cover runtime PDF extraction. (role: partial diagnostic fix author; confidence: medium; commits: 459d11c219c7; files: src/plugins/inspect-shape.ts, src/plugins/contracts/shape.contract.test.ts)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  2. added
    P1High-priority user-facing bug, regression, or broken workflow.
    impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.
    issue-rating: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.
    clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.
    clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.
    clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.
    on Jun 9, 2026
  3. added
    issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.
    clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.
    clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.
    and removed
    clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.
    issue-rating: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.
    on Jun 15, 2026
  4. 12 remaining items

  5. added
    issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.
    clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.
    on Jun 20, 2026
  6. openclaw-barnacle commented on Jul 6, 2026

    @openclaw-barnacle

    This issue has been automatically marked as stale due to inactivity.
    Please add updates or it will be closed.

  7. steipete commented on Jul 9, 2026

    @steipete
    Contributor

    Closing as fixed by #91597 (d17b970bb50d8835ee3e8d23e43aec91a08da4e0). Current main uses the corrected document-extractor inspect shape and retains focused coverage for capability registration.

  8. locked as resolved and limited conversation to collaborators on Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority user-facing bug, regression, or broken workflow.bugSomething isn't workingclawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.regressionBehavior that previously worked and now failsstaleMarked as stale due to inactivity

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions