放宽 MCP 重载库存等待窗口
This commit is contained in:
Binary file not shown.
@@ -5173,12 +5173,13 @@ async function handleReloadMcpApi(req, res, rawSessionId) {
|
|||||||
let inventoryResult = null;
|
let inventoryResult = null;
|
||||||
if (mcpStatus?.status === 'ready') {
|
if (mcpStatus?.status === 'ready') {
|
||||||
const targetSession = loadSession(sessionId);
|
const targetSession = loadSession(sessionId);
|
||||||
|
const reloadInventoryTimeoutMs = CODEX_APP_MCP_STARTUP_TIMEOUT_SEC * 1000;
|
||||||
inventoryResult = await waitForCodexAppMcpInventory(targetSession, {
|
inventoryResult = await waitForCodexAppMcpInventory(targetSession, {
|
||||||
threadId: currentThreadId,
|
threadId: currentThreadId,
|
||||||
requireCcweb: true,
|
requireCcweb: true,
|
||||||
requireServers: expectedCodexAppMcpServers(targetSession),
|
requireServers: expectedCodexAppMcpServers(targetSession),
|
||||||
timeoutMs: 5000,
|
timeoutMs: reloadInventoryTimeoutMs,
|
||||||
maxWaitMs: 5000,
|
maxWaitMs: reloadInventoryTimeoutMs,
|
||||||
});
|
});
|
||||||
updateCodexAppSessionMcpInventory(sessionId, inventoryResult);
|
updateCodexAppSessionMcpInventory(sessionId, inventoryResult);
|
||||||
mcpStatus = buildCodexAppMcpStatusSummary(loadSession(sessionId), { reloadRequestedAt });
|
mcpStatus = buildCodexAppMcpStatusSummary(loadSession(sessionId), { reloadRequestedAt });
|
||||||
|
|||||||
Reference in New Issue
Block a user