Skip to content

Add persisted manual ordering for thread sections - #36007

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/aec6d7ddedca5277029b5caf5c074975397e956c
Jul 29, 2026
Merged

Add persisted manual ordering for thread sections#36007
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/aec6d7ddedca5277029b5caf5c074975397e956c

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 29, 2026

Copy link
Copy Markdown

Add persisted manual ordering for thread sections

What changed

  • Add thread/section/move to atomically move a thread into, within, or out of a section. Threads can be inserted before an existing member or appended, and moves within a section preserve sectionEnteredAt.
  • Add section_position sorting to thread/list, with ascending order as its default, and expose sectionEnteredAt in thread responses.
  • Persist section positions and entry times in SQLite, including migration of existing section members into recency order. Section membership is no longer updated through thread/metadata/update.

Testing

  • Cover section moves, reordering, pagination, persistence across restarts and rollout reconciliation, concurrent updates, and rank renumbering.

## What changed

- Add `thread/section/move` to atomically move a thread into, within, or out of a section. Threads can be inserted before an existing member or appended, and moves within a section preserve `sectionEnteredAt`.
- Add `section_position` sorting to `thread/list`, with ascending order as its default, and expose `sectionEnteredAt` in thread responses.
- Persist section positions and entry times in SQLite, including migration of existing section members into recency order. Section membership is no longer updated through `thread/metadata/update`.

## Testing

- Cover section moves, reordering, pagination, persistence across restarts and rollout reconciliation, concurrent updates, and rank renumbering.

GitOrigin-RevId: aec6d7ddedca5277029b5caf5c074975397e956c
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/aec6d7ddedca5277029b5caf5c074975397e956c branch from c7c6965 to ad6fc66 Compare July 29, 2026 18:37
@copyberry
copyberry Bot merged commit ad6fc66 into main Jul 29, 2026
31 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/aec6d7ddedca5277029b5caf5c074975397e956c branch July 29, 2026 18:38
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 29, 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.

2 participants