review-fix(comments): restore lost #NNNN rationale comments across non-test source (mechanical sweep, condensed, code unchanged)
For each issue anchor present in BASE 63279301bc non-test .py and absent on HEAD, the BASE comment/docstring block was re-attached at the HEAD location of the code it explained (matched by the distinctive code line / enclosing def). Sentences already covered by an existing HEAD comment were deduped; the issue number always survives. Insert-only: no code lines changed.
This commit is contained in:
@@ -117,6 +117,9 @@ def _open_session_db_at_path(db_path: Path, *, read_only: bool):
|
||||
|
||||
from hermes_state import SessionDB, is_malformed_schema_error
|
||||
|
||||
# Read-only file/sidecar preflight (port of kilocode#12508): repair-or-refuse BEFORE the first
|
||||
# connection so users get an actionable message instead of an opaque "attempt to write a readonly
|
||||
# database" from deep inside _init_schema.
|
||||
if not read_only:
|
||||
return SessionDB(db_path=db_path, read_only=False)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user