Skip to content

fix: handle whitespace-variant moment separators#16

Merged
jgordijn merged 1 commit into
mainfrom
fix-moments-separator
Mar 6, 2026
Merged

fix: handle whitespace-variant moment separators#16
jgordijn merged 1 commit into
mainfrom
fix-moments-separator

Conversation

@jgordijn

@jgordijn jgordijn commented Mar 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • make separator-based fragment splitting tolerant to internal whitespace variation like ~ ~ ~
  • unwrap a single top-level container before splitting so wrapped fragment feeds still parse correctly
  • clear fragment parsing state and existing fragment entries when fragment settings change so refetch rebuilds them cleanly
  • align the main OpenSpec content-fetching spec with the whitespace-normalized separator behavior

Testing

  • go test ./cmd/knowledgehub ./internal/engine/... -count=1

Notes

  • This fixes the Ai Shepherd /moments feed case where the page documents ~ ~ ~ but the feed can emit ~ ~ ~.

@jgordijn jgordijn merged commit 04f514f into main Mar 6, 2026
1 check passed
@jgordijn jgordijn deleted the fix-moments-separator branch March 6, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant