From a157def42de608975b514a8687a38c60935cf3f0 Mon Sep 17 00:00:00 2001 From: Eugene Sukhodolin Date: Mon, 12 Jan 2026 16:40:01 -0800 Subject: [PATCH] fix(export): remove export from read-only commands to fix dirty issue clearing (#1036) The export command was incorrectly listed in readOnlyCommands, causing the SQLite database to be opened in read-only mode. This prevented export from clearing dirty issues and updating the JSONL file hash. --- cmd/bd/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/bd/main.go b/cmd/bd/main.go index c2eec253..1019ec0c 100644 --- a/cmd/bd/main.go +++ b/cmd/bd/main.go @@ -98,7 +98,7 @@ var readOnlyCommands = map[string]bool{ "graph": true, "duplicates": true, "comments": true, // list comments (not add) - "export": true, // export only reads + // NOTE: "export" is NOT read-only - it writes to clear dirty issues and update jsonl_file_hash } // isReadOnlyCommand returns true if the command only reads from the database.