Output code breaks
Describe the bug
I have a swift file. The total lines are 632, but Claude Sonnet 4 can't output the whole file in one output. I have to ask it to separate output into multiple parts.
I believe Claude Sonnet 4 should output more than that. I want to know if this is a internal limitation of Copilot.
Versions
- Copilot for Xcode: 0.38.0
- Xcode: 16.4 (16F6)
- macOS: 15.6 Beta(24G5065c)
Steps to reproduce
- Find a swift file with 600 to 700 lines.
- Revise some parts and let AI to output the whole file.
Screenshots
Breaks at line 564.
Logs
Additional context
In Ask mode, I tried to ask Copilot to refactor a large file with 1200+ LOC, and output the total optimized code. It can print the total code in the response. Looks like the line limitation is not the issue. It might be some other issue like response timeout.
@owenzhao Could you check the response icon status at the beginning of response view? If it's the icon below, not the checked icon, then it means interrupted by the response timeout.
Yes. It always is the timeout icon. I had never experienced the other kind. Every time it stopped with the timeout icon. So I thought it was the only way. Also, the stoping line was always the same, for example, on a stop, if I said continue, it would stop again at the same line, so I thought it was because of context. If not, the line should be not the same.
If it's the timeout issue, there will be an error message "Failed to send request conversation/create. Error: Language server error: Timeout, please try again later" printed in the log file ~/Library/Logs/GitHubCopilot/github-copilot-for-xcode.log
Ask mode sets a default 90s timeout for response generation, we can make it longer. Agent mode does not have the limitation.