Skip to content

fix(provider): safely call curl.post for model policy#1419

Merged
deathbeam merged 1 commit into
CopilotC-Nvim:mainfrom
deathbeam:safely-call
Sep 16, 2025
Merged

fix(provider): safely call curl.post for model policy#1419
deathbeam merged 1 commit into
CopilotC-Nvim:mainfrom
deathbeam:safely-call

Conversation

@deathbeam
Copy link
Copy Markdown
Collaborator

Wrap curl.post in pcall to prevent errors when enabling model policy. This avoids potential crashes if the request fails.

Wrap curl.post in pcall to prevent errors when enabling model policy.
This avoids potential crashes if the request fails.
@deathbeam deathbeam added the bug Something isn't working label Sep 16, 2025
@deathbeam deathbeam merged commit 2279dbe into CopilotC-Nvim:main Sep 16, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant