提交前确认 · Pre-submission checklist
问题类别 · Category
稳定性 / 崩溃 · Stability / Crash
涉及的 Agent 框架 · Agent framework
ZCode Agent(自研)
严重程度 · Severity
阻塞使用 · Blocking (无法使用核心功能 / core function unusable)
复现频率 · Reproducibility
必现 · Always
问题描述 · Description
环境信息
ZCode Desktop: 3.1.8(Windows)
远程 agent bundle: 0.13.3(zcode.cjs)
远程主机: Linux(局域网,无公网出口,仅可通过 http_proxy 访问外网)
连接方式: SSH 工作区(target.kind === "ssh")
问题描述
通过 SSH 连接一台无公网、仅可通过 http_proxy 上网的局域网服务器作为工作区。该服务器 ~/.bashrc 中已正确设置 http_proxy / https_proxy(终端里 curl、git 等均可正常走代理)。
但在 ZCode 中聊天时 agent 持续"重试中",远程日志显示 agent 直连 open.bigmodel.cn:443、未走代理,因服务器无公网而被拒绝:
json
{
"event": "model.network.failed",
"status": "failed",
"reason": "network_error",
"baseURL": "https://open.bigmodel.cn/api/anthropic",
"statusMessage": "Cannot connect to API: connect ECONNREFUSED 60.205.172.105:443",
"maxAttempts": 11,
"attempt": 4,
"transport": "sse"
}
影响
影响所有"内网/无公网 + 仅代理上网"的远程服务器用户,是远程连接在受限网络环境的常见场景。
复现步骤 · Steps to reproduce
准备一台无公网、仅可通过 http_proxy 访问外网的 Linux 服务器。
在该服务器 ~/.bashrc 中 export https_proxy=...(终端验证 curl https://open.bigmodel.cn 走代理可通)。
ZCode 中以 SSH 方式连接该服务器作为工作区。
发起任意一次 agent 聊天 → 持续"重试中",远程日志出现 ECONNREFUSED ... :443
期望表现 · Expected behavior
远程 agent 进程应能通过服务器侧配置的代理访问 LLM API。
实际表现 · Actual behavior
发起任意一次 agent 聊天 → 持续"重试中",远程日志出现 ECONNREFUSED ... :443
ZCode 版本 · ZCode version
v3.1.8
设备 / 系统 / 浏览器 · Device / OS / Browser
windows11
截图 / 录屏 / 日志 · Screenshots / Recordings / Logs
{"timestamp":"2026-06-27T05:03:02.815Z","level":"info","event":"zcode_protocol.startup.started","module":"bootstrap.zcode_protocol","message":"ZCode Protocol agent startup started","traceId":"2e4d4137-7e38-4d07-a19a-bc4ddf9188d4","spanId":"48ff35c5-71f4-49","durationMs":0,"status":"started","context":{"entrypoint":"zcode_protocol","startupKind":"zcode_protocol_agent","version":"0.14.8","stage":"start","totalDurationMs":1}}
{"timestamp":"2026-06-27T05:03:02.819Z","level":"info","event":"zcode_protocol.startup.sqlite_migration.started","module":"bootstrap.zcode_protocol","message":"ZCode Protocol SQLite migration started","traceId":"2e4d4137-7e38-4d07-a19a-bc4ddf9188d4","spanId":"48ff35c5-71f4-49","durationMs":0,"status":"started","context":{"entrypoint":"zcode_protocol","startupKind":"zcode_protocol_agent","dbPath":"/home/lh/.zcode/cli/db/db.sqlite","stage":"migrate_session_db","totalDurationMs":6}}
{"timestamp":"2026-06-27T05:03:02.823Z","level":"info","event":"zcode_protocol.startup.sqlite_migration.completed","module":"bootstrap.zcode_protocol","message":"ZCode Protocol SQLite migration completed","traceId":"2e4d4137-7e38-4d07-a19a-bc4ddf9188d4","spanId":"48ff35c5-71f4-49","durationMs":9,"status":"completed","context":{"entrypoint":"zcode_protocol","startupKind":"zcode_protocol_agent","dbPath":"/home/lh/.zcode/cli/db/db.sqlite","stage":"migrate_session_db","totalDurationMs":9}}
{"timestamp":"2026-06-27T05:03:02.824Z","level":"info","event":"zcode_protocol.startup.completed","module":"bootstrap.zcode_protocol","message":"ZCode Protocol agent startup completed","traceId":"2e4d4137-7e38-4d07-a19a-bc4ddf9188d4","spanId":"48ff35c5-71f4-49","durationMs":10,"status":"completed","context":{"entrypoint":"zcode_protocol","startupKind":"zcode_protocol_agent","stage":"total","totalDurationMs":10}}
{"timestamp":"2026-06-27T05:03:02.824Z","level":"info","event":"log.retention.cleanup.scheduled","module":"adapters.logging","message":"Log retention cleanup scheduled","traceId":"2e4d4137-7e38-4d07-a19a-bc4ddf9188d4","spanId":"48ff35c5-71f4-49","status":"waiting","context":{"entrypoint":"zcode_protocol","delayMs":60000,"logDir":"/home/lh/.zcode/cli/log","retentionDays":7}}
{"timestamp":"2026-06-27T05:03:02.836Z","level":"info","event":"zcode_protocol.workspace_update_provider_registry.started","module":"bootstrap.zcode_protocol","message":"ZCode Protocol workspace/updateProviderRegistry started","status":"started","context":{"includeWorkspaceState":false,"incomingProviderCount":2,"previousProviderCount":0,"revision":"sha256:3098d0c717ca9a0f199bbe1efb583c5b441bfcdb19f8e1d0ec9bc0d3942de9b5","workspaceKey":"remote:ssh:172.31.226.10:22:lh:/home/lh/Neural-MDPP-Public","workspacePath":"/home/lh/Neural-MDPP-Public"}}
{"timestamp":"2026-06-27T05:03:02.837Z","level":"info","event":"zcode_protocol.workspace_update_provider_registry.completed","module":"bootstrap.zcode_protocol","message":"ZCode Protocol workspace/updateProviderRegistry completed","durationMs":1,"status":"completed","context":{"buildStateDurationMs":0,"changedModelLimitCount":3,"emitSessionSettingsDurationMs":0,"includeWorkspaceState":false,"providerCount":2,"revision":"sha256:3098d0c717ca9a0f199bbe1efb583c5b441bfcdb19f8e1d0ec9bc0d3942de9b5","syncActiveAppsDurationMs":0,"updateStatus":"applied","workspaceKey":"remote:ssh:172.31.226.10:22:lh:/home/lh/Neural-MDPP-Public","workspacePath":"/home/lh/Neural-MDPP-Public"}}
{"timestamp":"2026-06-27T05:03:03.365Z","level":"info","event":"zcode_protocol.session_create.started","module":"bootstrap.zcode_protocol","message":"ZCode Protocol session/create started","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","status":"started","context":{"hasInitialModel":true,"hasInitialThoughtLevel":false,"inboundTraceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","persistence":"deferred","workspaceKey":"remote:ssh:172.31.226.10:22:lh:/home/lh/Neural-MDPP-Public","workspacePath":"/home/lh/Neural-MDPP-Public"}}
{"timestamp":"2026-06-27T05:03:03.365Z","level":"info","event":"zcode_protocol.create_record.mcp_config","module":"bootstrap.zcode_protocol","message":"ZCode Protocol createRecord MCP config","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","context":{"rootTraceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","inboundTraceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","paramMcpServerCount":0,"runtimeHasMcpConfig":false,"runtimeMcpServerCount":0,"workspaceKey":"remote:ssh:172.31.226.10:22:lh:/home/lh/Neural-MDPP-Public","workspacePath":"/home/lh/Neural-MDPP-Public"}}
{"timestamp":"2026-06-27T05:03:03.374Z","level":"info","event":"bootstrap.app.startup.started","module":"bootstrap","message":"ZCode app startup started","traceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","spanId":"2a186a45-1725-47","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","durationMs":0,"status":"started","context":{"startupKind":"zcode_app","hasInjectedModelAdapter":false,"resume":false,"stage":"start","totalDurationMs":1}}
{"timestamp":"2026-06-27T05:03:03.375Z","level":"info","event":"bootstrap.app.startup.config.completed","module":"bootstrap","message":"ZCode app configuration loaded","traceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","spanId":"2a186a45-1725-47","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","durationMs":2,"status":"completed","context":{"startupKind":"zcode_app","configSourceEnv":false,"configSourceProject":false,"configSourceUser":false,"stage":"load_config","totalDurationMs":2}}
{"timestamp":"2026-06-27T05:03:03.378Z","level":"info","event":"bootstrap.app.startup.plugins.completed","module":"bootstrap","message":"ZCode plugins resolved","traceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","spanId":"2a186a45-1725-47","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","durationMs":4,"status":"completed","context":{"startupKind":"zcode_app","commandRootCount":0,"diagnosticCount":0,"enabledPluginCount":0,"hookCount":0,"mcpServerCount":0,"pluginCount":0,"pluginStorageRoot":"/home/lh/.zcode/cli/plugins","skillRootCount":0,"stage":"resolve_plugins","totalDurationMs":5}}
{"timestamp":"2026-06-27T05:03:03.557Z","level":"info","event":"bootstrap.app.startup.runtime_config.completed","module":"bootstrap","message":"ZCode runtime configuration resolved","traceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","spanId":"2a186a45-1725-47","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","durationMs":179,"status":"completed","context":{"startupKind":"zcode_app","mcpEnabled":true,"memoryEnabled":true,"memoryRoot":"/home/lh/.zcode/cli/memories/projects/neural-mdpp-public-0ea5c2866f6f041a","memorySummaryMaxBytes":8192,"memoryUse":true,"maxOutputTokens":"[Redacted]","mode":"build","model":"builtin:bigmodel-coding-plan/GLM-5.2","workingDirectory":"/home/lh/Neural-MDPP-Public","stage":"resolve_runtime_config","totalDurationMs":184}}
{"timestamp":"2026-06-27T05:03:03.558Z","level":"info","event":"bootstrap.app.startup.storage.completed","module":"bootstrap","message":"ZCode storage adapters initialized","traceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","spanId":"2a186a45-1725-47","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","durationMs":0,"status":"completed","context":{"startupKind":"zcode_app","hasInjectedArtifactStore":false,"hasInjectedSessionStore":true,"cliStorageRoot":"/home/lh/.zcode/cli","storageRoot":"/home/lh/.zcode","stage":"initialize_storage","totalDurationMs":185}}
{"timestamp":"2026-06-27T05:03:03.558Z","level":"info","event":"bootstrap.app.startup.mcp.completed","module":"bootstrap","message":"ZCode MCP adapter initialized","traceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","spanId":"2a186a45-1725-47","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","durationMs":0,"status":"completed","context":{"startupKind":"zcode_app","hasInjectedMcpPort":false,"mcpEnabled":true,"mcpServerCount":0,"trustedMcpServerCount":0,"stage":"initialize_mcp","totalDurationMs":185}}
{"timestamp":"2026-06-27T05:03:03.561Z","level":"info","event":"bootstrap.app.startup.runtime.completed","module":"bootstrap","message":"ZCode runtime constructed","traceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","spanId":"2a186a45-1725-47","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","durationMs":3,"status":"completed","context":{"startupKind":"zcode_app","hasInjectedModelAdapter":false,"stage":"create_runtime","totalDurationMs":188}}
{"timestamp":"2026-06-27T05:03:03.561Z","level":"info","event":"bootstrap.app.startup.completed","module":"bootstrap","message":"ZCode app startup completed","traceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","spanId":"2a186a45-1725-47","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","durationMs":188,"status":"completed","context":{"startupKind":"zcode_app","workingDirectory":"/home/lh/Neural-MDPP-Public","stage":"total","totalDurationMs":188}}
{"timestamp":"2026-06-27T05:03:03.562Z","level":"info","event":"log.retention.cleanup.scheduled","module":"adapters.logging","message":"Log retention cleanup scheduled","traceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","spanId":"2a186a45-1725-47","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","status":"waiting","context":{"delayMs":60000,"logDir":"/home/lh/.zcode/cli/log","retentionDays":7}}
{"timestamp":"2026-06-27T05:03:03.743Z","level":"info","event":"session.model.updated","module":"bootstrap","message":"Session model updated","traceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","spanId":"2a186a45-1725-47","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","status":"completed","context":{"model":"builtin:bigmodel-coding-plan/GLM-5.2","previousModel":"builtin:bigmodel-coding-plan/GLM-5.2"}}
{"timestamp":"2026-06-27T05:03:03.985Z","level":"info","event":"zcode_protocol.session_create.completed","module":"bootstrap.zcode_protocol","message":"ZCode Protocol session/create completed","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","durationMs":621,"status":"completed","context":{"hasInitialModel":true,"hasInitialThoughtLevel":false,"messageCount":0,"persistence":"deferred","recordCreateDurationMs":200,"rootTraceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","setInitialModelDurationMs":241,"snapshotPhaseDurationsMs":{"contextUsageBreakdownEvents":0,"eventSeq":1,"goalVerificationEvents":0,"persistedMessages":1,"persistedSession":1,"rewindEvents":0,"target":0,"todos":0,"buildSnapshot":177},"snapshotDurationMs":179,"syncModelCatalogDurationMs":0,"workspaceKey":"remote:ssh:172.31.226.10:22:lh:/home/lh/Neural-MDPP-Public","workspacePath":"/home/lh/Neural-MDPP-Public"}}
{"timestamp":"2026-06-27T05:03:10.343Z","level":"info","module":"bootstrap.zcode_protocol","message":"ZCode Protocol session/send accepted","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","context":{"attachmentCount":0,"inputId":"e6f0e2a9-16e3-4ae1-8f5f-722d9ea3aa28","queryId":"efa3f063-a4c0-488a-857f-d4c88da2ff6d","textLength":2,"workspacePath":"/home/lh/Neural-MDPP-Public"}}
{"timestamp":"2026-06-27T05:03:10.343Z","level":"info","module":"bootstrap.zcode_protocol","message":"ZCode Protocol background turn started","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","context":{"inputId":"e6f0e2a9-16e3-4ae1-8f5f-722d9ea3aa28","queryId":"efa3f063-a4c0-488a-857f-d4c88da2ff6d","textLength":2,"workspacePath":"/home/lh/Neural-MDPP-Public"}}
{"timestamp":"2026-06-27T05:03:10.711Z","level":"info","event":"turn.started","module":"core.runtime","message":"Turn started","traceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","spanId":"aaa699fb-f11d-4b","parentSpanId":"2a186a45-1725-47","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","turnId":"turn_f2355afe-0bd8-424a-a4d8-3109bd430114","status":"started","context":{"queryId":"efa3f063-a4c0-488a-857f-d4c88da2ff6d","turnNumber":0,"inputLength":2}}
{"timestamp":"2026-06-27T05:03:11.194Z","level":"warn","event":"model.request.failed","module":"adapters.model","message":"Model request attempt failed","traceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","spanId":"f2df4df1-6af7-45","parentSpanId":"aaa699fb-f11d-4b","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","turnId":"turn_f2355afe-0bd8-424a-a4d8-3109bd430114","durationMs":455,"status":"failed","context":{"queryId":"efa3f063-a4c0-488a-857f-d4c88da2ff6d","attempt":1,"baseURL":"https://open.bigmodel.cn/api/anthropic","maxAttempts":11,"maxRetries":10,"modelId":"GLM-5.2","providerId":"builtin:bigmodel-coding-plan","providerKind":"anthropic","querySource":"main_turn","requestId":"14d26643-ceba-4825-b111-6520a1cf2b90","transport":"sse","reason":"network_error","retryable":true,"statusMessage":"Cannot connect to API: connect ECONNREFUSED 60.205.172.105:443"}}
{"timestamp":"2026-06-27T05:03:11.194Z","level":"warn","event":"model.network.failed","module":"core.runtime","message":"Model network request failed","traceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","spanId":"f2df4df1-6af7-45","parentSpanId":"aaa699fb-f11d-4b","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","turnId":"turn_f2355afe-0bd8-424a-a4d8-3109bd430114","durationMs":455,"status":"failed","context":{"queryId":"efa3f063-a4c0-488a-857f-d4c88da2ff6d","turnNumber":0,"model":"builtin:bigmodel-coding-plan/GLM-5.2","iteration":0,"querySource":"main_turn","attempt":1,"baseURL":"https://open.bigmodel.cn/api/anthropic","maxAttempts":11,"modelId":"GLM-5.2","providerId":"builtin:bigmodel-coding-plan","providerKind":"anthropic","requestId":"14d26643-ceba-4825-b111-6520a1cf2b90","transport":"sse","reason":"network_error","retryable":true,"statusMessage":"Cannot connect to API: connect ECONNREFUSED 60.205.172.105:443"}}
{"timestamp":"2026-06-27T05:03:11.200Z","level":"warn","event":"model.retry.scheduled","module":"adapters.model","message":"Model request retry scheduled","traceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","spanId":"f2df4df1-6af7-45","parentSpanId":"aaa699fb-f11d-4b","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","turnId":"turn_f2355afe-0bd8-424a-a4d8-3109bd430114","status":"waiting","context":{"queryId":"efa3f063-a4c0-488a-857f-d4c88da2ff6d","attempt":1,"baseURL":"https://open.bigmodel.cn/api/anthropic","maxAttempts":11,"maxRetries":10,"modelId":"GLM-5.2","providerId":"builtin:bigmodel-coding-plan","providerKind":"anthropic","querySource":"main_turn","requestId":"14d26643-ceba-4825-b111-6520a1cf2b90","transport":"sse","delayMs":1391,"nextAttempt":2,"reason":"network_error","statusMessage":"Cannot connect to API: connect ECONNREFUSED 60.205.172.105:443"}}
提交前确认 · Pre-submission checklist
问题类别 · Category
稳定性 / 崩溃 · Stability / Crash
涉及的 Agent 框架 · Agent framework
ZCode Agent(自研)
严重程度 · Severity
阻塞使用 · Blocking (无法使用核心功能 / core function unusable)
复现频率 · Reproducibility
必现 · Always
问题描述 · Description
环境信息
ZCode Desktop: 3.1.8(Windows)
远程 agent bundle: 0.13.3(zcode.cjs)
远程主机: Linux(局域网,无公网出口,仅可通过 http_proxy 访问外网)
连接方式: SSH 工作区(target.kind === "ssh")
问题描述
通过 SSH 连接一台无公网、仅可通过 http_proxy 上网的局域网服务器作为工作区。该服务器 ~/.bashrc 中已正确设置 http_proxy / https_proxy(终端里 curl、git 等均可正常走代理)。
但在 ZCode 中聊天时 agent 持续"重试中",远程日志显示 agent 直连 open.bigmodel.cn:443、未走代理,因服务器无公网而被拒绝:
json
{
"event": "model.network.failed",
"status": "failed",
"reason": "network_error",
"baseURL": "https://open.bigmodel.cn/api/anthropic",
"statusMessage": "Cannot connect to API: connect ECONNREFUSED 60.205.172.105:443",
"maxAttempts": 11,
"attempt": 4,
"transport": "sse"
}
影响
影响所有"内网/无公网 + 仅代理上网"的远程服务器用户,是远程连接在受限网络环境的常见场景。
复现步骤 · Steps to reproduce
准备一台无公网、仅可通过 http_proxy 访问外网的 Linux 服务器。
在该服务器 ~/.bashrc 中 export https_proxy=...(终端验证 curl https://open.bigmodel.cn 走代理可通)。
ZCode 中以 SSH 方式连接该服务器作为工作区。
发起任意一次 agent 聊天 → 持续"重试中",远程日志出现 ECONNREFUSED ... :443
期望表现 · Expected behavior
远程 agent 进程应能通过服务器侧配置的代理访问 LLM API。
实际表现 · Actual behavior
发起任意一次 agent 聊天 → 持续"重试中",远程日志出现 ECONNREFUSED ... :443
ZCode 版本 · ZCode version
v3.1.8
设备 / 系统 / 浏览器 · Device / OS / Browser
windows11
截图 / 录屏 / 日志 · Screenshots / Recordings / Logs
{"timestamp":"2026-06-27T05:03:02.815Z","level":"info","event":"zcode_protocol.startup.started","module":"bootstrap.zcode_protocol","message":"ZCode Protocol agent startup started","traceId":"2e4d4137-7e38-4d07-a19a-bc4ddf9188d4","spanId":"48ff35c5-71f4-49","durationMs":0,"status":"started","context":{"entrypoint":"zcode_protocol","startupKind":"zcode_protocol_agent","version":"0.14.8","stage":"start","totalDurationMs":1}}
{"timestamp":"2026-06-27T05:03:02.819Z","level":"info","event":"zcode_protocol.startup.sqlite_migration.started","module":"bootstrap.zcode_protocol","message":"ZCode Protocol SQLite migration started","traceId":"2e4d4137-7e38-4d07-a19a-bc4ddf9188d4","spanId":"48ff35c5-71f4-49","durationMs":0,"status":"started","context":{"entrypoint":"zcode_protocol","startupKind":"zcode_protocol_agent","dbPath":"/home/lh/.zcode/cli/db/db.sqlite","stage":"migrate_session_db","totalDurationMs":6}}
{"timestamp":"2026-06-27T05:03:02.823Z","level":"info","event":"zcode_protocol.startup.sqlite_migration.completed","module":"bootstrap.zcode_protocol","message":"ZCode Protocol SQLite migration completed","traceId":"2e4d4137-7e38-4d07-a19a-bc4ddf9188d4","spanId":"48ff35c5-71f4-49","durationMs":9,"status":"completed","context":{"entrypoint":"zcode_protocol","startupKind":"zcode_protocol_agent","dbPath":"/home/lh/.zcode/cli/db/db.sqlite","stage":"migrate_session_db","totalDurationMs":9}}
{"timestamp":"2026-06-27T05:03:02.824Z","level":"info","event":"zcode_protocol.startup.completed","module":"bootstrap.zcode_protocol","message":"ZCode Protocol agent startup completed","traceId":"2e4d4137-7e38-4d07-a19a-bc4ddf9188d4","spanId":"48ff35c5-71f4-49","durationMs":10,"status":"completed","context":{"entrypoint":"zcode_protocol","startupKind":"zcode_protocol_agent","stage":"total","totalDurationMs":10}}
{"timestamp":"2026-06-27T05:03:02.824Z","level":"info","event":"log.retention.cleanup.scheduled","module":"adapters.logging","message":"Log retention cleanup scheduled","traceId":"2e4d4137-7e38-4d07-a19a-bc4ddf9188d4","spanId":"48ff35c5-71f4-49","status":"waiting","context":{"entrypoint":"zcode_protocol","delayMs":60000,"logDir":"/home/lh/.zcode/cli/log","retentionDays":7}}
{"timestamp":"2026-06-27T05:03:02.836Z","level":"info","event":"zcode_protocol.workspace_update_provider_registry.started","module":"bootstrap.zcode_protocol","message":"ZCode Protocol workspace/updateProviderRegistry started","status":"started","context":{"includeWorkspaceState":false,"incomingProviderCount":2,"previousProviderCount":0,"revision":"sha256:3098d0c717ca9a0f199bbe1efb583c5b441bfcdb19f8e1d0ec9bc0d3942de9b5","workspaceKey":"remote:ssh:172.31.226.10:22:lh:/home/lh/Neural-MDPP-Public","workspacePath":"/home/lh/Neural-MDPP-Public"}}
{"timestamp":"2026-06-27T05:03:02.837Z","level":"info","event":"zcode_protocol.workspace_update_provider_registry.completed","module":"bootstrap.zcode_protocol","message":"ZCode Protocol workspace/updateProviderRegistry completed","durationMs":1,"status":"completed","context":{"buildStateDurationMs":0,"changedModelLimitCount":3,"emitSessionSettingsDurationMs":0,"includeWorkspaceState":false,"providerCount":2,"revision":"sha256:3098d0c717ca9a0f199bbe1efb583c5b441bfcdb19f8e1d0ec9bc0d3942de9b5","syncActiveAppsDurationMs":0,"updateStatus":"applied","workspaceKey":"remote:ssh:172.31.226.10:22:lh:/home/lh/Neural-MDPP-Public","workspacePath":"/home/lh/Neural-MDPP-Public"}}
{"timestamp":"2026-06-27T05:03:03.365Z","level":"info","event":"zcode_protocol.session_create.started","module":"bootstrap.zcode_protocol","message":"ZCode Protocol session/create started","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","status":"started","context":{"hasInitialModel":true,"hasInitialThoughtLevel":false,"inboundTraceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","persistence":"deferred","workspaceKey":"remote:ssh:172.31.226.10:22:lh:/home/lh/Neural-MDPP-Public","workspacePath":"/home/lh/Neural-MDPP-Public"}}
{"timestamp":"2026-06-27T05:03:03.365Z","level":"info","event":"zcode_protocol.create_record.mcp_config","module":"bootstrap.zcode_protocol","message":"ZCode Protocol createRecord MCP config","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","context":{"rootTraceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","inboundTraceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","paramMcpServerCount":0,"runtimeHasMcpConfig":false,"runtimeMcpServerCount":0,"workspaceKey":"remote:ssh:172.31.226.10:22:lh:/home/lh/Neural-MDPP-Public","workspacePath":"/home/lh/Neural-MDPP-Public"}}
{"timestamp":"2026-06-27T05:03:03.374Z","level":"info","event":"bootstrap.app.startup.started","module":"bootstrap","message":"ZCode app startup started","traceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","spanId":"2a186a45-1725-47","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","durationMs":0,"status":"started","context":{"startupKind":"zcode_app","hasInjectedModelAdapter":false,"resume":false,"stage":"start","totalDurationMs":1}}
{"timestamp":"2026-06-27T05:03:03.375Z","level":"info","event":"bootstrap.app.startup.config.completed","module":"bootstrap","message":"ZCode app configuration loaded","traceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","spanId":"2a186a45-1725-47","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","durationMs":2,"status":"completed","context":{"startupKind":"zcode_app","configSourceEnv":false,"configSourceProject":false,"configSourceUser":false,"stage":"load_config","totalDurationMs":2}}
{"timestamp":"2026-06-27T05:03:03.378Z","level":"info","event":"bootstrap.app.startup.plugins.completed","module":"bootstrap","message":"ZCode plugins resolved","traceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","spanId":"2a186a45-1725-47","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","durationMs":4,"status":"completed","context":{"startupKind":"zcode_app","commandRootCount":0,"diagnosticCount":0,"enabledPluginCount":0,"hookCount":0,"mcpServerCount":0,"pluginCount":0,"pluginStorageRoot":"/home/lh/.zcode/cli/plugins","skillRootCount":0,"stage":"resolve_plugins","totalDurationMs":5}}
{"timestamp":"2026-06-27T05:03:03.557Z","level":"info","event":"bootstrap.app.startup.runtime_config.completed","module":"bootstrap","message":"ZCode runtime configuration resolved","traceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","spanId":"2a186a45-1725-47","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","durationMs":179,"status":"completed","context":{"startupKind":"zcode_app","mcpEnabled":true,"memoryEnabled":true,"memoryRoot":"/home/lh/.zcode/cli/memories/projects/neural-mdpp-public-0ea5c2866f6f041a","memorySummaryMaxBytes":8192,"memoryUse":true,"maxOutputTokens":"[Redacted]","mode":"build","model":"builtin:bigmodel-coding-plan/GLM-5.2","workingDirectory":"/home/lh/Neural-MDPP-Public","stage":"resolve_runtime_config","totalDurationMs":184}}
{"timestamp":"2026-06-27T05:03:03.558Z","level":"info","event":"bootstrap.app.startup.storage.completed","module":"bootstrap","message":"ZCode storage adapters initialized","traceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","spanId":"2a186a45-1725-47","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","durationMs":0,"status":"completed","context":{"startupKind":"zcode_app","hasInjectedArtifactStore":false,"hasInjectedSessionStore":true,"cliStorageRoot":"/home/lh/.zcode/cli","storageRoot":"/home/lh/.zcode","stage":"initialize_storage","totalDurationMs":185}}
{"timestamp":"2026-06-27T05:03:03.558Z","level":"info","event":"bootstrap.app.startup.mcp.completed","module":"bootstrap","message":"ZCode MCP adapter initialized","traceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","spanId":"2a186a45-1725-47","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","durationMs":0,"status":"completed","context":{"startupKind":"zcode_app","hasInjectedMcpPort":false,"mcpEnabled":true,"mcpServerCount":0,"trustedMcpServerCount":0,"stage":"initialize_mcp","totalDurationMs":185}}
{"timestamp":"2026-06-27T05:03:03.561Z","level":"info","event":"bootstrap.app.startup.runtime.completed","module":"bootstrap","message":"ZCode runtime constructed","traceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","spanId":"2a186a45-1725-47","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","durationMs":3,"status":"completed","context":{"startupKind":"zcode_app","hasInjectedModelAdapter":false,"stage":"create_runtime","totalDurationMs":188}}
{"timestamp":"2026-06-27T05:03:03.561Z","level":"info","event":"bootstrap.app.startup.completed","module":"bootstrap","message":"ZCode app startup completed","traceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","spanId":"2a186a45-1725-47","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","durationMs":188,"status":"completed","context":{"startupKind":"zcode_app","workingDirectory":"/home/lh/Neural-MDPP-Public","stage":"total","totalDurationMs":188}}
{"timestamp":"2026-06-27T05:03:03.562Z","level":"info","event":"log.retention.cleanup.scheduled","module":"adapters.logging","message":"Log retention cleanup scheduled","traceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","spanId":"2a186a45-1725-47","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","status":"waiting","context":{"delayMs":60000,"logDir":"/home/lh/.zcode/cli/log","retentionDays":7}}
{"timestamp":"2026-06-27T05:03:03.743Z","level":"info","event":"session.model.updated","module":"bootstrap","message":"Session model updated","traceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","spanId":"2a186a45-1725-47","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","status":"completed","context":{"model":"builtin:bigmodel-coding-plan/GLM-5.2","previousModel":"builtin:bigmodel-coding-plan/GLM-5.2"}}
{"timestamp":"2026-06-27T05:03:03.985Z","level":"info","event":"zcode_protocol.session_create.completed","module":"bootstrap.zcode_protocol","message":"ZCode Protocol session/create completed","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","durationMs":621,"status":"completed","context":{"hasInitialModel":true,"hasInitialThoughtLevel":false,"messageCount":0,"persistence":"deferred","recordCreateDurationMs":200,"rootTraceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","setInitialModelDurationMs":241,"snapshotPhaseDurationsMs":{"contextUsageBreakdownEvents":0,"eventSeq":1,"goalVerificationEvents":0,"persistedMessages":1,"persistedSession":1,"rewindEvents":0,"target":0,"todos":0,"buildSnapshot":177},"snapshotDurationMs":179,"syncModelCatalogDurationMs":0,"workspaceKey":"remote:ssh:172.31.226.10:22:lh:/home/lh/Neural-MDPP-Public","workspacePath":"/home/lh/Neural-MDPP-Public"}}
{"timestamp":"2026-06-27T05:03:10.343Z","level":"info","module":"bootstrap.zcode_protocol","message":"ZCode Protocol session/send accepted","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","context":{"attachmentCount":0,"inputId":"e6f0e2a9-16e3-4ae1-8f5f-722d9ea3aa28","queryId":"efa3f063-a4c0-488a-857f-d4c88da2ff6d","textLength":2,"workspacePath":"/home/lh/Neural-MDPP-Public"}}
{"timestamp":"2026-06-27T05:03:10.343Z","level":"info","module":"bootstrap.zcode_protocol","message":"ZCode Protocol background turn started","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","context":{"inputId":"e6f0e2a9-16e3-4ae1-8f5f-722d9ea3aa28","queryId":"efa3f063-a4c0-488a-857f-d4c88da2ff6d","textLength":2,"workspacePath":"/home/lh/Neural-MDPP-Public"}}
{"timestamp":"2026-06-27T05:03:10.711Z","level":"info","event":"turn.started","module":"core.runtime","message":"Turn started","traceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","spanId":"aaa699fb-f11d-4b","parentSpanId":"2a186a45-1725-47","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","turnId":"turn_f2355afe-0bd8-424a-a4d8-3109bd430114","status":"started","context":{"queryId":"efa3f063-a4c0-488a-857f-d4c88da2ff6d","turnNumber":0,"inputLength":2}}
{"timestamp":"2026-06-27T05:03:11.194Z","level":"warn","event":"model.request.failed","module":"adapters.model","message":"Model request attempt failed","traceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","spanId":"f2df4df1-6af7-45","parentSpanId":"aaa699fb-f11d-4b","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","turnId":"turn_f2355afe-0bd8-424a-a4d8-3109bd430114","durationMs":455,"status":"failed","context":{"queryId":"efa3f063-a4c0-488a-857f-d4c88da2ff6d","attempt":1,"baseURL":"https://open.bigmodel.cn/api/anthropic","maxAttempts":11,"maxRetries":10,"modelId":"GLM-5.2","providerId":"builtin:bigmodel-coding-plan","providerKind":"anthropic","querySource":"main_turn","requestId":"14d26643-ceba-4825-b111-6520a1cf2b90","transport":"sse","reason":"network_error","retryable":true,"statusMessage":"Cannot connect to API: connect ECONNREFUSED 60.205.172.105:443"}}
{"timestamp":"2026-06-27T05:03:11.194Z","level":"warn","event":"model.network.failed","module":"core.runtime","message":"Model network request failed","traceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","spanId":"f2df4df1-6af7-45","parentSpanId":"aaa699fb-f11d-4b","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","turnId":"turn_f2355afe-0bd8-424a-a4d8-3109bd430114","durationMs":455,"status":"failed","context":{"queryId":"efa3f063-a4c0-488a-857f-d4c88da2ff6d","turnNumber":0,"model":"builtin:bigmodel-coding-plan/GLM-5.2","iteration":0,"querySource":"main_turn","attempt":1,"baseURL":"https://open.bigmodel.cn/api/anthropic","maxAttempts":11,"modelId":"GLM-5.2","providerId":"builtin:bigmodel-coding-plan","providerKind":"anthropic","requestId":"14d26643-ceba-4825-b111-6520a1cf2b90","transport":"sse","reason":"network_error","retryable":true,"statusMessage":"Cannot connect to API: connect ECONNREFUSED 60.205.172.105:443"}}
{"timestamp":"2026-06-27T05:03:11.200Z","level":"warn","event":"model.retry.scheduled","module":"adapters.model","message":"Model request retry scheduled","traceId":"9ee8919d-9f01-4a75-b126-c41e28f82120","spanId":"f2df4df1-6af7-45","parentSpanId":"aaa699fb-f11d-4b","sessionId":"sess_793174a4-06e5-4d73-904e-9dad9a3ce1e7","turnId":"turn_f2355afe-0bd8-424a-a4d8-3109bd430114","status":"waiting","context":{"queryId":"efa3f063-a4c0-488a-857f-d4c88da2ff6d","attempt":1,"baseURL":"https://open.bigmodel.cn/api/anthropic","maxAttempts":11,"maxRetries":10,"modelId":"GLM-5.2","providerId":"builtin:bigmodel-coding-plan","providerKind":"anthropic","querySource":"main_turn","requestId":"14d26643-ceba-4825-b111-6520a1cf2b90","transport":"sse","delayMs":1391,"nextAttempt":2,"reason":"network_error","statusMessage":"Cannot connect to API: connect ECONNREFUSED 60.205.172.105:443"}}