Skip to content

Fix compressed history reads and preserve recorded subagent completion times - #12

Merged
friel-openai merged 3 commits into
mainfrom
dev/friel/history-read-repairs
Nov 9, 2026
Merged

friel-openai merged 3 commits into
mainfrom
dev/friel/history-read-repairs

Conversation

@friel-openai

Copy link
Copy Markdown
Owner

thread/items/list can fail when a stored rollout path still names the plain JSONL file after compression. Legacy rollout conversion can also lose a completion time that was recorded on a subagent activity event.

  • Layer 0038-compressed-paginated-item-reads uses the existing compression-aware reader when the plain file is missing and fingerprints the file that was actually read for descending page hints. Other open errors still propagate.
  • Layer 0039-preserve-subagent-activity-completion carries the activity's recorded occurrence time into the converted item. It leaves unrecorded times unknown and does not derive them from the rollout envelope or rewrite already-converted files.

Neither change adds a protocol field or changes the storage schema. The regression tests check item identity and order, the compressed file remaining in place, and exact timing parity across legacy reads and conversion, including missing and zero times. Required CI selects both tests. The combined source was reproduced by replaying the canonical definitions with only the pinned upstream tag and the proposed commits.

Codex Task: codex://threads/01a029f4-9863-7523-be3e-864bebe4187a

-frielbot

@friel-openai friel-openai added the codex-app-server App server request handling and thread history label Nov 9, 2026
@friel-openai
friel-openai marked this pull request as ready for review November 9, 2026 04:46
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T04:47:52.493360Z c075dd6 Draft marked ready
ℹ️ 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.

@friel-openai
friel-openai merged commit 264e220 into main Nov 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

codex-app-server App server request handling and thread history

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant