Skip to content

workspace: sync node_modules by default - #113

Merged
aron-cf merged 1 commit into
mainfrom
retain-node-modules
Aug 19, 2026
Merged

workspace: sync node_modules by default#113
aron-cf merged 1 commit into
mainfrom
retain-node-modules

Conversation

@aron-cf

@aron-cf aron-cf commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

The original sync engine skipped copying node_modules to the workspace in an effort to reduce the amount of data that needed to by synced. However this has a couple of real world implications:

  1. Every time the container shuts down through inactivity the node_modules directory needs to be re-constructed which is often more expensive than just syncing it.
  2. Agents often get confused by the discrepancy and not having node_modules available in other backends is problematic.

This PR removes the default ignore. It can be restored manually by providing the ignore setting when creating the workspace.


Open in Devin Review

@changeset-bot

changeset-bot Bot commented Aug 18, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 41e2434

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@cloudflare/computer Patch
@cloudflare/dofs Patch
@cloudflare/computer-rpc Patch
@cloudflare/computerd Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

Make sync filtering opt-in so package manager installs are preserved across workspace runtimes. Keep explicit ignore patterns available for callers that need to omit derived files.
@aron-cf
aron-cf force-pushed the retain-node-modules branch from 204e64f to 41e2434 Compare August 18, 2026 21:00
@pkg-pr-new

pkg-pr-new Bot commented Aug 19, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@cloudflare/computer@113

commit: 41e2434

@aron-cf
aron-cf merged commit f35f5df into main Aug 19, 2026
32 of 33 checks passed
@aron-cf
aron-cf deleted the retain-node-modules branch August 19, 2026 13:05
@github-actions github-actions Bot mentioned this pull request Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant