Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: lower max file size, char limit #849

Merged
merged 3 commits into from
Jan 29, 2025
Merged

fix: lower max file size, char limit #849

merged 3 commits into from
Jan 29, 2025

Conversation

salman1993
Copy link
Collaborator

No description provided.

const MAX_FILE_SIZE: u64 = 2 * 1024 * 1024; // 2MB in bytes
const MAX_CHAR_COUNT: usize = 1 << 20; // 2^20 characters (1,048,576)
// Check file size first (400KB limit)
const MAX_FILE_SIZE: u64 = 400 * 1024; // 400KB in bytes
Copy link
Collaborator

Choose a reason for hiding this comment

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

let's recreate the same limit on shell tool outputs? and same warning/error

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@salman1993 salman1993 requested a review from baxen January 28, 2025 23:09
@salman1993 salman1993 merged commit c74059b into main Jan 29, 2025
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