Skip to content

fix: support DeepSeek Harness 0.2.1-rc.2 - #133

Open
evolll wants to merge 1 commit into
omdsh-dev:mainfrom
evolll:fix/dsh-0.2.1-rc.2
Open

evolll wants to merge 1 commit into
omdsh-dev:mainfrom
evolll:fix/dsh-0.2.1-rc.2

Conversation

@evolll

@evolll evolll commented Oct 27, 2026

Copy link
Copy Markdown

Summary

Support DeepSeek Harness 0.2.1-rc.2. With the previous adapter, an extension authenticates successfully (hello.ok) and immediately disconnects with stream-failed: Cannot read properties of undefined (reading 'signal') because the Gateway now requires an explicit Peer.

Changes

  • Create an owner Peer through Connection, scoped to the bridge plugin, and reuse it for unary calls, event/session/workspace streams, and $events/result replies. Peer identity is constructed by the host rather than read from extension payloads.
  • Align DSH runtime, bridge peers, Cordis dependencies, and the lockfile with 0.2.1-rc.2; replace dsh-subagent-in-process-driver with dsh-subagent-spawn-in-process.
  • Remove the empty invariant companion and its setup hook because dsh-invariants is no longer published for this release. Adapt JSONL persistence fixtures to its named plugin exports.
  • Update English/Chinese installation instructions and both installer launch commands.

Testing

On macOS arm64 with Node.js 25.8.2 and pnpm 11.7.0:

  • Bridge tests: 151 passed; extension tests: 394 passed.
  • pnpm run typecheck, pnpm run check:runtime, and pnpm peers check passed.
  • pnpm run build, bash -n scripts/install.sh, and git diff --check passed.
  • pnpm run test:smoke passed against the real 0.2.1-rc.2 host in an isolated DSH home: discovery, token authentication, create/list/history, persisted model selection, V2 migration, browser snapshots, and prepared projections after restart. This smoke test reproduced the disconnect before the Peer fix.
  • Added regression assertions that unary calls, one-shot streams, event streams, and event replies carry the Connection-created Peer.
  • Registered the built plugin with a local global 0.2.1-rc.2 installation and verified /ext/bridge-config on port 3080.

Impact

The workspace now pins 0.2.1-rc.2; older DSH versions are not supported by this revision. Chrome/Firefox extension wire messages remain unchanged. Windows installer text is updated, but Windows execution was not tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant