fix(openclaw): pass providerKey in AddProviderDialog submit handler

The providerKey was only being passed for opencode, causing openclaw
provider creation to fail with "Provider key is required" error.
This commit is contained in:
Jason
2026-02-05 21:29:24 +08:00
parent 392344e1e9
commit 227f08e910
@@ -94,7 +94,8 @@ export function AddProviderDialog({
...(values.meta ? { meta: values.meta } : {}),
};
if (appId === "opencode" && values.providerKey) {
// OpenCode/OpenClaw: pass providerKey for ID generation
if ((appId === "opencode" || appId === "openclaw") && values.providerKey) {
providerData.providerKey = values.providerKey;
}