/compact drives the host's own compaction call — the same envelope bili's wire
guard refuses unconditionally (#1729) — so on a bili-owned lane the command has
no outcome except failure. dsh reports that failure as "Compaction could not
produce a useful summary", blaming the model for a policy refusal, and every
retry fails identically because the refusal is terminal.
Disable the command entry in both patch carriers (persistent bundle + launcher
overlay) with the same static semantics as the adjacent compaction-basic
auto:false row. Escape hatch: a profile-level `disabled: false` for the same
id brings it back; invocations are still refused at the wire.
Disabling or kill-switching the dsh plugin removed the only provider of
biliBasicCompactionPolicy while the bundle patch kept gating all four
web-profile presets on it — every preset stayed pending forever and new/
resumed sessions failed with "Unknown agent preset: standard".
The load-time overlay + gate service now live in their own always-on
cordis entry (bili-compaction-gate), mounted alongside bili-native by
both patch carriers (dsh.bundle.patch.yml, launcher overlay). The entry
registers the transform and provides the service atomically (the #3354
ordering guarantee survives the split); whether it disables the preset
compaction rows is decided per process by a verdict bili-native sets
from apply() — an absent verdict (entry disabled, kill-switched, module
failed to load) leaves every row stock.
Behavior changes:
- disabling/kill-switching bili-native: presets used to pend forever
(session creation bricked); they now boot with STOCK native compaction
— compression off, dsh fully usable.
- bili-native module failing to load: previously a deliberate fail-safe
brick; now falls back to stock with the #1729 wire-level refusal guard
as backstop (availability over fail-safe-brick).
- new visible cordis entry bili-compaction-gate; disabling IT re-creates
the pending state (documented in bundle patch header + CLIENTS /
CONFIGURATION en+zh). Full uninstall: remove billion-context from
dsh.profile.bundles.
Closes#3662
Both bili-owned dsh patch carriers (dsh.bundle.patch.yml and the launcher .bili-acp.patch.yml overlay) now add MALFORMED_RESPONSE to the built-in DeepSeek routes' retry whitelist. Each row restates every default code because a cordis patch replaces the targeted row's whole config rather than deep-merging it. Rows carry mode: normal only, so DSH's default budget/backoff (5 retries, 500ms->10s, jitter 0.1) flows through unchanged. Rows absent on other DSH versions are skipped with a warning, never a boot failure.
The #1772 boot warning ended in a dead end ('no patch layer can reach'). Verified live against dsh 0.2.1-alpha.1: preset-standard is an ordinary bundle-layer entry; a profile-level cordis.patch.yml row (applied after every bundle) replaces its config WHOLESALE, so a full-snapshot override carrying auto:false under compaction-basic switches off native auto-compaction. The once-per-process warning now names that recipe plus both verified traps (a partial snippet drops everything not restated — other plugins AND the preset's id/order identity; - insert: with the same id appends a dead duplicate row); launcher stderr, config doc, bundle-patch header and CLIENTS(en/zh)/README(en/zh) corrected to match; the regression test pins the exit pointer. Snapshot-freeze walkthrough lives in the companion CONFIGURATION.md PR (#2476). Supersedes #1786's dead recipe (.agent-presets user root removed in dsh 0.1.7+).
Refs #2474
dsh's client-module scanner (dsh-client-modules, CLI 0.1.5-rc.x and desktop
0.2.0-rc.2 alike) requires an entry NAME to be a package-root specifier:
exactPackageSpecifier returns undefined for any non-scoped specifier
containing '/', so the graph row is silently dropped and the browser half
never loads. The host half was unaffected (loader import resolves subpaths
fine), which is why the injection worked while the settings entry never
appeared.
- launcher --patch entry + shim: bare 'billion-context'; shim exports gain
'.' (root import = host half). dshPluginEntry now probes that the ROOT
specifier resolves to a file ending agent/dsh-native.js — a foreign or
stale install whose '.' points elsewhere degrades to the legacy file URL
instead of importing the wrong module into dsh.
- market-install lane: dsh.bundle.patch.yml name -> bare root, and the
package exports['.'] moves from the CLI entry to the dsh host half (the
dsh loader imports the bare root). opencode is unaffected either way:
1.18.x resolvePackageEntrypoint only reads exports['./server'] when the
exports map is a record, and 2.x Host.resolve tries ['server',''] in
order — the root is never reached while ./server exists.
- browser bundle banner id matches the graph row id (package name).
- tests: launcher fixtures + negative case (shim '.' -> other file falls
back to file URL), settings-ui registration id, index-entry-guard pins
exports['.'] to the dsh host half and its import inertness.