Skip to content

Prefer SQLite names for local session archive commands - #36808

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/5275b94e1132ca7cdbdd1adc3293d2ccc685ff6d
Aug 3, 2026
Merged

Prefer SQLite names for local session archive commands#36808
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/5275b94e1132ca7cdbdd1adc3293d2ccc685ff6d

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 3, 2026

Copy link
Copy Markdown

Prefer SQLite names for local session archive commands

What changed

  • Resolve local archive, delete, and unarchive targets from SQLite before falling back to rollout scanning and repair.
  • Verify each SQLite match points to a rollout in the expected active or archived collection with the same session ID, skipping stale entries safely.
  • Preserve the existing server-side lookup behavior for remote workspaces and compatibility sorting for external app servers.

Testing

Added coverage for archiving and unarchiving by SQLite-backed names, preferring renamed SQLite metadata over the legacy index, and skipping a stale duplicate during deletion.

## What changed

- Resolve local `archive`, `delete`, and `unarchive` targets from SQLite before falling back to rollout scanning and repair.
- Verify each SQLite match points to a rollout in the expected active or archived collection with the same session ID, skipping stale entries safely.
- Preserve the existing server-side lookup behavior for remote workspaces and compatibility sorting for external app servers.

## Testing

Added coverage for archiving and unarchiving by SQLite-backed names, preferring renamed SQLite metadata over the legacy index, and skipping a stale duplicate during deletion.

GitOrigin-RevId: 5275b94e1132ca7cdbdd1adc3293d2ccc685ff6d
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/5275b94e1132ca7cdbdd1adc3293d2ccc685ff6d branch from 51dd76f to 9c8f9ce Compare August 3, 2026 23:06
@copyberry
copyberry Bot merged commit 9c8f9ce into main Aug 3, 2026
28 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/5275b94e1132ca7cdbdd1adc3293d2ccc685ff6d branch August 3, 2026 23:07
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

1 participant