DSH HUB
首页插件商店插件包社区排行榜资源发布指南
插件源码
返回插件目录

kelai141 /

kelai141/dsh-host-web-compat

仅 Topic 仓库

dsh 宿主插件——经 webserver 钩子向页面注入旧内核浏览器 polyfill。

★ 1 Stars0 Forks0 IssuesN/A 社区评分0 已确认安装
查看 GitHub
README来源: main@264c7379

dsh-host-web-compat

🌐 中文说明 / 中文 README

DeepSeek Harness × Android 生态 · dsh-mobile-apk(壳 APK)· dsh-shell-termux(shell)· dsh-client-ui-responsive(移动 UI)

Host plugin for DeepSeek Harness that injects legacy-browser polyfills into every served page via the webserver tapIndex hook. Fixes the in-app directory picker and other RPC flows on older WebView/browser kernels.

Background

Old kernels (e.g. MuMu's bundled browser, older WebViews) lack AbortSignal.any(), which breaks the workspace directory picker's concurrent RPC cancellation (list renders empty). This plugin injects idempotent polyfills at the HTML level — no browser-side changes needed.

Quick start

1. Install — package into the profile's node_modules.

2. Mount — in the profile's cordis.patch.yml:

- insert:
    - id: web-compat
      name: '@dsh-android/dsh-host-web-compat'
      disabled: !!js process.platform !== 'android'

3. Restart the service; the picker works again in old kernels.

Polyfills injected

API condition note
AbortSignal.any missing Chrome 116+ / Node 20.3+; older WebViews need it
structuredClone missing Chrome 98+ / Node 17+

Idempotent: skipped when already present.

Notes

  • Keep this plugin even in the shell-APK form as a last-mile fallback for old system WebViews.
  • If you move to a native SAF picker, the page still benefits from the other polyfills.

License

MIT.

—/ 5

暂无评分

需要先验证清单

Commit 264c737973ea

社区评论

还没有评论,来写第一条。

DSH HUB

社区维护的 DSH 插件索引。不是 GitHub 或 DeepSeek AI 的官方产品。

社区资源API关于