Skip to content

[codex] Move persistence policy application into ThreadStore - #27318

Merged
wiltzius-openai merged 6 commits into
mainfrom
wiltzius/codex/thread-history-clean-room
Jun 11, 2026
Merged

[codex] Move persistence policy application into ThreadStore#27318
wiltzius-openai merged 6 commits into
mainfrom
wiltzius/codex/thread-history-clean-room

Conversation

@wiltzius-openai

@wiltzius-openai wiltzius-openai commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Move the application of the persistence policy into the thread store, so thread stores can get raw append items rather than canonical append items. This will enable store-specific projections over the raw input items.

.or_else(|| self.turns.last().cloned())
}

pub fn turn_snapshot(&self, turn_id: &str) -> Option<Turn> {

@wiltzius-openai wiltzius-openai Jun 10, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this isn't directly used in this PR, but is a little helper method to grab turn info by ID; some projectors need to be able to look up turn info by ID

@wiltzius-openai
wiltzius-openai force-pushed the wiltzius/codex/thread-history-clean-room branch 3 times, most recently from c396755 to 9ffdfd6 Compare June 10, 2026 22:06
Comment thread codex-rs/thread-store/src/types.rs Outdated
@wiltzius-openai
wiltzius-openai force-pushed the wiltzius/codex/thread-history-clean-room branch from 9ffdfd6 to eafa1fc Compare June 10, 2026 22:44
@wiltzius-openai
wiltzius-openai marked this pull request as ready for review June 10, 2026 22:45
@wiltzius-openai
wiltzius-openai requested a review from a team as a code owner June 10, 2026 22:45
@wiltzius-openai wiltzius-openai changed the title [codex] Add live thread history recorder hooks [codex] Move persistence policy application into ThreadStore Jun 11, 2026
@wiltzius-openai
wiltzius-openai merged commit b2cc01f into main Jun 11, 2026
31 checks passed
@wiltzius-openai
wiltzius-openai deleted the wiltzius/codex/thread-history-clean-room branch June 11, 2026 23:24
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 11, 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