You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Nearby text cursor widget doesn't show on different display monitor #651
I have checked FAQ, and there is no solution to my issue
I have searched the existing issues, and there is no existing issue for my issue
What happened?
A bug happened!
In case you move Xcode to another monitor, you'll not be able to see the widget anymore when "nearby text cursor" is set. It is working again when Xcode is moved to the main monitor.
How to reproduce the bug.
Move the Xcode to the other monitor then the main one
Thanks for reporting. Are you running Xcode in fullscreen? I can reproduce it when the Xcode window is fullscreen. What was the previous version you are using?
I can reproduce it on both fullscreen and not fullscreen, but everything is OK when Xcode is moved to the main monitor. It is also reproducible in Xcode 16.4.
The reason behind this issue is that the screen frame’s origin is set at the bottom left corner, while the windows start from the top left corner. Unfortunately, my display setup doesn’t seem to be revealing this case.
Open Console.app, select the device you are using and click start streaming. Then paste to the search field subsystem:com.intii.CopilotForXcode and category:Debug one at a time. Try to move the window to different displays and type.
You will see 5 types of logs:
logs starting with "OverlayPanel", you will see what frame the overlay is setting to. (the first value starts from the bottom left)
logs starting with "Focused windowFrame". When you see it, it mean the editor and the corresponding display is probably correctly detected.
logs starting with "No focused editor". When you see it, it means either the editor or the corresponding display is not detected.
logs starting with "Updating window locations", you will see what the frames are assigned to the widgets. Please pay attention to "Suggestion Panel Frame". Does it have a value? Is it inside the correct display? (origin from bottom left)
logs starting with "Screen frames" shows you all the screen frames. (origin from bottom left). Usually the main screen has an origin zero.
So it started working for me with the recent version (probably also with the first test build you've sent me). I have to completely remove old Copilot For Xcode app and use just this one. I think it used the old bridge service.. Now I can see the dialog.
Activity
intitni commentedon Nov 28, 2025
Thanks for reporting. Are you running Xcode in fullscreen? I can reproduce it when the Xcode window is fullscreen. What was the previous version you are using?
shatodj commentedon Nov 28, 2025
I can reproduce it on both fullscreen and not fullscreen, but everything is OK when Xcode is moved to the main monitor. It is also reproducible in Xcode 16.4.
shatodj commentedon Nov 28, 2025
Maybe this will also be helpful for you ;)
intitni commentedon Nov 28, 2025
The reason behind this issue is that the screen frame’s origin is set at the bottom left corner, while the windows start from the top left corner. Unfortunately, my display setup doesn’t seem to be revealing this case.
intitni commentedon Nov 28, 2025
Does this version work for you? https://github.com/intitni/CopilotForXcode/releases/download/0.37.0/Copilot.for.Xcode_test.zip
The Xcode chat panel overlay has the same issue and I am still working on it.
shatodj commentedon Nov 28, 2025
Unfortunately it is not working for me. Same issue.
intitni commentedon Nov 28, 2025
Interesting.. Do you mind running the following code in a Swift Playground and show me the output? Make sure the playground platform is set to macOS.
intitni commentedon Nov 28, 2025
If you have time, please also give this version a try https://github.com/intitni/CopilotForXcode/releases/download/0.37.0/Copilot.for.Xcode_test2.zip
This time, turn on the debug menu here
And then turn on the overlay debug from the menu
You should then see a green overlay on top of Xcode. Let me know if you can see them in all displays.
shatodj commentedon Nov 28, 2025
I can't see the green overlay for my current arrangement
.. but I can see it for these:
Also this one works with the main screen above:I'm strugeling with the Playground with AppKit.. not able to send you the output 🤦♂️
shatodj commentedon Nov 28, 2025
nah.. sorry.. the last one is not working eighter..
intitni commentedon Nov 28, 2025
That's weird.. I tried a similar arrangement and it was working for me.
We will need to print some logs. Please use this version https://github.com/intitni/CopilotForXcode/releases/download/0.37.0/Copilot.for.Xcode_test3.zip
Open Console.app, select the device you are using and click start streaming. Then paste to the search field
subsystem:com.intii.CopilotForXcodeandcategory:Debugone at a time. Try to move the window to different displays and type.You will see 5 types of logs:
shatodj commentedon Nov 28, 2025
So it started working for me with the recent version (probably also with the first test build you've sent me). I have to completely remove old Copilot For Xcode app and use just this one. I think it used the old bridge service.. Now I can see the dialog.
Thank you very much for the fix! 👍
intitni commentedon Nov 28, 2025
Great! Releasing it soon!
intitni commentedon Nov 28, 2025
Fixed in 0.37.1