@lightcone-ai/daemon 0.23.0 → 0.23.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightcone-ai/daemon",
3
- "version": "0.23.0",
3
+ "version": "0.23.2",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -707,6 +707,12 @@ export class AgentManager {
707
707
 
708
708
  _buildCodexMcpArgs(mcpServers) {
709
709
  const args = [];
710
+ // Codex's default tool_timeout_sec for MCP tool calls is short (~120s).
711
+ // Fine for fast tools, but kills slow vision/analysis tools — notably
712
+ // `page-understanding/analyze_page` which takes 5-10 min on long
713
+ // mp.weixin articles. Apply a 900s ceiling to every MCP server here;
714
+ // fast tools return well within this, slow tools stop getting killed.
715
+ const TOOL_TIMEOUT_SEC = 900;
710
716
  for (const [serverKey, server] of Object.entries(mcpServers)) {
711
717
  const normalizedKey = String(serverKey ?? '').trim();
712
718
  if (!normalizedKey) continue;
@@ -722,6 +728,7 @@ export class AgentManager {
722
728
  '-c', `mcp_servers.${keyExpr}.command=${commandExpr}`,
723
729
  '-c', `mcp_servers.${keyExpr}.args=${argsExpr}`,
724
730
  '-c', `mcp_servers.${keyExpr}.enabled=true`,
731
+ '-c', `mcp_servers.${keyExpr}.tool_timeout_sec=${TOOL_TIMEOUT_SEC}`,
725
732
  );
726
733
  if (server.required === true) {
727
734
  args.push('-c', `mcp_servers.${keyExpr}.required=true`);