Skip to content

v0.2.1: bounded cache and restart recovery - #2

Merged
Fly-Carrot merged 1 commit into
mainfrom
codex/cache-recovery-v0.2.1
Oct 5, 2026
Merged

Fly-Carrot merged 1 commit into
mainfrom
codex/cache-recovery-v0.2.1

Conversation

@Fly-Carrot

Copy link
Copy Markdown
Owner

Summary

  • Bound rebuildable main SQLite indexes to 512 MiB with safe inactive eviction and visible pressure handling.
  • Preserve restart links, add exact-thread resume, keep the idle listener available, and recover safely from occupied ports.
  • Preserve incomplete history anchors while paused; retry disk-full conditions after backoff; reject malformed identity-response encoding.
  • Document recovery boundaries, installation updates, token rotation and source-log preservation.

Verification

  • 171 tests passed from the distributable repository.
  • Dry-run, install, reinstall and uninstall smoke passed in a temporary home.
  • Three independent review findings reproduced with failing tests before repair.
  • Public diff checked for private machine paths, chat identifiers, credentials and runtime files; no matches.
  • Actual local observer restart verified in the preceding repair; full client quit/relaunch is not claimed.

No hooks, global rules or original transcripts are included in this patch.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-05T18:07:04.340287Z 9725559 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.

@Fly-Carrot
Fly-Carrot merged commit a85c4a7 into main Oct 5, 2026
8 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9725559cd8

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +197 to +199
payload = {'hook_event_name': 'UserPromptSubmit', 'session_id': thread,
'transcript_path': entry['log']}
resolve_session(payload, sessions)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Resume from a surviving registered segment

When a chat has multiple registered segments and the most recently registered file has been removed while an older segment in entry['logs'] still exists, resolve_session fails on entry['log'] before the listener starts. This makes --resume unable to recover a chat whose history reader can otherwise continue from surviving segments; select and revalidate an available path from logs (prefer the current log when it exists) before calling launch.

Useful? React with 👍 / 👎.

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.

1 participant