From 9f343c12a565c52ef3c22217e980994aa10764a7 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Mon, 10 Aug 2026 20:30:21 +0200 Subject: [PATCH] Changed document sections to no longer look like real page numbers --- app/MindWork AI Studio/Tools/DocumentManager.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/MindWork AI Studio/Tools/DocumentManager.cs b/app/MindWork AI Studio/Tools/DocumentManager.cs index 8183987e..359ac826 100644 --- a/app/MindWork AI Studio/Tools/DocumentManager.cs +++ b/app/MindWork AI Studio/Tools/DocumentManager.cs @@ -21,7 +21,14 @@ public sealed class DocumentManager { var completedPage = this.Flush(); this.currentPageContent = new StringBuilder(); - this.currentPageContent.AppendLine($"# Page {pageNumber}"); + + // + // Sections, not pages: a Word or OpenDocument file carries no fixed page layout, so the + // runtime derives these boundaries from page breaks and heuristics. Calling them pages, + // as the PDF reader does with its real ones, would invite the AI to cite page numbers + // which do not exist in the document. + // + this.currentPageContent.AppendLine($"# Section {pageNumber}"); this.currentPageContent.Append(content); return completedPage; }