refactor: tighten type system across backend + frontend (#920)

This commit is contained in:
Carlos Florêncio
2026-05-17 20:16:15 +01:00
committed by GitHub
parent ca1e72374b
commit f6bd83da33
173 changed files with 1840 additions and 849 deletions
@@ -109,7 +109,10 @@ function useWatchFormData(workspaceId: string) {
const agentProfiles = useAppStore((state) => state.agentProfiles.items);
const executors = useAppStore((state) => state.executors.items);
const allExecutorProfiles = useMemo(
() => executors.filter((e) => e.type !== "local").flatMap((e) => e.profiles ?? []),
() =>
executors
.filter((e) => e.type !== "local" && e.type !== "local_pc")
.flatMap((e) => e.profiles ?? []),
[executors],
);
@@ -173,7 +173,10 @@ function useWatchFormData(workspaceId: string) {
const agentProfiles = useAppStore((state) => state.agentProfiles.items);
const executors = useAppStore((state) => state.executors.items);
const allExecutorProfiles = useMemo(
() => executors.filter((e) => e.type !== "local").flatMap((e) => e.profiles ?? []),
() =>
executors
.filter((e) => e.type !== "local" && e.type !== "local_pc")
.flatMap((e) => e.profiles ?? []),
[executors],
);