mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
refactor(client): replace the per-field settings preference controller with a namespace settings scope
bindSettingsScope mirrors the Host-side settings owner seam in the browser: one scope per namespace publishes a snapshot store (status, section value, revision, writability, host/memory mode), validates sections against the namespace's serialized wire schema via dsh-client-schema-form, and keeps the controller's listener-before-read, revisioned serialized writes, latest-wins publication, conflict recovery, and disposal quiescence. Theme, locale, and busy-Enter services now take the scope as a constructor collaborator, which removes the bindPersistence/syncPreference two-phase callback pair and the defaulted no-op persist writers; hand-written wire guards fall away in favor of the registered schema. test-runtime gains a stubSettingsScope double.
This commit is contained in:
@@ -160,9 +160,9 @@ export default defineConfig({
|
||||
'packages/client/ui-workspace/src/client/WorkspaceBrowser.tsx',
|
||||
'packages/client/ui-workspace/src/client/WorkspacePicker.tsx',
|
||||
'packages/client/web-react/src/*',
|
||||
// This isolated scalar-settings lifecycle has complete unit coverage;
|
||||
// This isolated settings-scope lifecycle has complete unit coverage;
|
||||
// keep it out of the broader client-runtime GUI debt exemption.
|
||||
'packages/client/runtime/src/**/!(settings-preference).ts',
|
||||
'packages/client/runtime/src/**/!(settings-scope).ts',
|
||||
// Keep the browser conversation tree under its existing GUI debt
|
||||
// exemption while gating the newly stateful Host half and vocabulary.
|
||||
'packages/client/ui-conversation/src/client/*',
|
||||
|
||||
Reference in New Issue
Block a user