Create

Sign in to ReadmeX

or

How we handle your data: Privacy Policy

ReadmeX

Your AI reading companion

What would you like to catch up on?

Pick a briefing, or ask your own question.

Your community and people briefings stay personal to you.

Story

Plugin fixes DeepSeek Harness desktop app failing to open VS Code

AI summary

A report on DeepSeek Harness v0.2.1-rc.3 finds that the packaged desktop app and its bundled global dsh web command silently fail to open VS Code from the session page, returning a 502 launch-failed response, while a source-built dsh web works and Explorer and JetBrains buttons behave normally. The author traces the cause to the desktop host running with ELECTRON_RUN_AS_NODE=1, which the open-in-app environment scrubber does not filter, so Electron-based editors such as VS Code, Cursor, Windsurf and VS Code Insiders start in Node mode and exit immediately. The author provides a packaged plugin that wraps the /open-in-app/open route to temporarily strip the variable from process.env and restore it afterwards, installed once per profile, with 16-assertion smoke tests against a real v0.2.1-rc.3 WebServer build.

In-depth insight

It documents a reproducible failure in an AI coding harness and a concrete, tested workaround, so users of the packaged desktop app can restore the open-in-app workflow for Electron editors without waiting for an upstream fix.

TL;DR:桌面版宿主带着 ELECTRON_RUN_AS_NODE=1 运行,open-in-app 的环境清理函数没过滤这个变量,启动 VS Code 时原样透传。VS Code 是 Electron 应用,收到这个变量就进入 Node 模式、秒退,宿主回报 502 launch-failed。文末附已打包的修复插件,web / desktop 两个 profile 各装一次即可。所有结论对照 v0.2.1-rc.3 源码核验,插件附带 16 项断言冒烟测试。

一、现象

DeepSeek Harness 会话页右上角有一排"在应用中打开"按钮:VS Code、Cursor、Windsurf、GitHub Desktop、文件管理器……

启动方式VS Code 按钮资源管理器JetBrains
源码版 dsh web(git clone + pnpm)✅ 正常✅✅
桌面版应用❌ 无反应✅✅
桌面版附带的全局 dsh web❌ 无反应✅✅

界面无任何报错,开发者工具里才能看到后端返回 502 launch-failed。Cursor、Windsurf、VS Code Insiders 同样中招——共性很明显:中招的全是 Electron 应用。

#DeepSeek Harness#VS Code#Cursor#Windsurf#GitHub Desktop#VS Code Insiders#Electron

Original · 5 min readRead the original
Group chat

No comments yet. Start the conversation.