dsh-cua-preview
A Codex-like floating glass preview window for DeepSeek Harness background computer-use sessions (macOS). 适合 macOS 用户,在运行 Computer Use 任务时实时预览目标窗口状态。
Other repositories with this package name
Install
This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗
README
Read the full README ↗使用
| 操作 | 说明 |
|---|---|
| 显示 | Agent 发出 computer_* 工具调用并返回窗口 observation 后自动出现 |
| 隐藏 | 最后一次活动 12 秒后自动隐藏;也可在配置里调小 activeMs |
| 拖动 | 鼠标按住小窗任意位置拖动;macOS「三指拖移」(系统设置 › 辅助功能 › 指针控制 › 触控板选项)同样有效 |
| 位置记忆 | 拖动结束后写入 ~/.dsh/cua-preview/window-state.json,下次出现回到原位(拖出屏幕会自动夹回可见区) |
| 只显示目标窗口 | 小窗只显示 observation 指向的窗口,不会显示桌面或其他应用 |
无需手动开关;它跟随 Computer Use 活动自动出现/隐藏。
配置
在 ~/.dsh/profiles/desktop/cordis.patch.yml 的 cua-preview 行里配置:
| 字段 | 默认值 | 说明 |
|---|---|---|
electronPath | 自动探测 | 官方 Electron 二进制绝对路径;留空则依次尝试 ~/.dsh/dsh-orb/electron-runtime/... 与 /Applications/Electron.app/... |
appDir | 包内 app/ | 覆盖层目录;从 git 仓库 file: 安装时无需修改 |
captureGapMs | 140 | 两次抓帧的间隔,越大越省 CPU、越小越流畅(建议 80–250) |
activeMs | 12000 | 最后一次 Computer Use 活动后保持可见的时间 |
hideDelayMs | 250 | 收到 hide 后的淡出余量 |
覆盖层还支持以下环境变量(插件会自动注入;仅调试时需要手动设置):DSH_PREVIEW_PORT、DSH_PREVIEW_TOKEN、DSH_PREVIEW_PARENT、DSH_PREVIEW_CAPTURE_GAP_MS、DSH_PREVIEW_ACTIVE_MS。
运行期文件:
| 路径 | 用途 |
|---|---|
~/.dsh/cua-preview/plugin.log | 插件日志(自动轮转至 256KB) |
~/.dsh/cua-preview/app.log | 覆盖层日志(含实测 fps/target) |
~/.dsh/cua-preview/window-state.json | 小窗位置 |
/tmp/dsh-preview-frames/ | 抓帧临时目录(每帧读取后立即删除) |