From 44afa8f53b447f401c1253624c8555b8b4ce1a38 Mon Sep 17 00:00:00 2001 From: Alan Wizemann Date: Wed, 8 Apr 2026 23:40:35 -0400 Subject: [PATCH] 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) --- scarf/scarf/Features/Memory/ViewModels/MemoryViewModel.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scarf/scarf/Features/Memory/ViewModels/MemoryViewModel.swift b/scarf/scarf/Features/Memory/ViewModels/MemoryViewModel.swift index c8e841a..782940a 100644 --- a/scarf/scarf/Features/Memory/ViewModels/MemoryViewModel.swift +++ b/scarf/scarf/Features/Memory/ViewModels/MemoryViewModel.swift @@ -21,7 +21,10 @@ final class MemoryViewModel { var userCharCount: Int { userContent.count } 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 }