mirror of
https://github.com/openai/codex.git
synced 2026-11-07 08:34:29 +00:00
Timestamp app-server notifications at emission (#32905)
## What changed - Add an optional `emittedAtMs` field to server notification envelopes and expose the envelope in the generated JSON and TypeScript schemas. - Populate the Unix timestamp when app-server emits a notification, before transport routing, so every connection in a fan-out receives the same value. - Keep the field optional for clients decoding notifications from older app-server versions. ## Testing - Verify notification serialization includes `emittedAtMs`. - Verify targeted fan-out reuses one timestamp across connections. GitOrigin-RevId: b379cb11e8e91c558bcd3d46ce459311a6e81e54
This commit is contained in:
1 parent
7f3eb8a223
commit
c39520f3d1
22 files changed
+400
-171
No files matched your search
@@ -877,10 +877,10 @@ mod tests {
|
||||
let OutgoingEnvelope::Broadcast { message } = envelope else {
|
||||
panic!("expected broadcast notification");
|
||||
};
|
||||
let OutgoingMessage::AppServerNotification(ServerNotification::ThreadStatusChanged(
|
||||
notification,
|
||||
)) = message
|
||||
else {
|
||||
let OutgoingMessage::AppServerNotification(envelope) = message else {
|
||||
panic!("expected thread/status/changed notification");
|
||||
};
|
||||
let ServerNotification::ThreadStatusChanged(notification) = envelope.notification else {
|
||||
panic!("expected thread/status/changed notification");
|
||||
};
|
||||
notification
|
||||
|
||||
Reference in new issue
Block a user