CopilotForXcode icon indicating copy to clipboard operation
CopilotForXcode copied to clipboard

Chat Window UX Improvements

Open FelixLisczyk opened this issue 10 months ago • 8 comments

Hi there! 👋

I've been using the Copilot Chat window in Xcode and noticed a few things that could make the experience even better:

  • When attaching files, I need to manually click into the search field to start typing. It would feel more natural if the search field automatically got focus when I click the attachment icon.
  • I often find myself wanting to use the keyboard to select files from the search results, but currently I have to use the mouse. Adding keyboard navigation would make this much smoother!
  • A small but annoying thing: when I copy code using the button at the bottom, it adds markdown code block formatting (```) to the copied text. It would be great if it just copied the clean code. I know that there is a copy button inside the code block, but in longer conversations, I often have to scroll up to reach it.
  • The chat window keeps jumping to the bottom whenever it loses focus, which makes it tricky to read through longer conversations. It would be helpful if it maintained its scroll position.

These are all minor issues, but fixing them would make the chat experience feel much more polished and efficient.

Let me know if you need any additional information or would like me to clarify anything!

Environment:

Xcode Version: 16.2 GitHub Copilot Extension Version: 0.31.0 macOS Version: 15.3.1

FelixLisczyk avatar Feb 15 '25 15:02 FelixLisczyk

@FelixLisczyk Thanks for the feedback. We're looking into this.

The chat window keeps jumping to the bottom whenever it loses focus, which makes it tricky to read through longer conversations. It would be helpful if it maintained its scroll position.

For this one, could you explain it a little bit?. Don't get what's the problem.

testforstephen avatar Feb 18 '25 02:02 testforstephen

Hi check errors /

mokoanatshepo avatar Feb 18 '25 11:02 mokoanatshepo

@testforstephen I'm using the AeroSpace window manager to switch focus between windows using keyboard shortcuts. When I shift focus from the chat window to my Xcode window, it seems that Copilot briefly loses its reference to the active Xcode project, causing the window to reload. You can replicate this issue by opening two Xcode projects and switching between them. The chat window reloads and loses its previous scroll position.

Here is a screen recording:

https://github.com/user-attachments/assets/04a6198d-d0d1-4a21-99a4-0fc421933828

FelixLisczyk avatar Feb 18 '25 16:02 FelixLisczyk

@FelixLisczyk thanks for providing more info for the cursor position lost issue. I can reproduce it when switching Xcode between multiple workspaces. Will take a look on how to improve it.

For the first two keyboard navigation issues, we have published a pre-release 0.31.104 (https://github.com/github/CopilotForXcode/releases/tag/0.31.104) to improve it. Feel free to give a try.

testforstephen avatar Feb 27 '25 08:02 testforstephen

Thank you for the new update! I can confirm that the keyboard navigation issues are now resolved. However, the suggestions don't refresh as I type into the search field. They seem to update in the background because when I press enter on a suggestion, it inserts the correct file (matching my search query) into the chat.

Image

FelixLisczyk avatar Mar 01 '25 15:03 FelixLisczyk

Ok

El jue, 27 de feb de 2025, 2:28 a. m., Jinbo Wang @.***> escribió:

@FelixLisczyk https://github.com/FelixLisczyk thanks for providing more info for the cursor position lost issue. I can reproduce it when switching Xcode between multiple workspaces. Will take a look on how to improve it.

For the first two keyboard navigation issues, we have published a pre-release 0.31.104 ( https://github.com/github/CopilotForXcode/releases/tag/0.31.104) to improve it. Feel free to give a try.

— Reply to this email directly, view it on GitHub https://github.com/github/CopilotForXcode/issues/157#issuecomment-2687237068, or unsubscribe https://github.com/notifications/unsubscribe-auth/BPTD3M62CLOEHE3IOAQZ5E32R3EELAVCNFSM6AAAAABXGR64A6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOBXGIZTOMBWHA . You are receiving this because you are subscribed to this thread.Message ID: @.***> [image: testforstephen]testforstephen left a comment (github/CopilotForXcode#157) https://github.com/github/CopilotForXcode/issues/157#issuecomment-2687237068

@FelixLisczyk https://github.com/FelixLisczyk thanks for providing more info for the cursor position lost issue. I can reproduce it when switching Xcode between multiple workspaces. Will take a look on how to improve it.

For the first two keyboard navigation issues, we have published a pre-release 0.31.104 ( https://github.com/github/CopilotForXcode/releases/tag/0.31.104) to improve it. Feel free to give a try.

— Reply to this email directly, view it on GitHub https://github.com/github/CopilotForXcode/issues/157#issuecomment-2687237068, or unsubscribe https://github.com/notifications/unsubscribe-auth/BPTD3M62CLOEHE3IOAQZ5E32R3EELAVCNFSM6AAAAABXGR64A6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOBXGIZTOMBWHA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

dani33522 avatar Mar 05 '25 17:03 dani33522

💖

Juan reaccionó a través de Gmail https://www.google.com/gmail/about/?utm_source=gmail-in-product&utm_medium=et&utm_campaign=emojireactionemail#app

El mié, 5 de mar de 2025, 10:59 a. m., Juan Aza @.***> escribió:

Ok

El jue, 27 de feb de 2025, 2:28 a. m., Jinbo Wang < @.***> escribió:

@FelixLisczyk https://github.com/FelixLisczyk thanks for providing more info for the cursor position lost issue. I can reproduce it when switching Xcode between multiple workspaces. Will take a look on how to improve it.

For the first two keyboard navigation issues, we have published a pre-release 0.31.104 ( https://github.com/github/CopilotForXcode/releases/tag/0.31.104) to improve it. Feel free to give a try.

— Reply to this email directly, view it on GitHub https://github.com/github/CopilotForXcode/issues/157#issuecomment-2687237068, or unsubscribe https://github.com/notifications/unsubscribe-auth/BPTD3M62CLOEHE3IOAQZ5E32R3EELAVCNFSM6AAAAABXGR64A6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOBXGIZTOMBWHA . You are receiving this because you are subscribed to this thread.Message ID: @.***> [image: testforstephen]testforstephen left a comment (github/CopilotForXcode#157) https://github.com/github/CopilotForXcode/issues/157#issuecomment-2687237068

@FelixLisczyk https://github.com/FelixLisczyk thanks for providing more info for the cursor position lost issue. I can reproduce it when switching Xcode between multiple workspaces. Will take a look on how to improve it.

For the first two keyboard navigation issues, we have published a pre-release 0.31.104 ( https://github.com/github/CopilotForXcode/releases/tag/0.31.104) to improve it. Feel free to give a try.

— Reply to this email directly, view it on GitHub https://github.com/github/CopilotForXcode/issues/157#issuecomment-2687237068, or unsubscribe https://github.com/notifications/unsubscribe-auth/BPTD3M62CLOEHE3IOAQZ5E32R3EELAVCNFSM6AAAAABXGR64A6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOBXGIZTOMBWHA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

dani33522 avatar Mar 05 '25 17:03 dani33522

Google

Juan Aza (Link)

Juan Aza (Link)

Compartí una lista contigo

Ver en Google Maps

Google

© 2025 Google LLC 1600 Amphitheatre Parkway, Mountain View, CA 94043

Enviado por Juan Aza (Link) a través de Google Maps

dani33522 avatar Mar 29 '25 16:03 dani33522