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.
This commit is contained in:
Eugene Sukhodolin
2026-01-12 16:40:01 -08:00
committed by GitHub
parent 7b8c322e68
commit a157def42d

View File

@@ -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.