Repository navigation
release: v0.10.3 — Codex/Claude orphan cleanup - #33
Merged
Merged
Conversation
Patch release bundling three fixes contributed by @Mert-coderoid: * #29 — scanner/claude: skip Claude sessions whose per-session JSONL is missing (closes #27). * #30 — delete/codex: remove the matching SQLite `threads` row so deletes survive a rescan (closes #28). * #32 — scanner/codex: prune orphan `threads` rows whose rollout JSONL is gone, on every scan (closes #31). Heads-up for users: Codex scans are no longer strictly read-only — a walk of `~/.codex/sessions/` builds a live-id set and any `state_*.sqlite` row whose rollout JSONL is missing is hard-deleted from SQLite. A walker error with no live ids collected falls back to the legacy "surface every row" behavior so a transient I/O failure cannot wipe the table. Verified locally: cargo test (22 passing), cargo clippy --all-targets -- -D warnings, cargo fmt --check.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Patch release bundling three fixes contributed by @Mert-coderoid — thanks for the careful diagnoses, the per-PR repro/impact numbers, and the green test suites that came with each change.
Included
scanner/claude: skip sessions whose per-session JSONL no longer exists.delete/codex: also remove the SQLitethreadsrow so deletes survive a rescan.scanner/codex: prune orphanthreadsrows whose rollout JSONL is gone.Heads-up for users
Codex scans are no longer strictly read-only. After this release, every Codex scan walks
~/.codex/sessions/to build a live-session-id set, and anystate_*.sqlitethreadsrow whose rollout JSONL is missing is hard-deleted from SQLite. A walker error with no live IDs collected falls back to the legacy "surface every row" behavior so a transient I/O failure cannot wipe the table.Codex cannot resume those rows once the rollout JSONL is gone, so this is consistent cleanup, not data loss — but worth calling out in the changelog.
Verification
cargo test— 22 passing (was 12 + 10 new)cargo clippy --all-targets -- -D warnings— cleancargo fmt --check— cleanPost-merge checklist
v0.10.3and pushcargo publishstep on crates.io