chore: rebuild CentOS7 release package
This commit is contained in:
@@ -425,12 +425,24 @@ function completeMcpToolTurn(thread, turnId) {
|
||||
const ccwebConfig = thread.config?.['mcp_servers.ccweb'] || null;
|
||||
const projectConfig = thread.config?.['mcp_servers.reg-app-project'] || null;
|
||||
const env = ccwebConfig?.env || {};
|
||||
let urlSourceSessionId = null;
|
||||
let urlSourceHopCount = null;
|
||||
try {
|
||||
if (ccwebConfig?.url) {
|
||||
const parsedUrl = new URL(ccwebConfig.url);
|
||||
urlSourceSessionId = parsedUrl.searchParams.get('sourceSessionId') || null;
|
||||
urlSourceHopCount = parsedUrl.searchParams.get('sourceHopCount') || null;
|
||||
}
|
||||
} catch {}
|
||||
const payload = {
|
||||
ok: true,
|
||||
currentConversationId: env.CC_WEB_SOURCE_SESSION_ID || null,
|
||||
sourceHopCount: env.CC_WEB_CROSS_HOP_COUNT || null,
|
||||
currentConversationId: env.CC_WEB_SOURCE_SESSION_ID || urlSourceSessionId,
|
||||
sourceHopCount: env.CC_WEB_CROSS_HOP_COUNT || urlSourceHopCount,
|
||||
hasCcwebMcpConfig: Boolean(ccwebConfig),
|
||||
hasProjectMcpConfig: Boolean(projectConfig),
|
||||
ccwebType: ccwebConfig?.type || (ccwebConfig?.url ? 'streamable_http' : (ccwebConfig?.command ? 'stdio' : null)),
|
||||
ccwebUrl: ccwebConfig?.url || null,
|
||||
ccwebBearerTokenEnvVar: ccwebConfig?.bearer_token_env_var || null,
|
||||
ccwebCommand: ccwebConfig?.command || null,
|
||||
ccwebArgs: ccwebConfig?.args || null,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user