Replay explanations through shared history selections

This commit is contained in:
2026-10-26 17:01:32 +00:00
parent 4b4e15fc58
commit 738c8a9cc7
12 changed files with 386 additions and 135 deletions

View File

@@ -121,8 +121,17 @@ func matchesPathShape(query, candidate Path) bool {
return false
}
if actual.kind == pathSegmentIndex {
index, ok := schemaIndex(segment)
if !ok || index != actual.index {
switch segment.kind {
case pathSegmentIndex:
if segment.index != actual.index {
return false
}
case pathSegmentParsed:
index, ok := schemaIndex(segment)
if !ok || index != actual.index {
return false
}
default:
return false
}
} else if segment.kind == pathSegmentIndex {