Skip to content

Commit 96f4f50

Browse files
committed
Agents UI: compose save state from config state
1 parent c6ff137 commit 96f4f50

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

ui/src/ui/controllers/agents.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { GatewayBrowserClient } from "../gateway.ts";
22
import type { AgentsListResult, ToolsCatalogResult } from "../types.ts";
33
import { saveConfig } from "./config.ts";
4+
import type { ConfigState } from "./config.ts";
45

56
export type AgentsState = {
67
client: GatewayBrowserClient | null;
@@ -14,16 +15,7 @@ export type AgentsState = {
1415
toolsCatalogResult: ToolsCatalogResult | null;
1516
};
1617

17-
export type AgentsConfigSaveState = AgentsState & {
18-
configSaving: boolean;
19-
configSnapshot: { hash?: string | null } | null;
20-
configFormDirty: boolean;
21-
configFormMode: "form" | "raw";
22-
configForm: Record<string, unknown> | null;
23-
configRaw: string;
24-
configSchema: unknown;
25-
lastError: string | null;
26-
};
18+
export type AgentsConfigSaveState = AgentsState & ConfigState;
2719

2820
export async function loadAgents(state: AgentsState) {
2921
if (!state.client || !state.connected) {

0 commit comments

Comments
 (0)