Preserve matched history for removed fields

This commit is contained in:
2026-11-02 17:24:45 +00:00
parent 95495ae7fc
commit 25382a112b
3 changed files with 51 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ func (m Metadata) effectiveField(path Path) (FieldInfo, bool) {
// Unknown and invalid paths return nil.
func (m Metadata) History(path Path) []Change {
model := m.historyEvidence()
if model == nil || !model.hasObservedShape(path) {
if model == nil {
return nil
}
selections := model.selectHistory(path)