Files
codex/codex-rs/hooks
malsamiri-oai 0e9c6552da Limit Computer Use cleanup notifications to turn metadata (#65311)
## Why

Computer Use helpers only need the thread and turn IDs to clean up
after a turn. The legacy `notify` payload also includes user messages
and the assistant's last message.

## What changed

Send recognized macOS and Windows Computer Use helpers a
`turn-ended` payload containing only the event type, `thread-id`,
and `turn-id`. Codex unwraps saved `--previous-notify` chains and
launches the user's notifier directly with its original arguments
and the full legacy payload, without waiting for cleanup to finish.

## Testing

Add tests for helper recognition, payload contents, and malformed
notifier chains. A Unix process test checks that the saved notifier
receives its payload while cleanup is still running.

GitOrigin-RevId: 1d5cea10b1c92e1828a23bb9eaeb8c008baa86c5
2026-12-02 18:38:45 +00:00
..