Repository navigation
Description
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
- Install/upgrade to OpenClaw 2026.6.1
- Run: openclaw plugins inspect document-extract --runtime --json
- Observe contracts.documentExtractors declares ["pdf"] but capabilityCount is 0,
tools is [], and shape is "non-capability" - 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.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 9, 2026
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:
canonicalCanonical: #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:
fixed_by_candidate: fix(build): add explicit ESM format to nodeBuildConfig for type module package #95059 - This open PR uses closing syntax for this issue and changes the implicated build config surface.partial_overlap: [AI] fix(plugins): recognize document-extractors as a capability kind… #91597 - This open PR fixes the plugins inspect capability-count symptom but explicitly does not prove runtime document extraction.adjacent_distinct: fix(media): guard document extractor metadata #89789 - This maintainer PR hardens extractor metadata handling but does not address zero exports or missing inspect taxonomy.adjacent_distinct: fix(plugins): isolate extractor artifact failures #89878 - This maintainer PR isolates extractor artifact failures, which is adjacent but not the same root cause as the reported zero capability/export path.partial_overlap: feat(document-extract): add .docx text extractor #91992 - This closed unmerged PR targeted DOCX extraction, overlapping the issue body's DOCX mention but not the shipped PDF regression fix.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:
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:
src/plugins/inspect-shape.ts:5, 6daf9307e0b9)extensions/document-extract/openclaw.plugin.json:6, 6daf9307e0b9)src/plugins/document-extractors.runtime.ts:43, 6daf9307e0b9)tsdown.config.ts:136, 6daf9307e0b9)src/plugins/inspect-shape.ts:5, c645ec4555c0)Likely related people:
extensions/document-extract/openclaw.plugin.json,extensions/document-extract/document-extractor.ts,src/plugins/document-extractor-public-artifacts.ts)src/plugins/inspect-shape.ts,tsdown.config.ts)extensions/document-extract/openclaw.plugin.json,src/plugins/document-extractors.runtime.ts)tsdown.config.ts)src/plugins/inspect-shape.ts,src/plugins/contracts/shape.contract.test.ts)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.12 remaining items
fix(build): correct nodeBuildConfig comment to match tsdown ESM default
[AI] fix(plugins): recognize document-extractors as a capability kind…
[AI] fix(plugins): recognize document-extractors as a capability kind… (
[AI] fix(plugins): recognize document-extractors as a capability kind… (
[AI] fix(plugins): recognize document-extractors as a capability kind… (
openclaw-barnacle commentedon Jul 6, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
steipete commentedon Jul 9, 2026
Closing as fixed by #91597 (
d17b970bb50d8835ee3e8d23e43aec91a08da4e0). Currentmainuses the corrected document-extractor inspect shape and retains focused coverage for capability registration.