Skip to content

Overlay state DB git metadata for filtered thread lists#19036

Merged
joeytrasatti-openai merged 2 commits into
mainfrom
joeytrasatti-openai/overlay-thread-git-metadata
Apr 22, 2026
Merged

Overlay state DB git metadata for filtered thread lists#19036
joeytrasatti-openai merged 2 commits into
mainfrom
joeytrasatti-openai/overlay-thread-git-metadata

Conversation

@joeytrasatti-openai

@joeytrasatti-openai joeytrasatti-openai commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Factor the state DB ThreadMetadata to rollout ThreadItem mapping into a shared helper used by both DB pages and filesystem overlays
  • Generalize filtered filesystem list overlays to fill missing thread list metadata from the state-derived ThreadItem, while preserving filesystem path and thread_id
  • Add coverage for the merge behavior so existing filesystem values are not overwritten and future ThreadItem fields require an explicit decision

Testing

  • just fmt from codex-rs
  • git diff --check -- codex-rs/rollout/src/recorder.rs codex-rs/rollout/src/recorder_tests.rs
  • Attempted cargo test -p codex-rollout thread_item_metadata from codex-rs; blocked in dependency fetch/setup after updating crates.io and git submodules https://github.com/livekit/protocol and https://chromium.googlesource.com/libyuv/libyuv, so the focused tests did not run

@joeytrasatti-openai joeytrasatti-openai marked this pull request as ready for review April 22, 2026 21:12
@joeytrasatti-openai joeytrasatti-openai marked this pull request as draft April 22, 2026 21:29
@joeytrasatti-openai joeytrasatti-openai marked this pull request as ready for review April 22, 2026 21:39

@jif-oai jif-oai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm. The bad design must be fixed but can be in a follow-up

page
}

fn fill_missing_thread_item_metadata(item: &mut ThreadItem, state_item: ThreadItem) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this looks bad and probably hide a bad design

@joeytrasatti-openai joeytrasatti-openai merged commit ee70b36 into main Apr 22, 2026
25 checks passed
@joeytrasatti-openai joeytrasatti-openai deleted the joeytrasatti-openai/overlay-thread-git-metadata branch April 22, 2026 21:59
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 22, 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.

3 participants