Skip to content

Decouple message lifecycle state from model-visible item IDs - #59785

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/e254f94994d0976e61cb46ee23297f3248b9a389
Nov 6, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/e254f94994d0976e61cb46ee23297f3248b9a389

Conversation

@copyberry

@copyberry copyberry Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Decouple message lifecycle state from model-visible item IDs

Why

A message's model-visible item ID may be unknown until the recipient records it. Message lifecycle observers need to capture publication state before that point.

What changed

Remove message_id from MessageLifecycleInput and give each publication's ExtensionData a fresh UUID key. Stop assigning an item ID when publishing messages for lifecycle observers.

Testing

Update the agent mailbox test to store a contributor-specific token in ExtensionData at publication and retrieve it at consumption, verifying that publication state survives queued delivery and recipient eviction.

## Why

A message's model-visible item ID may be unknown until the recipient records it. Message lifecycle observers need to capture publication state before that point.

## What changed

Remove `message_id` from `MessageLifecycleInput` and give each publication's `ExtensionData` a fresh UUID key. Stop assigning an item ID when publishing messages for lifecycle observers.

## Testing

Update the agent mailbox test to store a contributor-specific token in `ExtensionData` at publication and retrieve it at consumption, verifying that publication state survives queued delivery and recipient eviction.

GitOrigin-RevId: e254f94994d0976e61cb46ee23297f3248b9a389
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/e254f94994d0976e61cb46ee23297f3248b9a389 branch from 8fd783e to 5e5bdee Compare November 6, 2026 01:50
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-11-06T01:50:32.585791Z 8fd783e PR opened
ℹ️ 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.

@copyberry
copyberry Bot merged commit 5e5bdee into main Nov 6, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/e254f94994d0976e61cb46ee23297f3248b9a389 branch November 6, 2026 01:50
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 6, 2026

This branch was previously deployed

1 inactive deployment
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