Skip to content

large(ish) files were not working#69

Merged
cramforce merged 3 commits intovercel-labs:mainfrom
robertyates:large-file-handling
Feb 7, 2026
Merged

large(ish) files were not working#69
cramforce merged 3 commits intovercel-labs:mainfrom
robertyates:large-file-handling

Conversation

@robertyates
Copy link
Contributor

@robertyates robertyates commented Jan 30, 2026

i have been looking to use just-bash with modestly sized files e.g. around 0.5 MB and running into various challenges

the core issues stem from the use of the spread operator which runs into limits

i have replaced the ones I have found so far with equivalent buffer operations

@vercel
Copy link

vercel bot commented Jan 30, 2026

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

A member of the Team first needs to authorize it.

.join("");
}
if (encoding === "binary" || encoding === "latin1") {
return String.fromCharCode(...buffer);
Copy link

@vercel vercel bot Jan 30, 2026

Choose a reason for hiding this comment

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

Base64 encoding in fromBuffer fails with large buffers (>100KB) due to JavaScript call stack limit when using String.fromCharCode(...buffer) spread operator.

Fix on Vercel

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, that is what i removed, this is an agent review of the diff and it's looking at the old code (which I removed)

@robertyates
Copy link
Contributor Author

@cramforce any chance you could take a quick look at this and merge if possible, issue is here - #71

@cramforce
Copy link
Contributor

Looks good. Can you address the spread comment?

@cramforce
Copy link
Contributor

Could you provide a list of failing commands?

And just want to make sure you are aware that you can use custom commands to get this into your own agent

@robertyates
Copy link
Contributor Author

Looks good. Can you address the spread comment?

i assume you mean the agent's review, it's comment is based on the old code, it seems to be reviewing the diff and it's seeing the removed lines. The problem that it is recognizing is what I removed.

@robertyates
Copy link
Contributor Author

Could you provide a list of failing commands?

And just want to make sure you are aware that you can use custom commands to get this into your own agent

i think this is meant for the other PR i.e. #84

will continue the conversation over there

@cramforce
Copy link
Contributor

Could you fix lint

@robertyates
Copy link
Contributor Author

fixed the linting errors, apologies

@cramforce cramforce merged commit 0d87a8f into vercel-labs:main Feb 7, 2026
2 of 4 checks passed
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.

3 participants