chore: fix code formatting and test setup

- Format Rust code with rustfmt (misc.rs, types.rs)
- Format TypeScript/React code with Prettier (4 files)
- Fix ProviderList test by wrapping with QueryClientProvider
This commit is contained in:
Jason
2026-01-20 23:40:33 +08:00
parent 00168877d9
commit b993b1f664
7 changed files with 66 additions and 25 deletions
@@ -31,15 +31,15 @@ export function useModelState({
if (lastConfigRef.current === settingsConfig) {
return;
}
if (isUserEditingRef.current) {
isUserEditingRef.current = false;
lastConfigRef.current = settingsConfig;
return;
}
lastConfigRef.current = settingsConfig;
try {
const cfg = settingsConfig ? JSON.parse(settingsConfig) : {};
const env = cfg?.env || {};