Skip to content

fix(cli): apply --files startup seed in virtual shell#164

Open
savageops wants to merge 1 commit intovercel-labs:mainfrom
savageops:fix/cli-shell-files-startup-seed
Open

fix(cli): apply --files startup seed in virtual shell#164
savageops wants to merge 1 commit intovercel-labs:mainfrom
savageops:fix/cli-shell-files-startup-seed

Conversation

@savageops
Copy link
Copy Markdown

@savageops savageops commented Mar 20, 2026

Summary

The interactive shell accepted --files and parsed JSON input, but never applied those files to the runtime filesystem.

This PR wires --files into shell startup by seeding the OverlayFS before constructing Bash.

Why

This is a user-facing contract bug: a documented option was a silent no-op.

Changes

  • Add seedOverlayFiles helper for startup fixtures.
  • Call helper in src/cli/shell.ts constructor path.
  • Add focused tests for seeded startup files and omitted-file behavior.

Validation

  • pnpm test:run src/cli/shell-files.test.ts (2/2 passing)

Risk

Low.

  • Change is isolated to shell startup path.
  • No command/runtime parser/interpreter behavior changed.
  • Covered by targeted tests.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 20, 2026

@savageops is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

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