exec_events: rename SessionCreatedEvent to CollaborationStartedEvent and update event name

- Changed ConversationEvent variant from SessionCreated to CollaborationStarted and updated serde rename from "session.created" to "collaboration.started"
- Renamed SessionCreatedEvent struct to CollaborationStartedEvent throughout codebase and tests
- Updated event processor and tests to use new variant and struct
This commit is contained in:
pakrym-oai
2025-09-29 13:25:36 -07:00
parent c4120a265b
commit 7dca27ef38
3 changed files with 15 additions and 11 deletions

View File

@@ -9,6 +9,7 @@ use codex_core::protocol::PatchApplyBeginEvent;
use codex_core::protocol::PatchApplyEndEvent;
use codex_core::protocol::SessionConfiguredEvent;
use codex_exec::exec_events::AssistantMessageItem;
use codex_exec::exec_events::CollaborationStartedEvent;
use codex_exec::exec_events::CommandExecutionItem;
use codex_exec::exec_events::CommandExecutionStatus;
use codex_exec::exec_events::ConversationErrorEvent;
@@ -21,7 +22,6 @@ use codex_exec::exec_events::ItemUpdatedEvent;
use codex_exec::exec_events::PatchApplyStatus;
use codex_exec::exec_events::PatchChangeKind;
use codex_exec::exec_events::ReasoningItem;
use codex_exec::exec_events::SessionCreatedEvent;
use codex_exec::exec_events::TodoItem as ExecTodoItem;
use codex_exec::exec_events::TodoListItem as ExecTodoListItem;
use codex_exec::exec_events::TurnCompletedEvent;
@@ -62,9 +62,11 @@ fn session_configured_produces_session_created_event() {
let out = ep.collect_conversation_events(&ev);
assert_eq!(
out,
vec![ConversationEvent::SessionCreated(SessionCreatedEvent {
session_id: "67e55044-10b1-426f-9247-bb680e5fe0c8".to_string(),
})]
vec![ConversationEvent::CollaborationStarted(
CollaborationStartedEvent {
session_id: "67e55044-10b1-426f-9247-bb680e5fe0c8".to_string(),
}
)]
);
}