Skip to content

Conversation

@ghostwriternr
Copy link
Member

Fixes #255

The 10MB output size limit was overly defensive and caused unexpected errors when reading large files. This PR removes the limit to trust developers to manage their own resource usage.

Changes

  • Remove size check from parseLogFile() in session.ts
  • Remove MAX_OUTPUT_SIZE_BYTES from config.ts
  • Remove maxOutputSizeBytes from SessionOptions
  • Update tests to verify large output works
  • Update documentation

Testing

  • All unit tests pass (453 container tests, 292 SDK tests)
  • Type checks and linting pass

🤖 Generated with Claude Code

The 10MB output size limit was overly defensive and caused
unexpected errors when reading large files. Trust developers
to manage their own resource usage.

Changes:
- Remove size check from parseLogFile in session.ts
- Remove MAX_OUTPUT_SIZE_BYTES from config.ts
- Remove maxOutputSizeBytes from SessionOptions
- Update tests to verify large output works
- Update documentation

Fixes #255

Co-authored-by: Naresh <[email protected]>
@changeset-bot
Copy link

changeset-bot bot commented Nov 26, 2025

🦋 Changeset detected

Latest commit: e141248

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

This PR includes changesets to release 1 package
Name Type
@cloudflare/sandbox 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

@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 26, 2025

Open in StackBlitz

npm i https://pkg.pr.new/cloudflare/sandbox-sdk/@cloudflare/sandbox@256

commit: e141248

@github-actions
Copy link
Contributor

🐳 Docker Image Published

FROM cloudflare/sandbox:0.0.0-pr-256-dfecdd3

Version: 0.0.0-pr-256-dfecdd3

You can use this Docker image with the preview package from this PR.

claude[bot]

This comment was marked as outdated.

@ghostwriternr ghostwriternr merged commit 088ee5f into main Nov 26, 2025
20 checks passed
@ghostwriternr ghostwriternr deleted the claude/issue-255-20251126-1603 branch November 26, 2025 16:44
@github-actions github-actions bot mentioned this pull request Nov 26, 2025
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.

Unexpected file size error being thrown when reading large file

1 participant