Public Access
Archive meeting workflow and screenshot changes
This commit is contained in:
@@ -130,7 +130,7 @@ public sealed class MeetingSummaryTools
|
||||
? await File.ReadAllTextAsync(artifacts.AssistantContextPath)
|
||||
: "";
|
||||
var (frontmatter, body) = MeetingArtifactFrontmatterRenderer.Split(existing);
|
||||
var updatedBody = ApplyLineEdit(body, content, editMode);
|
||||
var updatedBody = ApplyLineEdit(body, StripAccidentalFrontmatter(content), editMode);
|
||||
var updated = string.IsNullOrWhiteSpace(frontmatter)
|
||||
? updatedBody
|
||||
: "---" + Environment.NewLine + frontmatter + Environment.NewLine + "---" + Environment.NewLine + Environment.NewLine + updatedBody;
|
||||
@@ -139,6 +139,12 @@ public sealed class MeetingSummaryTools
|
||||
return artifacts.AssistantContextPath;
|
||||
}
|
||||
|
||||
private static string StripAccidentalFrontmatter(string content)
|
||||
{
|
||||
var document = MarkdownDocumentParser.SplitOptional(content);
|
||||
return document.HasFrontmatter ? document.Body : content;
|
||||
}
|
||||
|
||||
public async Task<string> ListProjects()
|
||||
{
|
||||
var projects = await GetBoundProjectsAsync();
|
||||
|
||||
Reference in New Issue
Block a user