Repository navigation
Replies: 1 comment 1 reply
|
The 20-30 s is likely the pre-execute workspace snapshot. The tool runtime is not the slow part. That matches your shape: the first call in a session (or after the tree changed while idle) pays one snapshot; later calls reuse the settled result. DS Bot being fast is consistent if its composition does not mount A/B it: disable I read the source only; no Windows reproduction here. You can hand this to an AI assistant to run the A/B and compare the two timings. |
Uh oh!
There was an error while loading. Please reload this page.
Windows desktop: first tool call in a new session (or after ~1 min idle) takes 20–30 s — tool runtime cold start
摘要(中文)
在 Windows 桌面版 DSH(nightly 0.2.2-rc.1)上,每个新会话的第一次工具调用(或空闲约 1 分钟后的第一次调用)固定要 20–30 秒;同一会话内后续调用只要 0.2–1 秒。已排除:插件(禁用全部第三方插件后仍 27.6s)、Agent 预设(标准/PTC/极简都慢)、权限/沙箱模式、DSH 版本差异(DS Bot 用同一个
dsh-base@0.2.2-rc.1只要 0.12s)、沙箱 runner 本身(手动跑 0.23–0.39s)、Electron 子进程启动(0.17s)、精简 profile 启动(2.97s)。慢的既不是插件执行(protein_show热态 0.03–0.06s),也不是 SSH/服务器连接。看起来是 Windows 桌面版工具执行运行时的冷启动成本,希望获得定位建议或预热/保活配置。Environment
C:\Users\HF\AppData\Local\Programs\DeepSeek Harness@deepseek-ai/dsh-desktop@0.2.2-rc.1(nightly channel,resources/app-update.yml)app.asar:@deepseek-ai/dsh-base@0.2.2-rc.1,dsh-web-app@0.2.2-rc.1C:\Users\HF\Documents\deepseek-harness\default-workspace~/.dsh/sessions/.../session.v4.jsonl.zstd(audited viatool/call→tool/resulttimestamps)dsbot@0.3.2, also bundles@deepseek-ai/dsh-base@0.2.2-rc.1, but dependencies unpacked underresources/node_modules)Reproduction
show the structure of C:\Users\HF\Desktop\SCCK-ATP_model.ciftool/callandtool/resultin the session log (or the turn duration in the UI).Expected: first tool call < 1 s.
Actual: 20–30 s (turn total 33–44 s), every new session.
Measurements
1. First tool call in a brand-new session (cold)
tool/call→tool/resultprotein_showprotein_showpwshprotein_show×6glob,skill,run_code×2,windows_desktop,bashbash2. Same session, subsequent tool calls (warm)
protein_show0.03–0.06 s;bash0.58 / 1.16 / 0.61 / 0.52 / 0.49 s;pwsh0.23 s;glob0.01–0.4 s;read0.00 s.3. Cold again after idle
Same session: 15:32:24
bash0.61 s → idle ~85 s → 15:33:49bash27.76 s → 15:34:20bash0.52 s.4. Only pure in-memory host-service tools are fast on first call
ssh_hosts0.01 s,list_agents0.12 s (no cold start).5. Subagent sessions (same app) are fast
First tool in
origin=subagentsessions: 0.00–0.60 s (e.g.read0.00 s,bash0.60 s), across 50+ sessions.6. Control: DS Bot on the same machine
protein_show0.00 s,read0.12 s,pwsh1.02 s,plugin_manager4.63 s.What we ruled out
dsh-protein-view)executeis 0.03–0.06 s warm; slow tools include built-inglob/bash/skill/run_code; disabling all third-party bundles still 27.6 sworkspace-writeanddanger-full-accessboth slowELECTRON_RUN_AS_NODE=1 "DeepSeek Harness.exe" <asar>/dsh/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/runner.js --workspace <ws> --temp <tmp> --mode workspace-write -- cmd /c echo hi= 0.23–0.39 sELECTRON_RUN_AS_NODE=1 "DeepSeek Harness.exe" -e "0"≈ 0.17 sdsh web --port 61002 --no-openwith a lean profile = 2.97 s to print its URLpwsh/protein_show;ssh_hostsitself is 0.01 s; disabling SSH tooling does not change itdsh-base@0.2.2-rc.1and is fastSuspect / questions
The delay sits between the
tool/callandtool/resultsession events with no intermediate events (no approval event, no ptc-dispatch event). It affects every executing tool but not in-memory host-service tools, and it is paid per session (or per idle-reaped runtime), on Windows only in this install.app.asar)? Is there a phase-level log/env flag we can turn on to see where the 20–30 s goes (dsh-subprocess-local/dsh-tool-executor-native/dsh-sandbox-local)?app.asar) layout so much slower than DS Bot's unpackedresources/node_moduleslayout on Windows — could asar module loading be optimized or the runtime pre-warmed at app boot?Notes
tool/result.time - tool/call.time.All reactions