From 9134471143cd883366f9b595e498a4a956ff071b Mon Sep 17 00:00:00 2001 From: Dustin Healy <54083382+dustinhealy@users.noreply.github.com> Date: Mon, 19 Jan 2026 09:02:24 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=8E=20fix:=20Focus=20Credential=20Inpu?= =?UTF-8?q?ts=20in=20Agent=20Tools=20(#11394)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: focus transfer on add tool in Add Tools dialog * fix: focus transfer to inputs on add mcp server in Add MCP Server Tools dialog * chore: add comments disabling ESLint autfocus and documenting the purpose of the override * chore: remove stray newline --- client/src/components/MCP/CustomUserVarsSection.tsx | 12 ++++++++++-- .../src/components/Plugins/Store/PluginAuthForm.tsx | 7 ++++++- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/client/src/components/MCP/CustomUserVarsSection.tsx b/client/src/components/MCP/CustomUserVarsSection.tsx index 987613e24c..339b78f6b9 100644 --- a/client/src/components/MCP/CustomUserVarsSection.tsx +++ b/client/src/components/MCP/CustomUserVarsSection.tsx @@ -23,9 +23,10 @@ interface AuthFieldProps { hasValue: boolean; control: any; errors: any; + autoFocus?: boolean; } -function AuthField({ name, config, hasValue, control, errors }: AuthFieldProps) { +function AuthField({ name, config, hasValue, control, errors, autoFocus }: AuthFieldProps) { const localize = useLocalize(); const statusText = hasValue ? localize('com_ui_set') : localize('com_ui_unset'); @@ -85,6 +86,11 @@ function AuthField({ name, config, hasValue, control, errors }: AuthFieldProps)