-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Default to full file reads #3936
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
Conversation
|
This PR explicitly makes the tool not do what it tells the AI to do. With this change, by default, even if the AI provides There are a few problems with this:
Or any other rationale that made #1440 added in the first place. |
Yeah that’s a good point - we should probably make the prompts smarter. And you can always change your settings if you prefer the partial reads, but I and others noticed that the AI seems to make a lot more mistakes when using partial reads so we decided to change the default. |
|
Yes, but the implementation leads to misleading output to the user. A better way to implement it may be if This probably involves some refactoring — first |
|
I agree, that’s a great point. We should fix. |
|
in order to test out Roo-Code I try to replicate fixing the issue pointed out above, and immediately see an issue when full file read is not enabled (GPT 4.1 mini): The cause is because it only reads line 1–40 previously. That said, the reaction makes sense — it doesn't know the surrounding context yet, so its best guess is the user forget the closing quote there. It might helps here when, in partial Another idea would be in [also lesson learnt: don't use Roo-Code in development mode to develop itself, otherwise you will get
and the extension being killed. I think it's worth adding this as a note to Local Setup & Development |
…ger (RooCodeInc#3936) * fix(bedrock): resolve AWS credential caching issue with Identity Manager - Add ignoreCache option for profile-based authentication to detect external credential file changes - Implement smart caching for manual credentials with 5-minute TTL to maintain performance - Add configuration hash-based cache invalidation for manual credential changes - Add invalidateCredentialCache() method for error recovery scenarios Fixes issue where AWS Identity Manager credential updates were not detected, requiring extension restart. Profile-based authentication now always reads fresh credentials while manual credentials maintain performance through caching. Resolves credential refresh issues reported by users using AWS Identity Manager with role-based authentication workflows. * Potential fix for code scanning alert no. 66: Use of a broken or weak cryptographic algorithm Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * merge conflict * updated to fixe the original medrock issue --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

Anecdotally Roo seems dumber when it doesn't read the whole file. I think full file reads are a safer default for now.