Show knowledge sources and pass readable passages to chat

This commit is contained in:
Mark Gregory
2026-11-17 10:08:27 +00:00
parent a79bab404d
commit e51e1b483a
5 changed files with 69 additions and 15 deletions
+11
View File
@@ -260,6 +260,17 @@ struct ChatView: View {
Text(activity.joined(separator: " · "))
.font(.caption).foregroundStyle(.secondary).lineLimit(2).textSelection(.enabled)
}
if !studio.knowledgeSources.isEmpty {
DisclosureGroup("Knowledge Sources (\(studio.knowledgeSources.count))") {
ScrollView {
Text(studio.knowledgeSources.joined(separator: "\n"))
.textSelection(.enabled)
.frame(maxWidth: .infinity, alignment: .leading)
}
.frame(maxHeight: 80)
}
.font(.caption)
}
if showDebugOutput, !studio.webDiagnostics.isEmpty || !studio.webStatus.isEmpty {
let diagnostics = studio.webDiagnostics.isEmpty
? [studio.webStatus]