Skip to content

fix(archive): skip missing session logs and clear stale entries - #132

Merged
Ultroncn merged 1 commit into
mainfrom
fix/missing-archive-entries
Nov 30, 2026
Merged

Ultroncn merged 1 commit into
mainfrom
fix/missing-archive-entries

Conversation

@Ultroncn

Copy link
Copy Markdown
Owner

Closes #131.

With 103 stored chats and 680 missing archive IDs, reopening Archived on 2.0.8 caused another 680 failed title reads. The fix skips those reads when the Host has returned its inventory and has no live session for the ID. Missing entries stay visible, and other titles are read up to eight at a time.

Archived → More archive actions → Remove missing chat entries rechecks the selected entries through the Host. It releases an archive marker only when the Host explicitly reports that session missing. Files, tags and notes are preserved. Ordinary unarchive still checks whether the chat can return to the main list.

I tested on macOS with DSH 0.2.2-rc.5 and its JSONL backend. Both refreshes made zero missing-session reads. I also confirmed the cleanup in Chrome and compared all 103 remaining IDs with the original sessions. The unit suite had 513 passes and 19 skips. All eight native Host fixtures, both client fixtures, the SQLite checks and the package dry run passed.

Confirmation before removing missing archive entries

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-30T06:44:09.889278Z 739038c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Ultroncn
Ultroncn merged commit 132e16d into main Nov 30, 2026
30 checks passed
@Ultroncn
Ultroncn deleted the fix/missing-archive-entries branch November 30, 2026 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dangling archived ids make /state scale linearly (8–9 s) and cannot be cleaned

1 participant