fix: restore OpenClaw PDF and browser runtime dependencies#689
Merged
Conversation
e2258a2 to
3aab843
Compare
mrcfps
approved these changes
Mar 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Restore the OpenClaw runtime dependencies needed for PDF parsing and Playwright-backed browser actions, and document the validation results in the pruning regression spec.
Why
Recent runtime pruning removed packages that OpenClaw still needs for user-visible PDF and browser workflows. URL-based PDF parsing and Playwright interactions now work again after restoring those dependencies, while the remaining Feishu direct-upload PDF problem is tracked separately in #688.
Closes #425
Closes #431
Refs #688
How
pdfjs-dist,@napi-rs, andplaywright-corefromopenclaw-runtimeAffected areas
Checklist
pnpm typecheckpassespnpm lintpassespnpm testpassespnpm generate-typesrun (if API routes/schemas changed)anytypes introduced (useunknownwith narrowing)Notes for reviewers
pdfjs-dist~40 MB,@napi-rs~25 MB,playwright-core~10 MB). The refreshed runtime install baseline also dropped about 13 MB, so the expected net packaged size increase is about 64 MB before DMG/ZIP compression.pnpm teststill has an existing unrelated failure intests/desktop/skill-dir-watcher-workspace.test.ts(watches workspace directories after start and reconciles removalstimed out waiting for watcher state).