Conversation
Summary of ChangesHello @scidomino, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request aims to resolve input issues experienced by users on older terminal emulators. By re-implementing a fast return buffering mechanism, it ensures that return key presses are correctly interpreted, particularly when bracketed paste mode is not supported. This change enhances the application's robustness and user experience across a broader range of terminal environments. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request re-introduces fast return buffering to support older terminals that lack bracketed paste mode, addressing a regression. The implementation is well-contained and conditionally applied, which is a good approach. However, a key concern is the absence of unit tests for the new bufferFastReturn function. Since this logic modifies user input based on timing, adding tests is critical to ensure its correctness and prevent future issues.
|
Size Change: +484 B (0%) Total Size: 22.3 MB ℹ️ View Unchanged
|

Summary
Add fast return buffering for older terminals that don't support bracketed paste mode.
Details
We removed this in #16179 but it looks like it is still needed in some cases.
Related Issues
Fixes #15849
Pre-Merge Checklist