# NousResearch/hermes-agent · SQLite read errors on WSL2/ZFS filesystem edge cases

## Open now

- Nothing open on GitHub.

These issues and fixes concern SQLite I/O errors and read connection instability encountered in multi-process or WAL-mode scenarios on WSL2 (ext4-on-vhdx) and OpenZFS filesystems. The work spans bug reports, related issue references, and proposed fixes for session and state database read paths.

## TL;DR

- 4 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 2 PR(s) closed without merging.
- A fix was merged to main in PR #108082. Verify it addresses your case.
- **Recommended:** read PR #108082 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-108082`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.50`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Closed / duplicate issues

- #100871: \[Bug\] Repeated SQLITE_IOERR in SessionDB.get_session read path on WSL2 (ext4-on-vhdx), multi-process, starting at 0.21.0 — WAL stable but DELETE fallback collapses read throughput ~30000x

## Prior & competing PRs

- **#108082: state.db no longer wedges on a healthy WAL: OpenZFS/close() false DeletedWalGenerationError, unconfirmed-WAL read pool, transient read IOERR, stale lock banner (#107401 #105567 #86515 #100871 #108031, salvage #107411 #105578 #105711 #106958)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/turn_explainers.py`, `contributors/emails/[redacted:email]`, `contributors/emails/nikkoxgonzales@users.noreply.github.com`, `gateway/run_notifications.py`, `hermes_state.py`, `hermes_state_dbfile.py`, `hermes_state_errors.py`, `hermes_state_readpool.py`, `hermes_state_wal.py`, `tests/gateway/test_session_db_warning_recheck.py`, `tests/hermes_state/test_deleted_wal_generation_guard.py`, `tests/hermes_state/test_read_path_transient_ioerr.py`, `tests/hermes_state/test_wal_active_confirmed.py`, `tests/run_agent/test_turn_completion_explainer.py`, `tests/test_hermes_state_wal_fallback.py`
- **#100882: fix(sessions): keep WSL recovery alive through transient read IOERR**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `d956e05e5e`, `#108082`
- **#100883: fix(state): pooled read connections survive transient EIO (WSL2/vhdx, ZFS)**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `d956e05e5e`, `#108082`

## Fix status

- Merged to main in PR #108082 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-11`.
