fix(servers): open settings tabs with history and keep server selection on load errors

External settings openers push a history entry and close the mobile sheet. The sidebar server selection only falls back to Local after the server list loads successfully.
This commit is contained in:
Chris Scott committed 2026-10-19 11:37:42 -04:00
1 parent 96e22dfa66
commit 42dd733378
15 files changed
+118 -30

No files matched your search

+1
View File
@@ -58,6 +58,7 @@ export function useOpenCodeServers(options: { enabled?: boolean } = {}) {
return {
servers: serversQuery.data ?? [],
isLoading: serversQuery.isLoading,
isSuccess: serversQuery.isSuccess,
error: serversQuery.error,
refetch: serversQuery.refetch,
createAsync: createMutation.mutateAsync,