fix system prompt file

This commit is contained in:
duanfuxiang
2025-04-29 12:08:26 +08:00
parent e0483d5d06
commit 16cd3a8691
2 changed files with 19 additions and 4 deletions

View File

@@ -58,6 +58,7 @@ export class SystemPrompt {
private async loadSystemPromptFile(mode: Mode): Promise<string> {
const fileName = this.getSystemPromptFilePath(mode)
const filePath = normalizePath(path.join(this.dataDir, fileName))
console.log("filePath", filePath)
if (!(await this.app.vault.adapter.exists(filePath))) {
return ""
}