Repository navigation
Put presigned S3 URLs first in file hints, proxy only as fallback - #8
Merged
Merged
Conversation
The upload_file/download_file hints put the proxy URL into the main curl command while the text called the proxy a fallback. AI clients copy the command verbatim, so every transfer went through Cloudflare: ~90 KB/s instead of ~57 MB/s from S3 for downloads, and uploads over 100 MB were rejected with 413. The hint now starts with the presigned command; when the proxy is enabled a separate sentence names proxy_url/proxy_upload_url and gives the full fallback command (uploads: limited to ~100 MB). The tool descriptions say the same. JSON field names and response structure are unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
hintreturned bydownload_file/upload_fileput the proxy URL into the main curl command, while the text said the proxy is only a fallback. AI clients copy that command verbatim, so every transfer went throughwatchword.giglabo.com(Cloudflare):Change
download_url/upload_url(upload keeps theContent-Typeheader). When the proxy is enabled, a separate sentence namesproxy_url/proxy_upload_urland gives the full fallback command; the upload fallback mentions the ~100 MB limit.internal/config/config.godefaults): presigned URLs are the primary, fast path; proxy URLs are fallbacks for sandboxes that cannot reach S3.🤖 Generated with Claude Code