fix: Hide false external memory provider warning on fresh installs

The config.yaml uses YAML empty string literal (provider: '') which the
parser reads as the literal string '' rather than an empty string. Strip
surrounding quotes before checking so '' and "" are treated as empty.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Alan Wizemann
2026-04-08 23:40:35 -04:00
parent 481b937c33
commit 44afa8f53b
@@ -21,7 +21,10 @@ final class MemoryViewModel {
var userCharCount: Int { userContent.count } var userCharCount: Int { userContent.count }
var hasExternalProvider: Bool { var hasExternalProvider: Bool {
!memoryProvider.isEmpty && memoryProvider != "file" let stripped = memoryProvider
.trimmingCharacters(in: .whitespaces)
.trimmingCharacters(in: CharacterSet(charactersIn: "'\""))
return !stripped.isEmpty && stripped != "file"
} }
var hasMultipleProfiles: Bool { !profiles.isEmpty } var hasMultipleProfiles: Bool { !profiles.isEmpty }