Repository navigation
Web GUI: first-class toggle to disable built-in auto-compaction (compaction-basic.auto) #8774
Closed
ranxianglei
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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. set
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/compactand the tool-result pruner remain unaffected.Why (root cause, verified in-tree)
In profiles whose bundles include
@deepseek-ai/dsh-web-app, the runningcompaction-basicinstance lives inside the agent-preset composition (preset-standard.config.plugins); the host-plane same-id row is alreadydisabled: trueby the web-app itself.dsh-app-boot'sapplyEntryPatchesindexes entries by id across top-level rows + true group children (group: truewith array config) only. A preset row'sconfig.pluginsis plain config data, so no patch layer can reach the nested row by id. As a result:- 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.preset-standardconfig in$DSH_HOME/profiles/<profile>/cordis.patch.yml: restate the full shipped plugins list (~140 lines) and flip one line toauto: false. Patching is whole-config replacement (not deep merge), so this is a snapshot that drifts whenever dsh changes the preset.compaction-basic.autois a pure config boolean (defaulttrue) with no env-var fallback.Suggested directions (either suffices)
compaction-basic.autoas a visible toggle on the Agent presets settings page, reusing the existing sub-plugin edit + profile-patch save.Happy to share the full
--dump-configevidence and a minimal repro. Thanks!All reactions