fix(wiki): strip internal chunk aliases from page content
Wiki ingest prompts previously encouraged inline [cNNN] citations that leak internal chunk metadata into reader-facing Markdown. Strip legacy aliases on read/write paths and update the modify prompt to keep prose clean while source links remain in ChunkRefs.
This commit is contained in:
@@ -1877,7 +1877,10 @@ func (s *wikiIngestService) reduceSlugUpdates(
|
||||
}
|
||||
}
|
||||
|
||||
existingContent := page.Content
|
||||
// Older generated pages may still contain short chunk aliases such as
|
||||
// [c003]. They are internal ingest metadata; keep the editor context
|
||||
// clean so a subsequent update cannot copy them into rewritten prose.
|
||||
existingContent := stripWikiInlineChunkCitations(page.Content)
|
||||
if !exists || existingContent == "" {
|
||||
existingContent = "(New page)"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user