[PR #737] [CLOSED] fix: set optional provider attributes from nullable to nullable optional #9694

Closed
opened 2026-02-16 18:14:00 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/737
Author: @ryanjdillon
Created: 7/7/2025
Status: Closed

Base: devHead: fix/fix-provider-optional-tool-values


📝 Commits (1)

  • c72ae70 fix: make set nullable provider options to optional

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 packages/opencode/src/provider/provider.ts (+1 -1)

📄 Description

We experienced an error using the Azure provideer when directly requesting a command call, e.g.:

Prompt

run ls

This appeared to be due to optional tools fields being set to nullable and loosing their optional attribute.... Would need to go back to recreate this to be more detailed here--let me know if that helps.

Solution is define the value as optional after being set to nullable.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/737 **Author:** [@ryanjdillon](https://github.com/ryanjdillon) **Created:** 7/7/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `fix/fix-provider-optional-tool-values` --- ### 📝 Commits (1) - [`c72ae70`](https://github.com/anomalyco/opencode/commit/c72ae70a4aada4b6529f4186fa4f9b2ce18d396c) fix: make set nullable provider options to optional ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/provider/provider.ts` (+1 -1) </details> ### 📄 Description We experienced an error using the Azure provideer when directly requesting a command call, e.g.: **Prompt** ``` run ls ``` This appeared to be due to optional tools fields being set to nullable and loosing their optional attribute.... Would need to go back to recreate this to be more detailed here--let me know if that helps. Solution is define the value as optional after being set to nullable. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:00 -05:00
yindo closed this issue 2026-02-16 18:14:00 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9694