MCPcopy Index your code
hub / github.com/continuedev/continue / useTUIChatServices

Function useTUIChatServices

extensions/cli/src/ui/TUIChat.tsx:87–109  ·  view source on GitHub ↗
(remoteUrl?: string)

Source from the content-addressed store, hash-verified

85
86// Custom hook to manage services
87function useTUIChatServices(remoteUrl?: string) {
88 const isRemoteMode = useMemo(() => !!remoteUrl, [remoteUrl]);
89
90 const { services, allReady: allServicesReady } = useServices<{
91 auth: AuthServiceState;
92 config: ConfigServiceState;
93 model: ModelServiceState;
94 mcp: MCPServiceState;
95 apiClient: ApiClientServiceState;
96 update: UpdateServiceState;
97 toolPermissions: ToolPermissionServiceState;
98 }>([
99 "auth",
100 "config",
101 "model",
102 "mcp",
103 "apiClient",
104 "update",
105 "toolPermissions",
106 ]);
107
108 return { services, allServicesReady, isRemoteMode };
109}
110
111// Organization names are no longer available (Hub integration removed)
112function useOrganizationName(_organizationId?: string): string | undefined {

Callers 1

TUIChatFunction · 0.85

Calls 1

useServicesFunction · 0.85

Tested by

no test coverage detected