mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-18 16:13:19 +00:00
Bring connector comments in line with where connections are managed
This commit is contained in:
1 parent
54e9e8a335
commit
736564198c
2 files changed
+8
-7
No files matched your search
@@ -110,8 +110,9 @@ export default function Connectors() {
|
||||
searchParams.delete('capability');
|
||||
setSearchParams(searchParams, { replace: true });
|
||||
};
|
||||
// Listed for syncing (Knowledge's Connect a service, the sources picker's
|
||||
// Connect more): a connect starts with Sync into Knowledge on.
|
||||
// Listed for syncing (Knowledge's Connect a service, Add knowledge's Browse
|
||||
// all connectors, the sources picker's Connect more): a connect starts with
|
||||
// Sync into Knowledge on.
|
||||
const withPurpose = (options: LaunchOptions = {}): LaunchOptions =>
|
||||
capability === 'sync' ? { ...options, purpose: 'knowledge' } : options;
|
||||
|
||||
|
||||
@@ -211,11 +211,11 @@ export default function Tools() {
|
||||
variant: 'default',
|
||||
},
|
||||
);
|
||||
// A connected server reconnects on its connector page, like any other
|
||||
// connection; only an MCP tool without one keeps the server form. The
|
||||
// tool's own connection id decides, for everyone: a teammate never sees
|
||||
// the owner's connection, and the owner's loads after the tools. A
|
||||
// shared OAuth server's sign-in is the owner's to redo.
|
||||
// A connected server signs in again through its connection (Sign in
|
||||
// again above, for the caller's own); only an MCP tool without one keeps
|
||||
// the server form. The tool's own connection id decides, for everyone: a
|
||||
// teammate never sees the owner's connection, and the owner's loads
|
||||
// after the tools. A shared OAuth server's sign-in is the owner's to redo.
|
||||
if (
|
||||
tool.name === 'mcp_tool' &&
|
||||
!tool.connection_id &&
|
||||
|
||||
Reference in new issue
Block a user