Frequent UI Freezes (Beach Ball) during Agent Chat sessions on M4 Mac
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Quiet
- Tech stack
- macos, swift
- Domain
- desktop, performance
Research direction
The report names no source file or test. First reproduce a prolonged Agent Chat session on macOS 26.4, Xcode 26.4, and CopilotForXcode v0.47.0, then inspect the application state when the beach ball appears, including main-thread and memory behavior. Done means identifying the cause and verifying that the UI no longer freezes, with a regression check if applicable.
Written by the indexing model from the issue text.
Description
Description
I am experiencing frequent application hangs (spinning wait cursor/beach ball) when using the Agent Chat feature in CopilotForXcode. After a period of active use, the interface becomes unresponsive, necessitating a restart of Xcode to restore functionality.
Environment
Hardware: MacBook Air M4
Memory: 16GB RAM
macOS Version: [macOS 26.4]
Xcode Version: [Xcode 26.4]
CopilotForXcode Version: [v0.47.0]
Steps to Reproduce
Open Xcode and initiate a session with CopilotForXcode.
Engage in a prolonged conversation or multiple successive queries within the Agent Chat.
After some time, the UI freezes, and the "beach ball" appears.
Chat Window remains unresponsive for long time.
Observations
The issue seems to trigger more frequently during long chat histories.
System memory pressure appears manageable, but the communication between the agent and Xcode seems to dead-lock the main thread.
Restarting Xcode is currently the only workaround.
Additional Context
I am looking for advice on whether this is a known memory leak or a threading issue, and if there are any specific settings (e.g., chat history limits or model configurations) that can mitigate this behavior on 16GB RAM systems.
- Dominant language
- Swift
- Stars
- 6.3k
- Forks
- 2k
- Avg merge
- 3d 21h
- Merged PRs (30d)
- 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from github/CopilotForXcode
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
github/CopilotForXcode#181 · 2 reactions ·
-
Add ability to attach Copilot window only to Xcode projects/workspaces, ignoring standalone files Open
Difficulty 3/5 1-2 days Newbie friendliness 68/100
github/CopilotForXcode#945 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
github/CopilotForXcode#943 ·
-
Difficulty 5/5 Over a week Newbie friendliness 10/100
github/CopilotForXcode#936 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 10/100
github/CopilotForXcode#934 ·
All issues in github/CopilotForXcode
Similar issues
-
area:dictation documentation P2
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
uttrflow/uttrflow-swift#1180 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
OneBusAway/onebusaway-ios#1451 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100