fix: verify notifications are sent with the conversationId set #2278
+75
−13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This updates
CodexMessageProcessor
so that each notification it sends for aEventMsg
from aCodexConversation
such that:params
always has an appropriateconversationId
field.method
is now includes the name of theEventMsg
type rather than usingcodex/event
as themethod
type for all notifications. (We currently prefix the method name withcodex/event/
, but I think that should go away once we formalize the notification schema inwire_format.rs
.)As part of this, we update
test_codex_jsonrpc_conversation_flow()
to verify that thetask_finished
notification has made it through the system instead of sleeping for 5s and "hoping" the server finished processing the task. Note we have seen some flakiness in some of our other, similar integration tests, and I expect adding a similar check would help in those cases, as well.