feat(openclaw): add default model button and fix sessionsApi export

- Add "Enable as Default" button to OpenClaw provider cards
- Place enable button before add/remove button for better UX
- Disable remove button when provider is set as default
- Add sessionsApi re-export from api barrel file to fix white screen
- Add i18n keys for default model feature (zh/en/ja)
This commit is contained in:
Jason
2026-02-07 09:37:59 +08:00
parent 26a2fc4fe0
commit f1fbe324d1
10 changed files with 146 additions and 6 deletions
+3
View File
@@ -187,6 +187,9 @@ export const useSwitchProviderMutation = (appId: AppId) => {
await queryClient.invalidateQueries({
queryKey: ["openclawLiveProviderIds"],
});
await queryClient.invalidateQueries({
queryKey: ["openclawDefaultModel"],
});
}
try {