Repository navigation
Conversation
bolinfest
force-pushed
the
pr2240
branch
7 times, most recently
from
August 13, 2025 17:09
bb9e75c to
7fdd266
Compare
bolinfest
marked this pull request as ready for review
August 13, 2025 17:27
bolinfest
force-pushed
the
pr2240
branch
2 times, most recently
from
August 13, 2025 17:36
5155b06 to
18ecca4
Compare
Contributor
|
Summary
Notes
Review
Follow-ups (outside this PR scope)
|
bolinfest
force-pushed
the
pr2240
branch
3 times, most recently
from
August 13, 2025 18:07
335c1af to
8fe92eb
Compare
bolinfest
requested review from
aibrahim-oai,
easong-openai,
gpeal and
pakrym-oai
August 13, 2025 18:08
This was referenced Aug 13, 2025
gpeal
approved these changes
Aug 13, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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 PR does two things because after I got deep into the first one I started pulling on the thread to the second:
ConversationManagerthe place where all in-memory conversations are created and stored. Previously,MessageProcessorin thecodex-mcp-servercrate was doing this via itssession_map, but this is something that should be done incodex-core.ctrl_c: tokio::sync::Notifythat was threaded throughout our code. I think this made sense at one time, but now that we handle Ctrl-C within the TUI and have a properOp::Interruptevent, I don't think this was quite right, so I removed it. Forcodex execandcodex proto, we now usetokio::signal::ctrl_c()directly, but we no longer makeNotifya field ofCodexorCodexConversation.Changes of note:
conversation_manager.rsandcodex_conversation.rstocodex-core.CodexandCodexSpawnOkare no longer exported fromcodex-core: other crates must useCodexConversationinstead (which is created viaConversationManager).core/src/codex_wrapper.rshas been deleted in favor ofConversationManager.ConversationManager::new_conversation()returnsNewConversation, which is in line with thenew_conversationtool we want to add to the MCP server. NoteNewConversationincludesSessionConfiguredEvent, so we eliminate checks in cases likecodex-rs/core/tests/client.rsto verifySessionConfiguredEventis the first event because that is now internal toConversationManager.codex-rs/mcp-server/src/message_processor.rssince it no longer has to manage multiple conversations itself: it goes throughConversationManagerinstead.core/tests/live_agent.rshas been deleted because I had to update a bunch of tests and all the tests in here were ignored, and I don't think anyone ever ran them, so this was just technical debt, at this point.notify_on_sigint()fromutil.rs(and in a follow-up, I hope to refactor the blandly-namedutil.rsinto more descriptive files).codexasconversation, where appropriate, though admittedly I didn't do it through all the integration tests because that would have added a lot of noise to this PR.Stack created with Sapling. Best reviewed with ReviewStack.
OutgoingMessageSender::send_response()to takeSerialize#2263