Skip to content

fix(sessions): preserve Session transformations during generation tracking - #4917

Merged
seratch merged 1 commit into
mainfrom
fix/session-wrapper-transformations
Sep 8, 2026
Merged

fix(sessions): preserve Session transformations during generation tracking#4917
seratch merged 1 commit into
mainfrom
fix/session-wrapper-transformations

Conversation

@seratch

@seratch seratch commented Sep 8, 2026

Copy link
Copy Markdown
Member

This pull request fixes an encryption regression introduced by #4736, which addressed the compaction race in #4679. When EncryptedSession wraps OpenAIResponsesCompactionSession, generation-aware Runner reads and writes could bypass the outer wrapper, causing plaintext storage and skipping decryption and TTL filtering.

The fix routes these operations through the outer Session's public history methods while preserving generation-based conflict detection and resumed-write recovery. Public APIs and stored formats are unchanged.

@seratch seratch added this to the 0.22.x milestone Sep 8, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 8, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-08T08:17:15.331283Z 4fec1e2 New commits
🔒 Security Review Completed 2026-09-08T08:18:56.979620Z 4fec1e2 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@seratch seratch changed the title fix: Preserve Session transformations during generation tracking fix(sessions): preserve Session transformations during generation tracking Sep 8, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 63cab19583

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/agents/run_internal/session_persistence.py
@seratch
seratch force-pushed the fix/session-wrapper-transformations branch from 63cab19 to 4fec1e2 Compare September 8, 2026 08:13
@seratch
seratch merged commit 8bed141 into main Sep 8, 2026
18 checks passed
@seratch
seratch deleted the fix/session-wrapper-transformations branch September 8, 2026 08:25
@seratch seratch mentioned this pull request Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant