55
66import { libraryArtifactPath } from "@corbits/artifact-ui" ;
77import { describeApiError } from "@corbits/api-query" ;
8- import { listPrincipals } from "@corbits/settings-ui" ;
98import { ChatWorkspace , fetchWorkbenchBlob , type Part } from "@corbits/chat-ui" ;
109import {
1110 getResolvedCatalog ,
@@ -16,7 +15,6 @@ import { useCallback, useEffect, useMemo } from "react";
1615
1716import { fetchArtifactDetail } from "../api" ;
1817import { createChatApprovalActions } from "../approval-actions" ;
19- import { createChatBlockResponseActions } from "../block-response-actions" ;
2018import { createChatConnectServiceActions } from "../connect-service-actions" ;
2119import { useBench } from "../bench-context" ;
2220import { useSignOut , useSessionUser } from "../navigation" ;
@@ -108,13 +106,6 @@ export function ChatPage({
108106 ( ) => ( tenantId === null ? undefined : createChatApprovalActions ( tenantId , queryClient ) ) ,
109107 [ tenantId , queryClient ] ,
110108 ) ;
111- const blockResponses = useMemo (
112- ( ) =>
113- tenantId === null || workbenchId === null
114- ? undefined
115- : createChatBlockResponseActions ( tenantId , workbenchId ) ,
116- [ tenantId , workbenchId ] ,
117- ) ;
118109 const connectServiceActions = useMemo (
119110 ( ) => ( tenantId === null ? undefined : createChatConnectServiceActions ( tenantId , path ) ) ,
120111 [ tenantId , path ] ,
@@ -131,12 +122,6 @@ export function ChatPage({
131122 // the click).
132123 const providerHealthBanner = useProviderHealthBanner ( ) ;
133124 const requestPluginsConnect = useRequestPluginsConnect ( ) ;
134- const listMembers = useCallback ( async ( memberTenantId : string ) => {
135- const principals = await listPrincipals ( memberTenantId ) ;
136- return principals
137- . filter ( ( p ) => p . kind === "user" && p . status === "active" )
138- . map ( ( p ) => ( { id : p . id , displayName : p . displayName } ) ) ;
139- } , [ ] ) ;
140125
141126 const handleFixConnection = useCallback ( ( ) => {
142127 if ( providerHealthBanner === null ) {
@@ -264,9 +249,7 @@ export function ChatPage({
264249 { ...( hasUsableModel !== undefined ? { hasUsableModel } : { } ) }
265250 onConnectModel = { handleConnectModel }
266251 { ...( approvalActions !== undefined ? { approvalActions } : { } ) }
267- { ...( blockResponses !== undefined ? { blockResponses } : { } ) }
268252 { ...( connectServiceActions !== undefined ? { connectServiceActions } : { } ) }
269- listMembers = { listMembers }
270253 onWorkbenchNotFound = { reportWorkbenchNotFound }
271254 onGoToMissionControl = { ( ) => navigate ( MISSION_CONTROL_PATH ) }
272255 onNewWorkbench = { ( ) => navigate ( NEW_WORKBENCH_PATH ) }
0 commit comments