Skip to content

Enable memories for paginated threads - #34386

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/2a6e16068e69680728757fbec27aeefae45b8110
Jul 20, 2026
Merged

Enable memories for paginated threads#34386
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/2a6e16068e69680728757fbec27aeefae45b8110

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 20, 2026

Copy link
Copy Markdown

Enable memories for paginated threads

Why

Paginated threads keep metadata updates in SQLite, while their rollout retains the initial memory_mode. Reconciliation could therefore overwrite the current setting with a stale value, and memory processing excluded these threads entirely.

What changed

  • Include paginated threads in stage 1 memory job selection and global memory output lookup.
  • Preserve the SQLite memory_mode when reconciling or backfilling an existing paginated thread, while continuing to seed missing rows and restore legacy threads from rollouts.
  • Omit memory_mode alongside Git metadata when flushing resumed paginated history.

Testing

Added coverage for preserving disabled memory mode during reconciliation and backfill, selecting eligible paginated threads, and omitting initial metadata on paginated resume.

## Why

Paginated threads keep metadata updates in SQLite, while their rollout retains the initial `memory_mode`. Reconciliation could therefore overwrite the current setting with a stale value, and memory processing excluded these threads entirely.

## What changed

- Include paginated threads in stage 1 memory job selection and global memory output lookup.
- Preserve the SQLite `memory_mode` when reconciling or backfilling an existing paginated thread, while continuing to seed missing rows and restore legacy threads from rollouts.
- Omit `memory_mode` alongside Git metadata when flushing resumed paginated history.

## Testing

Added coverage for preserving disabled memory mode during reconciliation and backfill, selecting eligible paginated threads, and omitting initial metadata on paginated resume.

GitOrigin-RevId: 2a6e16068e69680728757fbec27aeefae45b8110
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/2a6e16068e69680728757fbec27aeefae45b8110 branch from 3dc88fd to 2793c82 Compare July 20, 2026 17:42
@copyberry
copyberry Bot merged commit 2793c82 into main Jul 20, 2026
29 of 30 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/2a6e16068e69680728757fbec27aeefae45b8110 branch July 20, 2026 17:43
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant