diff --git a/desktop/src/features/agents/ui/AgentDefinitionDialog.tsx b/desktop/src/features/agents/ui/AgentDefinitionDialog.tsx index 509bb5b425..4a4566f5b7 100644 --- a/desktop/src/features/agents/ui/AgentDefinitionDialog.tsx +++ b/desktop/src/features/agents/ui/AgentDefinitionDialog.tsx @@ -102,8 +102,6 @@ type AgentDefinitionDialogProps = { isPending: boolean; runtimes: AcpRuntimeCatalogEntry[]; runtimeCatalogStatus?: "loading" | "ready" | "error"; - /** When true, D-fields render disabled + "Managed by team" notice; submit blocked. */ - definitionReadOnly?: boolean; onDirtyChange?: (dirty: boolean) => void; onOpenChange: (open: boolean) => void; onSubmit: ( @@ -132,7 +130,6 @@ export function AgentDefinitionDialog({ isPending, runtimes, runtimeCatalogStatus = "ready" as const, - definitionReadOnly = false, onDirtyChange, onOpenChange, onSubmit, @@ -494,7 +491,6 @@ export function AgentDefinitionDialog({ // Gate model/provider validity through missingNormalizedFields — single // source of truth with the readiness gate so display and Save can't drift. const canSubmit = - !definitionReadOnly && canSubmitPersonaDialog({ displayName, isPending }) && (!isCreateMode || runtime.trim().length > 0) && (!isCreateMode || selectedRuntimeIsAvailable) && @@ -746,7 +742,7 @@ export function AgentDefinitionDialog({ > { setHasUserChanges(true); @@ -760,12 +756,6 @@ export function AgentDefinitionDialog({ />
- {definitionReadOnly ? ( -

- This agent is managed by a team. Its configuration cannot be edited - here. -

- ) : null}