Skip to content

Prune review history without reading review text - #425

Merged
lynnswap merged 2 commits into
mainfrom
codex/retention-metadata
Nov 18, 2026
Merged

lynnswap merged 2 commits into
mainfrom
codex/retention-metadata

Conversation

@lynnswap

@lynnswap lynnswap commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

Purpose

Completing one review fetched every saved review twice to enforce retention limits and remove empty workspaces.

Changes

Select only terminal review IDs, workspace paths and commit timestamps for eviction. Sort once by timestamp and ID before applying the workspace and global limits. Delete unreferenced workspaces directly in SQLite.

Testing

On the combined branch, all 23 history database tests passed with Xcode 26.6 and on M6 mini with Xcode 27.2. In an in-memory SQLite comparison with 500 reviews of 32 KiB each, each full-row query returned 15.6 MiB of review text. The two maintenance queries now return no review text.

Closes #424. Ref #415.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 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-17T23:51:24.503757Z 30a34bd Manual request
🔒 Security Review ✅ Completed 2026-11-17T22:59:23.474823Z da621f9 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.

@lynnswap lynnswap left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 30a34bd28f

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

@lynnswap
lynnswap merged commit db6424d into main Nov 18, 2026
5 checks passed
@lynnswap
lynnswap deleted the codex/retention-metadata branch November 18, 2026 01:20
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.

Read only retention metadata when pruning review history

1 participant