-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Improve file read truncation UX with tooltips and consistent line range notifications #3633
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
base: main
Are you sure you want to change the base?
Conversation
…s of maxReadFileLine setting
|
Hey @cannuri, It seems like something happened when you generated the Other than that this looks good to me. |
Description
This PR addresses several issues related to file reading functionality and improves the user experience when working with large files and line range notifications:
Closes #3351
Added tooltips for truncation messages:
tools.json
files to the webview-ui directory for all supported languages, ensuring consistent translations across both components of the application.Enhanced readFileTool with improved auto-truncate handling:
wasAutoTruncated
flag was not being set correctly, leading to inconsistent UI behavior when files were truncated.wasAutoTruncated
flag to ensure it's only set when a file is actually truncated due to themaxReadFileLine
setting, not when the user explicitly requests a range of lines.Improved line range notifications:
maxReadFileLine
setting, leading to inconsistent UI feedback.maxReadFileLine
setting, making the UI more consistent and informative.Hidden truncation messages for explicit line range reads:
UI improvements:
settings
,context
, andthreshold
), ensuring consistency across the UI and all supported languages.These changes collectively improve the user experience when working with file content in Roo, making the behavior more intuitive and the UI more informative, especially when dealing with large files or specific line ranges.
Test Procedure
Testing was performed by:
node scripts/find-missing-translations.js
) to ensure all translations are completeType of Change
Pre-flight Checklist
npm test
) and code is formatted and linted (npm run format && npm run lint
)npm run changeset
(required for user-facing changes)Screenshots
BEFORE:

AFTER:

Additional Notes
This PR highlights the importance of maintaining consistent translation namespaces across both the extension and webview components. For future development, we should consider adding an automated check to ensure translation namespaces remain synchronized between the two components to prevent similar issues.
The improvements to line range notifications and truncation handling make the file reading experience more intuitive and consistent for users, especially when working with large files or specific line ranges.
Important
Enhance file read UX with tooltips, consistent line range notifications, and updated translations.
ChatRow.tsx
to guide users on adjusting file read settings.wasAutoTruncated
flag logic inreadFileTool()
inreadFileTool.ts
to ensure correct UI behavior.readFileTool()
to always display line range notifications.readFileTool.ts
.tools.json
for all supported languages inwebview-ui/src/i18n/locales/
to support new tooltips and messages.ClineSayTool
inExtensionMessage.ts
to includewasAutoTruncated
property.This description was created by
for b93412b. You can customize this summary. It will automatically update as commits are pushed.