Conversation
|
Size Change: +129 B (0%) Total Size: 25.9 MB ℹ️ View Unchanged
|
Summary of ChangesHello, 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 resolves an issue where Kitty keyboard protocol codes were not consistently enabled in Windows Terminal, particularly after the terminal entered alternate buffer mode. The fix re-sequences the activation of terminal capabilities, moving the Highlights
Changelog
Activity
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 addresses an issue with enabling Kitty protocol support on Windows Terminal by deferring the operation until after the Ink UI has initialized. The approach of decoupling capability detection from enabling the modes is sound. However, this change introduces a potential race condition where the modes could be enabled before terminal capability detection is complete. I have added a critical review comment detailing this issue and proposing a refactoring that aligns with repository guidelines for managing asynchronous state to ensure the operation is robust and executes in the correct order.

Summary
fix enabling kitty codes on Windows Terminal
Details
We used to enable kitty mode before starting up ink but this leads to issues in Windows Terminal. This is because enabling alternate Buffer mode seems to reset the kitty code state on Windows Terminal.
Related Issues
Fixes #20882
How to Validate
Run Windows Terminal Canary (version 1.25+) and verify that
shift+enterworks.Pre-Merge Checklist