From 6b6337a5181090c3757320e61d04f7f136fc0eef Mon Sep 17 00:00:00 2001 From: Artur Sabirov Date: Wed, 8 Apr 2026 22:43:14 +0200 Subject: [PATCH] Fix Bear app not detecting note changes from CLI Add null text field to edit record to trigger Bear desktop sync detection. Keep upstream's vector clock byte-scanning approach. (reimplements PR #6) --- Sources/BearCLICore/CloudKitAPI.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/BearCLICore/CloudKitAPI.swift b/Sources/BearCLICore/CloudKitAPI.swift index fbb3844..612dedb 100644 --- a/Sources/BearCLICore/CloudKitAPI.swift +++ b/Sources/BearCLICore/CloudKitAPI.swift @@ -358,6 +358,10 @@ public struct CloudKitAPI { "value": .string(existingUniqueID), "type": .string("STRING"), ]), + "text": .dictionary([ + "value": .null, + "type": .string("STRING"), + ]), ] var recordDict: [String: AnyCodableValue] = [