Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion apps/desktop/electron/adapters/codex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export class CodexAdapter implements AgentAdapter {
installed: Boolean(await findCommand(context, "codex")),
configured,
activation: this.activation,
restartRequired: configured,
details: configured
? ["Restart Codex CLI or Codex Desktop after changing this connection."]
: [],
Expand Down
1 change: 0 additions & 1 deletion apps/desktop/electron/adapters/dsh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export class DshAdapter implements AgentAdapter {
installed,
configured,
activation: this.activation,
restartRequired: false,
details: ["DSH settings are hot-reloaded.", "DSH is currently a developer preview."],
});
}
Expand Down
1 change: 0 additions & 1 deletion apps/desktop/electron/adapters/hermes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export class HermesAdapter implements AgentAdapter {
installed: Boolean(hermes),
configured: hasHermesConfig(config),
activation: this.activation,
restartRequired: false,
details: hermes
? hasHermesConfig(config)
? ["New Hermes chats use ClawRouter; an open session switches with /model."]
Expand Down
1 change: 0 additions & 1 deletion apps/desktop/electron/adapters/openclaw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export class OpenClawAdapter implements AgentAdapter {
installed,
configured: hasOpenClawConfig(config),
activation: this.activation,
restartRequired: hasOpenClawConfig(config),
details: installed
? hasOpenClawConfig(config)
? ["Restart the OpenClaw gateway after changing this connection."]
Expand Down
1 change: 0 additions & 1 deletion apps/desktop/electron/adapters/pi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export class PiAdapter implements AgentAdapter {
installed: Boolean(await findCommand(context, "pi")),
configured,
activation: this.activation,
restartRequired: false,
details: configured
? [
"Open /model (or press Ctrl+L) in Pi to use or refresh ClawRouter models; no restart is needed.",
Expand Down
2 changes: 0 additions & 2 deletions apps/desktop/electron/adapters/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export async function statusShape(input: {
installed: boolean;
configured: boolean;
activation: ActivationMode;
restartRequired?: boolean;
details?: string[];
}): Promise<AgentStatus> {
const proxyReachable = await proxyHealth(input.context);
Expand All @@ -31,7 +30,6 @@ export async function statusShape(input: {
proxyReachable,
health,
activation: input.activation,
restartRequired: input.restartRequired ?? false,
removalMode: "unavailable",
details: input.details ?? [],
};
Expand Down
8 changes: 7 additions & 1 deletion apps/desktop/electron/core/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ export type AgentStatus = {
configured: boolean;
proxyReachable: boolean;
health: AgentHealth;
// No `restartRequired` here on purpose. Nothing can observe whether an agent
// process has picked a config change up, so a status field claiming it would be
// a guess — and the two adapters that had one set it to a constant function of
// `configured`, making it permanently true. `activation` carries the category
// ("this kind of agent needs a restart when you change it"), which is the only
// part that is knowable. WalletMutationResult and PaymentChainSwitchResult below
// DO carry it, and there it is real: Desktop has just written the config itself.
activation: ActivationMode;
restartRequired: boolean;
removalMode: "restore" | "disconnect" | "unavailable";
details: string[];
};
Expand Down
5 changes: 0 additions & 5 deletions apps/desktop/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ const demoAgents: AgentStatus[] = [
proxyReachable: true,
health: "ready",
activation: "restart-gateway",
restartRequired: false,
removalMode: "disconnect",
details: [],
},
Expand All @@ -51,7 +50,6 @@ const demoAgents: AgentStatus[] = [
proxyReachable: true,
health: "ready",
activation: "restart-agent",
restartRequired: true,
removalMode: "restore",
details: ["Restart Codex Desktop after changing the active provider."],
},
Expand All @@ -64,7 +62,6 @@ const demoAgents: AgentStatus[] = [
proxyReachable: true,
health: "needs-attention",
activation: "immediate",
restartRequired: false,
removalMode: "disconnect",
details: [],
},
Expand All @@ -77,7 +74,6 @@ const demoAgents: AgentStatus[] = [
proxyReachable: true,
health: "not-installed",
activation: "immediate",
restartRequired: false,
removalMode: "unavailable",
details: ["DSH settings are hot-reloaded.", "DSH is currently a developer preview."],
},
Expand All @@ -90,7 +86,6 @@ const demoAgents: AgentStatus[] = [
proxyReachable: true,
health: "needs-attention",
activation: "immediate",
restartRequired: false,
removalMode: "unavailable",
details: [],
},
Expand Down
Loading