info() should always be read-only

This commit is contained in:
Yiorgis Gozadinos 2026-02-20 19:13:45 +02:00
parent e186e13cd2
commit 388e94ae80
No known key found for this signature in database
2 changed files with 12 additions and 2 deletions

View file

@ -1,6 +1,10 @@
# Changelog # Changelog
## [Unreleased] ## [Unreleased]
### Fixed
- **`info` command**: Open database in read-only mode to prevent write failures on read-only filesystems
## [0.31.0] - 2026-02-20 ## [0.31.0] - 2026-02-20
### Added ### Added

View file

@ -80,10 +80,16 @@ class HaikuRAGApp: # pragma: no cover
versions = get_package_versions() versions = get_package_versions()
# Get comprehensive table statistics (this also runs migrations)
from haiku.rag.store.engine import Store from haiku.rag.store.engine import Store
store = Store(self.db_path, config=self.config, skip_validation=True) store = Store(
self.db_path,
config=self.config,
skip_validation=True,
read_only=True,
skip_migration_check=True,
before=self.before,
)
table_stats = store.get_stats() table_stats = store.get_stats()
# Read settings after Store init (migrations have run) # Read settings after Store init (migrations have run)