Skip to content
Open
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
4 changes: 0 additions & 4 deletions desktop/src/features/agents/channelAttachmentFailure.ts

This file was deleted.

14 changes: 0 additions & 14 deletions desktop/src/features/agents/ui/AgentManagementDialogs.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useAgentManagement } from "@/features/agents/useAgentManagement";
import { AgentCardDialogs } from "./AgentCardViewerDialog";
import { AgentDialog } from "./AgentDialog";
import { SecretRevealDialog } from "./SecretRevealDialog";

/** Global review surfaces opened by owned agents through the Buzz harness. */
export function AgentManagementDialogs() {
Expand All @@ -25,19 +24,6 @@ export function AgentManagementDialogs() {
runtimeCatalogStatus={management.runtimeCatalogStatus}
/>
) : null}
{management.createdAgent ? (
<SecretRevealDialog
attachmentFailure={management.attachmentFailure}
created={management.createdAgent}
isRetryingAttachment={management.isRetryingAttachment}
onOpenChange={(open) => {
if (!open) management.dismissCreatedAgent();
}}
onRetryAttachment={() => {
void management.retryAttachment();
}}
/>
) : null}
{management.request?.action === "update" ? (
<AgentDialog
description=""
Expand Down
19 changes: 0 additions & 19 deletions desktop/src/features/agents/ui/AgentsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { AgentSnapshotImportDialog } from "./AgentSnapshotImportDialog";
import { TeamSnapshotExportDialog } from "./TeamSnapshotExportDialog";
import { TeamSnapshotImportDialog } from "./TeamSnapshotImportDialog";
import { TeamShareDialog } from "./TeamShareDialog";
import { SecretRevealDialog } from "./SecretRevealDialog";
import { TeamDeleteDialog } from "./TeamDeleteDialog";
import { TeamDialog } from "./TeamDialog";
import { TeamsSection } from "./TeamsSection";
Expand Down Expand Up @@ -344,24 +343,6 @@ export function AgentsView() {
open={agents.agentToAddToChannel !== null}
/>
) : null}
{agents.createdAgent ? (
<SecretRevealDialog
created={agents.createdAgent}
onOpenChange={(open) => {
if (!open) {
agents.setCreatedAgent(null);
}
}}
/>
) : null}
{personas.createdAgent ? (
<SecretRevealDialog
created={personas.createdAgent}
onOpenChange={(open) => {
if (!open) personas.dismissCreatedAgent();
}}
/>
) : null}
{personas.personaDialogState ? (
<AgentDialog
description={personas.personaDialogState.description}
Expand Down
14 changes: 0 additions & 14 deletions desktop/src/features/agents/ui/RequestedAgentCreateDialogs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
type OpenCreateAgentOptions,
} from "@/features/agents/openCreateAgentEvent";
import { AgentDialog } from "./AgentDialog";
import { SecretRevealDialog } from "./SecretRevealDialog";
import { usePersonaActions } from "./usePersonaActions";

/** App-level create flow so contextual entry points do not navigate away. */
Expand Down Expand Up @@ -64,19 +63,6 @@ export function RequestedAgentCreateDialogs() {
}
/>
) : null}
{personas.createdAgent ? (
<SecretRevealDialog
attachmentFailure={personas.attachmentFailure}
created={personas.createdAgent}
isRetryingAttachment={personas.isRetryingAttachment}
onOpenChange={(open) => {
if (!open) personas.dismissCreatedAgent();
}}
onRetryAttachment={() => {
void personas.retryAttachment();
}}
/>
) : null}
</>
);
}
121 changes: 0 additions & 121 deletions desktop/src/features/agents/ui/SecretRevealDialog.tsx

This file was deleted.

16 changes: 3 additions & 13 deletions desktop/src/features/agents/ui/useManagedAgentActions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as React from "react";
import { toast } from "sonner";

import {
type AttachManagedAgentToChannelResult,
Expand All @@ -15,12 +16,7 @@ import {
import { useGlobalAgentConfig } from "@/features/agents/useGlobalAgentConfig";
import { useChannelsQuery } from "@/features/channels/hooks";
import { usePresenceQuery } from "@/features/presence/hooks";
import type {
AgentPersona,
Channel,
CreateManagedAgentResponse,
ManagedAgent,
} from "@/shared/api/types";
import type { AgentPersona, Channel, ManagedAgent } from "@/shared/api/types";
import { removeChannelMember } from "@/shared/api/tauri";
import { normalizePubkey } from "@/shared/lib/pubkey";
import {
Expand Down Expand Up @@ -52,8 +48,6 @@ export function useManagedAgentActions() {
const [isCreateOpen, setIsCreateOpen] = React.useState(false);
const [agentToAddToChannel, setAgentToAddToChannel] =
React.useState<ManagedAgent | null>(null);
const [createdAgent, setCreatedAgent] =
React.useState<CreateManagedAgentResponse | null>(null);
const [startingPersonaIds, setStartingPersonaIds] = React.useState<
ReadonlySet<string>
>(() => new Set());
Expand Down Expand Up @@ -229,13 +223,11 @@ export function useManagedAgentActions() {
const input = await buildInstanceInputForDefinition(persona, runtime);

const created = await createAgentMutation.mutateAsync(input);
setCreatedAgent(created);
toast.success("Agent created");
const notices = [...warnings];

if (created.spawnError) {
setActionErrorMessage(created.spawnError);
} else {
notices.push(`Started ${created.agent.name}.`);
}

if (created.profileSyncError) {
Expand Down Expand Up @@ -440,8 +432,6 @@ export function useManagedAgentActions() {
setIsCreateOpen,
agentToAddToChannel,
setAgentToAddToChannel,
createdAgent,
setCreatedAgent,
logAgentPubkey,
setLogAgentPubkey,
actionNoticeMessage,
Expand Down
4 changes: 0 additions & 4 deletions desktop/src/features/agents/ui/usePersonaActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,6 @@ export function usePersonaActions() {
setPersonaErrorMessage(
`${persona.displayName} was created, but it did not start: ${created.spawnError}`,
);
} else {
setPersonaNoticeMessage(
`Created and started ${created.agent.name}.`,
);
}
if (created.profileSyncError) {
setPersonaErrorMessage(
Expand Down
Loading