[PR #7353] fix(bun): guard against missing keys in cache manifest #12362

Open
opened 2026-02-16 18:17:16 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/7353

State: open
Merged: No


Ran into this crash locally while developing a plugin and modifying dependencies/dev-dependencies.

The cached package.json can be valid but missing the dependencies key (e.g. if it only has devDependencies). This ensures we default to {} to prevent the TypeError.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7353 **State:** open **Merged:** No --- Ran into this crash locally while developing a plugin and modifying dependencies/dev-dependencies. The cached `package.json` can be valid but missing the `dependencies` key (e.g. if it only has `devDependencies`). This ensures we default to `{}` to prevent the TypeError.
yindo added the pull-request label 2026-02-16 18:17:16 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12362