You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# [Feature request] Web GUI: toggle to disable built-in auto-compaction (compaction-basic.auto)
Hi dsh team — feature request from a third-party plugin author (billion-context, a context-compression proxy). Verified against dsh 0.2.0-rc.2 (current npm latest).
## Ask
A first-class toggle in the Web GUI (Settings → Agent presets, or General) to disable the built-in auto-compaction of the current/default agent preset — i.e. `compaction-basic.auto: false` — reusing the existing preset sub-plugin edit + persistence path (per the dsh-web-app README, edits save to `$DSH_HOME/profiles/web/cordis.patch.yml`). Manual `/compact` and the tool-result pruner remain unaffected.
## Why (root cause, verified in-tree)
In profiles whose bundles include `@deepseek-ai/dsh-web-app`, the running `compaction-basic` instance lives inside the agent-preset composition (`preset-standard.config.plugins`); the host-plane same-id row is already `disabled: true` by the web-app itself.
`dsh-app-boot`'s `applyEntryPatches` indexes entries by id across top-level rows + true group children (`group: true` with array config) only. A preset row's `config.plugins` is plain config data, so no patch layer can reach the nested row by id. As a result:
- A third-party bundle patch `- id: compaction-basic / config: {auto: false}` silently lands on the already-disabled host-plane row — it applies without error/warning yet has no effect on the running instance.
- The only manual workaround today is to override the entire `preset-standard` config in `$DSH_HOME/profiles/<profile>/cordis.patch.yml`: restate the full shipped plugins list (~140 lines) and flip one line to `auto: false`. Patching is whole-config replacement (not deep merge), so this is a snapshot that drifts whenever dsh changes the preset.
-`compaction-basic.auto` is a pure config boolean (default `true`) with no env-var fallback.
## Suggested directions (either suffices)1. Minimal — surface `compaction-basic.auto` as a visible toggle on the Agent presets settings page, reusing the existing sub-plugin edit + profile-patch save.
2. More thorough — support local override of same-id sub-rows when a preset mounts (instead of whole-config replacement), eliminating the snapshot-drift class for this and future third-party needs.
Happy to share the full `--dump-config` evidence and a minimal repro. Thanks!
Activity
ranxianglei commentedon Oct 3, 2026
[bot] 🏷 这是从 #1772 拆出的跟踪项(owner 决定,#1772 floor 14),不是要在本仓库实现的功能。根因在上游 dsh,本仓库能做的已做完(#1777 运行时告警已合并,把静默失效变成启动时可见)。
核实:
deepseek-ai/deepseek-harnesshas_issues: false(API 复核)、has_discussions: true—— Issues 关闭、仅开放 Discussions。所以正式投递只能走 Discussion 形式。按跨仓规矩,投递前需你明确批准,我不擅自提交。七问(诚实作答):
@deepseek-ai/dsh-web-app)下,第三方无法经 patch 关掉 dsh 内置自动压缩;用户唯一手工办法是在 profile patch 里整段重述preset-standard(约 140 行)改一行auto:false,且那是快照、dsh 升级改 preset 后即漂移。请求 dsh Web 设置页提供一等开关。dsh-app-boot的applyEntryPatches只按 id 索引顶层条目 + 真 group(group:true且 config 为数组)子项;preset 行的config.plugins是普通 config 数据,任何 patch 层都够不到其中嵌套行;而compaction-basic.auto是纯 config 布尔(默认 true)、无 env 兜底。compaction-basic.auto暴露为可见开关(最小),或 preset 挂载时支持同 id 子行局部覆盖替代整段替换(更彻底,顺带消除快照漂移类问题)。本仓库侧只做可见化告警。待你拍板(阻塞点): 下面是可直接投递的 Discussion 草稿(英文,dsh 是国际 OSS 仓库)。你回一句「批准投递」我就发,并挑合适 category(Ideas / Feature 之类);要调语言、措辞或补证据现在说。
判定:本 issue 为跟踪项,无本仓库可交付物;唯一待办是等你批准后向 dsh 投 Discussion。
ranxianglei commentedon Oct 3, 2026
继续
ranxianglei commentedon Oct 3, 2026
[bot] 🏷 已投递。经你批准(「继续」),feature request 已作为 Discussion 发到 dsh 上游,并核实存活。
投递结果:
deepseek-ai/deepseek-harness(Issues 关闭has_issues:false、仅 Discussions 开放 → 走 Discussion)ranxianglei(awork bot 身份)· 标题:Web GUI: first-class toggle to disable built-in auto-compaction (compaction-basic.auto)七问(诚实作答):
@deepseek-ai/dsh-web-app)下第三方无法经 patch 关 dsh 内置自动压缩;请求 dsh Web 设置页提供一等开关(compaction-basic.auto:false)。applyEntryPatches)够不到 preset 内嵌套行 +auto无 env 兜底——根因在上游,不在本仓库。后续 / 状态:本 issue 转为「跟踪上游响应」。dsh 若在 Discussion 里回应(采纳 / 拒绝 / 给时间表)我会同步到这里;若长期无响应,到时你再决定是否升级或换渠道。我这边不主动催、不重复投递(loop guard:一个 issue 至多一次投递)。
ranxianglei commentedon Oct 4, 2026
发到上游???
ranxianglei commentedon Oct 4, 2026
你理解错了 我要的是 一个在bili配置界面允许点击关闭dsh压缩的功能