Skip to content

Commit fe13c02

Browse files
authored
release: v0.10.3 — Codex/Claude orphan cleanup (thanks @Mert-coderoid) (#33)
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.
1 parent f45ee1f commit fe13c02

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## [0.10.3] - 2026-05-01
4+
5+
### Fixed
6+
7+
- **scanner/claude: skip sessions whose per-session JSONL is missing** (#27, #29, by @Mert-coderoid) — `~/.claude/history.jsonl` accumulates session IDs forever; Claude Code never trims it when the per-session JSONL under `~/.claude/projects/*/<id>.jsonl` is deleted. Those orphan IDs surfaced in the listing and resume failed with `No conversation found`. `scanner::claude::scan` now filters its output through the set of session IDs that have a JSONL on disk; the directory walk is shared with `scan_session_metadata` so the tree is still read once per scan.
8+
- **delete/codex: also remove the SQLite `threads` row** (#28, #30, by @Mert-coderoid) — since the Codex scanner moved to `state_*.sqlite` as primary source, deletes that only removed the rollout JSONL and `history.jsonl` entry came back on the next scan. `delete_codex_session` now walks every `state_*.sqlite` in `~/.codex/` and runs `DELETE FROM threads WHERE id = ?1`; older-schema dbs without `threads` are skipped silently.
9+
- **scanner/codex: prune orphan `threads` rows on scan** (#31, #32, by @Mert-coderoid) — `state_*.sqlite` rows whose rollout JSONL no longer exists kept dominating `agf list` / `agf stats` (e.g. 324 ghost rows for an empty `~/.codex/sessions/`) and could not be resumed. `scan_sqlite` now builds the live session-id set from `~/.codex/sessions/`, excludes orphans from the listing, and `DELETE`s them from every `state_*.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. Note: Codex scans are no longer strictly read-only — they will hard-delete unrecoverable orphan rows.
10+
311
## [0.10.2] - 2026-04-25
412

513
### Fixed

‎Cargo.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "agf"
3-
version = "0.10.2"
3+
version = "0.10.3"
44
edition = "2021"
55
description = "Find and resume local AI coding-agent sessions across Claude Code, Codex, Gemini, Cursor CLI, OpenCode, Kiro, and pi"
66
license = "MIT"

0 commit comments

Comments
 (0)