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: Cannot read properties of null (reading 'length') when using BYOK #3911
I was having the same issue with the Python Copilot SDK. I believe this error occurs when the OpeanAI compatible API returns a null value for tool_calls.
According to the OpenAI API docs, this field is an optional array. Copilot should check if it is null before checking the array's length.
Seeing this error on github-copilot-sdk 1.0.4 with copilot-cli 1.0.65 and 1.0.66.
Thanks for the report. We've shipped fixes in this area since this was filed (most recently in Copilot CLI v1.0.81), and we believe this may now be resolved. Could you retest on the latest release (Copilot CLI v1.0.103) and let us know whether you still see it? If we don't hear back in a couple of weeks, we may close this issue — you can always reopen it.
Triaged as part of a Copilot SDK backlog review, with help from GitHub Copilot.
Activity
martimmatias commentedon Jun 30, 2026
I was having the same issue with the Python Copilot SDK. I believe this error occurs when the OpeanAI compatible API returns a null value for
tool_calls.According to the OpenAI API docs, this field is an optional array. Copilot should check if it is null before checking the array's length.
Seeing this error on github-copilot-sdk 1.0.4 with copilot-cli 1.0.65 and 1.0.66.
patniko commentedon Oct 26, 2026
Thanks for the report. We've shipped fixes in this area since this was filed (most recently in Copilot CLI v1.0.81), and we believe this may now be resolved. Could you retest on the latest release (Copilot CLI v1.0.103) and let us know whether you still see it? If we don't hear back in a couple of weeks, we may close this issue — you can always reopen it.
Triaged as part of a Copilot SDK backlog review, with help from GitHub Copilot.