zxyan99/dsh-return-front ↗★ 0

dsh-return-front

在真机控制任务结束后自动将窗口返回前台 适合配合安卓桥接使用、需要任务结束自动切回界面的用户。

包名
dsh-return-front
兼容性
待验证
版本
0.1.0
许可证
MIT
最近更新
2026年10月11日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:zxyan99/dsh-return-front

使用

设置 → 通用,会看到一行:

任务收尾 ☑ 真机控制任务结束后回到 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。