Repository navigation
Description
Issue 类型 / Issue type
Bug 报告 / Bug report
提交前查重 / Duplicate check
- Searched open and closed issues for sourceKeys / empty selection; no matching UI report found.
涉及区域 / Affected area
Web UI 或对话交互 / Web UI or conversation interaction
摘要 / Summary
Scoped composition renders an unset sourceKeys and explicit sourceKeys: [] as all checkboxes unchecked. Unset actually selects eligible sources; [] selects none. Checking a source and unchecking it can turn what looks like "back to default" into a View with no Runtime or Memory Spaces routes/actions.
Errors include Source Action is not offered by the current View: runtime/mutate and memory-spaces/remember. Management GUI storage health can remain normal.
This does NOT claim that opening the panel or saving another untouched field automatically writes []. The current own tracking preserves untouched defaults. not-probed alone also does not prove a stalled Provider probe.
预期结果 / Expected outcome
Distinguish inherited defaults from explicit empty selection, and start the first edit from the effective selection. Require confirmation before saving zero sources. Preserve intentional empty scopes and writableSourceKeys: []; do not bypass Host authorization or silently migrate existing restrictions.
详情或复现步骤 / Details or reproduction steps
- Use default-three-tier with Scoped composition enabled and config {}.
- Open Scoped composition options: all source checkboxes appear unchecked even though Runtime, Documents and Memory Spaces are selected by default.
- Check a source, uncheck it, and Apply.
- Saved config becomes {"sourceKeys":[]}; a subsequent View has no selected memory routes/actions.
- Reset to default and Apply: the override disappears and routes return, but the UI again looks unchecked.
环境信息 / Environment
- dsh-mnemon 0.5.40; scoped strategy 0.5.5
- DSH 0.2.1-rc.5 desktop; macOS arm64
- Mnemon CLI 0.2.13; Mnemon Native provider
冒烟测试 / Smoke test
A downstream frontend-only patch passed installed-code regression tests for inherited selection, first edit, cancelled/confirmed empty save, reset, and read-only preservation. Isolated real Standard/PTC sessions wrote synthetic hot/durable facts; separate new sessions read back random values not present in their prompts. Explicit empty and read-only Views still rejected writes. Desktop restart/click acceptance passed. No direct database writes or Host authorization changes are proposed.
引用代码 / Code references
src/client/component-options.tsx: staged, initial, SourceChoice, Apply. plugins/dsh-mnemon-strategy-scoped/src/index.ts: undefined sourceKeys versus [].
补丁草案 / Patch proposal
Source fix and regression tests: #569 . The fix changes UI presentation and confirmation only, retaining persistence formats and Host policy. No private memories, account data, credentials or workstation paths are included.
Activity
github-actions commentedon Nov 5, 2026
基础信息已补齐,后续由维护者排查和处理。
Required report information is present. Maintainers will review the report.