dsh-bili-scroll
c1overzz
DSH 插件:每天替你刷一轮 B站,读字幕挑出值得的、写一份日报,值得的 @ 你
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:shuaichewang/dsh-quit-idle-fix
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Stop the DeepSeek Harness desktop app from warning that running tasks will be interrupted when the only thing left in the idle inbox is a system notice.
The desktop quit check in @deepseek-ai/dsh-desktop-host counts any pending
next-step inbox message as active work:
agent.status === "running" ||
agent.inbox.nextTurn.length > 0 ||
agent.inbox.nextStep.length > 0
But several host features queue purely informational messages with
agent.inject(), which does not wake an idle agent. When the approval
policy, working directory, plan mode, or a Cordis plugin changes while a
conversation is idle, the notice waits in next-step forever. The quit check
then sees a pending message and warns about interrupted work even though no
turn and no job is running.
This is an interaction bug in the harness itself (the official
dsh-desktop-host predicate plus the official notice producers), not a
conflict caused by another installed plugin.
While an agent is idle, it consumes next-step messages whose
source.kind is one of:
user-approval — approval policy changedworking-directory — working directory changed or recoveredcordis-host-runner — plugin add/remove/run resultplan-mode — plan mode switchedThe approval policy and working directory are already stated in the runtime context, and plan mode is reflected in the prompt. Cordis plugin state can be inspected again with the plugin tools. Running agents are never touched, so a notice queued mid-turn still reaches the next step. If a user turn is already queued, the sweep backs off and lets that turn consume the notices.
It checks every 500 ms, does an immediate sweep on load, and keeps no state.
Agents with a queued next-turn user message are skipped.
From npm (recommended once published):
dsh plugin --profile desktop add dsh-quit-idle-fix
From GitHub:
dsh plugin --profile desktop add github:shuaichewang/dsh-quit-idle-fix
Or install it from the plugin marketplace. Restart the desktop app if the change does not take effect immediately.
dsh plugin --profile desktop remove dsh-quit-idle-fix
Restart the app afterwards.
node test.mjs
# ok: idle notices removed, running agent untouched, timer disposed
Then make sure no conversation is running and no background job is active, and quit the desktop app. The interrupt warning should no longer appear. If a real job or turn is running, the warning still appears — that is intended.
next-turn, real user messages, running agents, jobs, or
scheduled tasks.The cleaner fix belongs in dsh-desktop-host: do not count notice-shaped
next-step messages as active work, or avoid leaving non-waking notices in the
inbox. This plugin is a workaround that survives app signature checks because
it installs as a profile bundle instead of modifying app.asar.
DeepSeek Harness 桌面端退出前会把任何待处理的 next-step 消息都当成“有任务”。
但切换审批策略、工作目录、计划模式或增删插件时,官方功能用 agent.inject()
投递的只是提示消息,并不会唤醒空闲会话,于是提示永远留在队列里,退出时就会
误弹“当前正在运行的任务将会中断”。
这个插件只在 agent 空闲时清掉上述四类提示;正在运行的会话完全不受影响。 真实任务、后台作业和已排程提醒仍会正常触发退出警告。
安装:
dsh plugin --profile desktop add dsh-quit-idle-fix
卸载:
dsh plugin --profile desktop remove dsh-quit-idle-fix
MIT. Not affiliated with DeepSeek.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。