Skip to content

Move sleep items to the extension-owned lifecycle path - #33159

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/34bb33ed9b90a09bf4744aafdb56e019c717a168
Jul 14, 2026
Merged

Move sleep items to the extension-owned lifecycle path#33159
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/34bb33ed9b90a09bf4744aafdb56e019c717a168

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 14, 2026

Copy link
Copy Markdown

Move sleep items to the extension-owned lifecycle path

What changed

  • Define SleepItem in codex-extension-items and carry clock.sleep events through TurnItem::Extension.
  • Preserve sleep persistence, thread-history reconstruction, and the app-server's type: "sleep" schema while reusing the extension-owned type.

Testing

  • Add serialization coverage for the clock.sleep extension wire shape and its protocol wrapper.
  • Update sleep lifecycle and thread-history tests to exercise the extension-owned item.

## What changed

- Define `SleepItem` in `codex-extension-items` and carry `clock.sleep` events through `TurnItem::Extension`.
- Preserve sleep persistence, thread-history reconstruction, and the app-server's `type: "sleep"` schema while reusing the extension-owned type.

## Testing

- Add serialization coverage for the `clock.sleep` extension wire shape and its protocol wrapper.
- Update sleep lifecycle and thread-history tests to exercise the extension-owned item.

GitOrigin-RevId: 34bb33ed9b90a09bf4744aafdb56e019c717a168
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/34bb33ed9b90a09bf4744aafdb56e019c717a168 branch from ebc3e28 to 5d325ba Compare July 14, 2026 21:02
@copyberry
copyberry Bot merged commit 5d325ba into main Jul 14, 2026
14 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/34bb33ed9b90a09bf4744aafdb56e019c717a168 branch July 14, 2026 21:03
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 14, 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.

6 participants