Repository navigation
Releases
v1.3.1 — truthful background watches
What broke
A watch created by hand refused to see work that was already running: it silently assumed the process started in the last minute (plus two minutes of grace), so an experiment launched ten minutes earlier never matched and dsh_watch reported "no matching process". At the same time a quiet checkpoint — one that a long step has not touched for a few minutes — was rendered as "files still updating", i.e. as if the work were alive.
What this release changes
- Manual watches are unbounded.
dsh_watch {process:{pid}}now matches a process regardless of when it started; only watches auto-created from aStart-Process/nohuplaunch keep their launch-time bound./v1/watches/:idexposesprocess_sinceso you can see which kind you have. - Three separate facts instead of one guess.
process_state(matched/not_found/unavailable/not_configured), per-fileprogress+changed_since_last_check, and a top-levelverdict(alive/active_but_unconfirmed/unconfirmed). The words "stalled" and "likely stopped" are gone; a quiet file says "a silent step or a finished run, not distinguishable from here". A failed process query is called out, not silently treated as "nothing running". - Checkpoint progress, not log progress.
progressaccepts{kind:"lines", skip}(count complete lines of a JSONL checkpoint, skipping metadata rows),{kind:"json_rows", key}(count array entries or a key), or{kind:"regex"}. - Encoding-robust tails. Log tails decode from their BOM and a NUL-byte sniff — UTF-16LE, UTF-16BE, UTF-8, GBK, latin1 — and a UTF-16 file with a plain-ASCII tail appended by a second writer (classic
Out-File+Add-Content) decodes both halves. - PID identity. A pid match also checks the process creation time against the recorded launch (±120 s), so a recycled pid cannot fake liveness.
Upgrading
Re-run install.ps1 for the Codex side and reload the DSH Host plugin (plugin_manager disable→enable include:codex-bridge). No config changes.
Verified
npm test— 13/13 (7 MCP protocol + 6 watch semantics)scripts\mcp-smoke.mjs— 13/13scripts\e2e-jobs.mjs— 10/10scripts\e2e-watch-truth.mjs— 7/7 (late manual attach, silent checkpoint, killed process, bogus pid, mixed encoding, cleaned checkpoint, result-file acceptance)
Full Changelog: v1.3.0...v1.3.1
v1.3.0 — background work stays visible
v1.3.0 — background work stays visible
A DSH session going idle never means its background work stopped. This release makes the
bridge read DSH's managed job ledger and the job/registered / job/settled session
events, so Codex can answer "is it still running" without watching the desktop app.
New MCP tools
| Tool | What it does |
|---|---|
dsh_jobs |
managed jobs (live running/stopping, plus finished), per session |
dsh_job |
one job: status, progress, detail, output tail |
dsh_job_cancel |
stop a job |
dsh_watch |
background watch over a file (progress_regex) and/or a process, for work DSH did not wrap in a job |
HTTP
GET /v1/jobs, GET /v1/jobs/:id, POST /v1/jobs/:id/cancel, plus GET|POST /v1/watches
and GET|DELETE /v1/watches/:id. /v1/status and dsh_session report the ledger and warn
when a session is idle while its jobs still run.
Verification
npm test— 7/7 offline MCP protocol testsscripts/e2e-jobs.mjs— 10/10: a real background job is registered, listed, read,
cancelled and confirmedkilledscripts/mcp-smoke.mjs— 13/13 checks over stdio
v1.1.0 — see every DSH session
What changed
Codex could only see progress of tasks it had started itself. This release lets it observe every session inside the DSH host — bridge tasks and sessions you start directly in the DSH desktop app.
Added
dsh_sessions— all sessions with title, cwd, live state, turns, tool counts, approvals, last activity (running: truefilter, optional event tail).dsh_session— read any session by id, blocking while it runs.dsh_session_events— cheap event tail for progress polling.dsh_cancel_session— cancel the live turn of any session by id.- HTTP:
GET /v1/sessions,GET /v1/sessions/:id?wait=1,POST /v1/sessions/:id/cancel;/v1/tasks/:idalso acceptssession-…ids. - Finished sessions are hydrated from the DSH session log, so their title and last answer are available after the fact.
Changed
dsh_sessionsreturns all sessions with live state instead of only resumable ids./v1/statusreports observed/running session counts.- Cancelling a bridge task by session id now settles it as
cancelled.
Upgrade
- Reinstall the DSH host plugin (Plugins → update/add
dsh-codex-bridgefrom this repo'sdsh-host-plugin). - Re-run
install.ps1to refresh the Codex-side copy to 1.1.0. - Restart Codex Desktop.
v1.0.2
Fixed
- Installer: re-running
install.ps1appended a second copy of thedsh-local,
codex-dsh-bridgeanddshtables instead of replacing them, leaving Codex with a
duplicate key/unclosed tableerror on startup. On Windows PowerShell 5.1 an
array-building expression collapsed four patterns into one array-valued string, so the
dedupe filter never matched. The lookup now lives inlib/codex-config.ps1
(Update-CodexBridgeConfig/Remove-CodexBridgeConfig/Get-CodexBridgeDropPatterns),
shared by both installers, andtests/install-config.test.ps1locks the behaviour in.
Added
lib/codex-config.ps1— shared, dependency-freeconfig.tomleditor; install/uninstall
are now idempotent.tests/install-config.test.ps1— PowerShell 5.1 regression test (dedupe, stale-block
removal, unrelated settings preserved, no BOM), wired into CI.
Upgrade
Re-run install.ps1 (it is idempotent), then restart Codex Desktop.
v1.0.1
Fixed
- DSH host plugin: a brand-new session id could be mistaken for an existing one
(sessionPersistence.stat()resolves without a value instead of throwing), which made
the bridge callctx.agents.resume()and fail withSessionPersistenceNotFoundError.
The bridge now falls back toctx.agents.create(). - Install scripts: Windows PowerShell 5.1 wrote UTF-8 BOMs and read
config.toml
through the ANSI code page, corrupting non-ASCII paths such as[projects.'C:\Users\…'].
Both scripts now read/write strict UTF-8 without BOM and keep timestamped backups.
v1.0.0
First public release.
What is this?
Two halves that make OpenAI Codex and DeepSeek Harness (DSH) cooperate:
dsh-codex-bridge(DSH Host plugin) — a loopback-only HTTP control surface
(127.0.0.1, bearer token, discovery file%USERPROFILE%\.dsh\codex-bridge.json)
that creates and resumes real DSH sessions throughctx.agents, tracks turns, tool
calls and approvals, and exposes/v1/tasks,/v1/tasks/:id/continue,
/v1/tasks/:id/cancel,/v1/sessions,/v1/status.codex-dsh-bridge(Codex plugin) — portableplugin.json,.codex-plugin/plugin.json
overlay,mcp.json/.mcp.json, adsh-tasksskill and a zero-dependency Node stdio
MCP server exposingdsh_run_task,dsh_send_task,dsh_task,dsh_task_list,
dsh_continue_task,dsh_cancel_task,dsh_sessions,dsh_status,dsh_health.
Install
- DSH: install
dsh-host-plugin/through Plugins → Add plugin (or DSH plugin manager), then restart DSH. - Codex:
powershell -ExecutionPolicy Bypass -File .\install.ps1, then restart Codex Desktop. - In Codex: "check the DSH bridge with dsh_status".
Works on Windows out of the box; the bridge is plain Node and runs anywhere DSH runs.