Skip to content

Conversation

AshishKumar4
Copy link
Collaborator

@AshishKumar4 AshishKumar4 commented Oct 20, 2025

Earlier, template zips were fetched from R2 via the worker binding in the worker, and copied over to the sandbox container as base64 string, then decoded. It required a container to be provisioned and fetching all the files again from the container counted towards subrequests. Bad in general.
This PR eliminates that by using fflate to unzip the templates zip directly within the worker, and thus eliminating the need for sandbox I/O.

This PR also removes storing template details object inside code generator agent's state, thus reducing the state bloat (agent sdk's cf_agent_state have a maximum limit on storage). Now, template details are fetched in onStart and cached in memory of the worker/Durable object.

This PR builds towards enabling full git repo support per app feature.

@AshishKumar4 AshishKumar4 changed the base branch from feat/agents-sdk-upgrade to nightly October 20, 2025 21:02
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