From f02ae35634f1e0fc3fccd1509d0e0ef40d45a6ae Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Fri, 30 Jan 2026 12:47:02 -0800 Subject: [PATCH] Fix auth plugin dynamic form inputs broken after first request The call_http_authentication_request handler was mutating auth.args with the result of applyDynamicFormInput(), which strips the dynamic callback functions. This permanently corrupted the plugin module's args, making all dynamic form controls (checkboxes, selects, etc.) unresponsive for that auth type after sending the first request. --- packages/plugin-runtime/src/PluginInstance.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugin-runtime/src/PluginInstance.ts b/packages/plugin-runtime/src/PluginInstance.ts index 36e288ba..42815d6d 100644 --- a/packages/plugin-runtime/src/PluginInstance.ts +++ b/packages/plugin-runtime/src/PluginInstance.ts @@ -338,8 +338,8 @@ export class PluginInstance { if (payload.type === 'call_http_authentication_request' && this.#mod?.authentication) { const auth = this.#mod.authentication; if (typeof auth?.onApply === 'function') { - auth.args = await applyDynamicFormInput(ctx, auth.args, payload); - payload.values = applyFormInputDefaults(auth.args, payload.values); + const resolvedArgs = await applyDynamicFormInput(ctx, auth.args, payload); + payload.values = applyFormInputDefaults(resolvedArgs, payload.values); this.#sendPayload( context, {