ChisaAlter / dsh-task-control
鲸屿 Whale Isle · DeepSeek Harness 开源社区桌面版:AI 对话、终端与 Git、鲸桥 API/订阅接入、主题壁纸、鲸鱼娘桌宠、用量统计与手机远程连接。Community-enhanced DeepSeek Harness desktop client.
About this plugin
Written by the registry from verified metadata, not from the README.
dsh-task-control is a DSH plugin published from the vendor/dsh-task-control package in the ChisaAlter/WhaleIsle repository.
Capabilities and topics
dsh-task-control
Desktop-owned Harness plugin: admission lock + work inspection + loopback control route for quit/update protection in Whale Isle.
Control route
POST|GET /dshd-task-control/<op> with Authorization: Bearer $DSHD_TASK_CONTROL_TOKEN (delivered by the desktop over the host's stdin
secret channel into the in-process store, never the child env; an empty token
keeps the route closed).
| op | body | effect |
|---|---|---|
status | — | lock + pending snapshot |
inspect | — | { activeWork, scheduledWork, coverage, hostGeneration, observedAt } |
acquire | {owner, kind, ttlMs, drainTimeoutMs} | refuse new work, drain admitted, verify generation; dshd/drain-timeout replies carry pendingCount + pendingLabels identifying what stayed open |
renew | {lockId, owner, ttlMs} | extend expiry |
release | {lockId, owner} | unlock; re-drives schedule runtime |
cancel | {lockId, owner, reason} | unlock + emits dsh-task-control/cancel |
While locked: webServer routes (incl. pre-registered and upgrades) answer 503,
connection/request answers 503, sessionController.resolveAgent returns a
session/agent-busy error result, and jobs.start rejects.
Host task admission
ctx.desktopTaskAdmission.begin(label) uses the same lock and pending drain as HTTP/resolveAgent/jobs. It returns done() plus assertCurrent() for the pre-publication commit; check() rejects new task steps while locked/stopping. dsh-whale uses it around programmatic Worker creation rather than bypassing the desktop maintenance lock. Existing active Tasks are visible in inspection as whale-task, including queued/stopping/needs_user; task result delivery and lifecycle remain owned by whaleTasks.
Coverage semantics
Socket work counts exclude destroyed transports and known loopback peers (127/8, ::1 and IPv4-mapped IPv6). External or unknown peers remain counted. Agents, jobs and admitted requests are inspected independently, including work originating over local connections. This filter changes reporting, not admission.
coverage.* ∈ ok | intentional-disabled | unavailable. Schedule coverage is
intentional-disabled when the desktop declares it off (DSHD_SCHEDULE_ENABLED
unset). unavailable blocks unattended commits.
See docs/features/task-protection.md and
docs/superpowers/plans/2026-09-25-upstream-adoption-plan.md.
Badge
Listed here? Link back with this badge — paste the snippet into your repository README.
[](https://dsh-plugin.com/plugins/ChisaAlter/WhaleIsle/vendor/dsh-task-control)