feat: Implement auto-linked content updates in wiki page management

- Introduced UpdateAutoLinkedContent method to persist changes from machine-only link decorators without incrementing the version number, ensuring user-facing revisions remain consistent.
- Updated existing methods to utilize the new auto-linked content update logic, enhancing the handling of cross-link injection and dead-link cleanup.
- Enhanced the KnowledgeBase and WikiBrowser components to improve user experience during wiki operations, including status tracking and indexing indicators.
- Added scheduling for wiki status probes to provide timely feedback on indexing processes after user-triggered actions.
This commit is contained in:
wizardchen
2026-04-23 11:16:47 +08:00
parent d305d5eb7c
commit c5494f612b
7 changed files with 119 additions and 5 deletions
+1 -1
View File
@@ -339,7 +339,7 @@ func (s *WikiLintService) AutoFix(ctx context.Context, kbID string) (int, error)
}
target := issue.TargetSlug
page.Content = strings.ReplaceAll(page.Content, "[["+target+"]]", target)
if _, err := s.wikiService.UpdatePage(ctx, page); err == nil {
if err := s.wikiService.UpdateAutoLinkedContent(ctx, page); err == nil {
fixed++
}