Skip to content

feat: codex journal#20199

Draft
jif-oai wants to merge 2 commits intomainfrom
jif/codex-journal
Draft

feat: codex journal#20199
jif-oai wants to merge 2 commits intomainfrom
jif/codex-journal

Conversation

@jif-oai
Copy link
Copy Markdown
Collaborator

@jif-oai jif-oai commented Apr 29, 2026

No description provided.

@jif-oai jif-oai requested a review from a team as a code owner April 29, 2026 12:10
Copy link
Copy Markdown
Contributor

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

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: 63402cbc3b

ℹ️ 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 on lines 96 to +100
let history = session.clone_history().await;
let transcript_entries = collect_guardian_transcript_entries(history.raw_items());
let history_items = session_history::raw_items(&history);
let transcript_entries = collect_guardian_transcript_entries(&history_items);
let transcript_cursor = GuardianTranscriptCursor {
parent_history_version: history.history_version(),
parent_history_version: session.history_version().await,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P1 Badge Read history version from same snapshot lock

build_guardian_prompt_items captures transcript entries from clone_history() and then awaits session.history_version() separately. If history is rewritten between those awaits, the cursor can pair an old transcript with a new version. A later delta review may treat rewritten entries as already reviewed and omit them, giving guardian an incomplete/mismatched transcript.

Useful? React with 👍 / 👎.

Comment on lines +146 to +149
if failure.is_none()
&& let Err(err) = append_entries(&mut writer, entries.as_slice()).await
{
failure = Some(err);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P1 Badge Reject appends after persistent writer failure

After any append I/O/serialization failure, run_worker sets failure and then silently skips all later Command::Append writes. enqueue still returns Ok(()) because sends succeed, so callers can keep "successfully" enqueueing entries that are dropped until a later flush/shutdown reports the error.

Useful? React with 👍 / 👎.

@jif-oai jif-oai marked this pull request as draft April 29, 2026 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant