Fix: Unable to navigate from the agent list page to the compilation editing page. (#17460)

This commit is contained in:
balibabu
2026-07-28 13:59:57 +08:00
committed by GitHub
parent 0fdefb284e
commit cc0fbd37ef
42 changed files with 200 additions and 195 deletions

View File

@@ -212,7 +212,7 @@ export const BedrockInstanceCard = forwardRef<
useEffect(() => {
// Reset form when initial values change (e.g. instance details load).
form.reset(initialValues);
// eslint-disable-next-line react-hooks/exhaustive-deps
// oxlint-disable-next-line react/exhaustive-deps
}, [initialValues]);
const authMode = useWatch({ control: form.control, name: 'auth_mode' });

View File

@@ -704,7 +704,7 @@ export function useFormFields(
{}) as Record<string, any>;
void _ignored;
return rest;
// eslint-disable-next-line react-hooks/exhaustive-deps
// oxlint-disable-next-line react/exhaustive-deps
}, [defaultValuesKey]);
return { formFields, formDefaultValues };

View File

@@ -188,7 +188,7 @@ export function useModelsCatalog({
if (!credsReady) return;
hasAutoFetchedRef.current = true;
handleListModels();
// eslint-disable-next-line react-hooks/exhaustive-deps
// oxlint-disable-next-line react/exhaustive-deps
}, [providerName, instanceName, hideActions, credsReady]);
// Mark `hasFetched` true once the per-instance query resolves — even if

View File

@@ -239,7 +239,7 @@ export const SoMarkInstanceCard = forwardRef<
useEffect(() => {
// Reset form when initial values change (e.g. instance details load).
form.reset(initialValues);
// eslint-disable-next-line react-hooks/exhaustive-deps
// oxlint-disable-next-line react/exhaustive-deps
}, [initialValues]);
const imageFormatOptions = useMemo(

View File

@@ -156,7 +156,7 @@ export const useListModelsPicker = ({
];
}
}
// eslint-disable-next-line react-hooks/exhaustive-deps
// oxlint-disable-next-line react/exhaustive-deps
}, [visible, editMode, viewMode]);
// Triggered by ToggleList's onOpenChange — fires the API call with the