dsh-return-front
Return DSH to the foreground when a real-device control turn ends, with a settings-page toggle. 适合配合安卓桥接使用、需要任务结束自动切回界面的用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:zxyan99/dsh-return-frontREADME
Read the full README ↗使用
设置 → 通用,会看到一行:
任务收尾 ☑ 真机控制任务结束后回到 DSH
勾选/取消即时生效并持久化(存在 $DSH_HOME/dsh-return-front.json)。默认开启。
配置(可选)
在 profile 的 patch 里:
- insert:
- id: dsh-return-front
name: dsh-return-front
config:
enabled: true # 初始开关状态(之后以设置页/状态文件为准)
appPackage: com.example.shell # 手动指定宿主 App 包名(一般不需要)
launchCommand: "monkey -p com.example.shell -c android.intent.category.LAUNCHER 1"
环境变量覆盖:DSH_RETURN_FRONT_APP_PACKAGE。