mirror of
https://github.com/openai/codex.git
synced 2026-06-01 19:02:59 +00:00
refactor: move queued turn dispatch into core
This commit is contained in:
@@ -1329,6 +1329,9 @@ pub enum EventMsg {
|
||||
/// Updated long-running goal metadata for the thread.
|
||||
ThreadGoalUpdated(ThreadGoalUpdatedEvent),
|
||||
|
||||
/// Core started and removed a durable queued turn.
|
||||
ThreadQueuedTurnDispatched(ThreadQueuedTurnDispatchedEvent),
|
||||
|
||||
/// Incremental MCP startup progress updates.
|
||||
McpStartupUpdate(McpStartupUpdateEvent),
|
||||
|
||||
@@ -3590,6 +3593,14 @@ pub struct ThreadGoalUpdatedEvent {
|
||||
pub goal: ThreadGoal,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "protocol/")]
|
||||
pub struct ThreadQueuedTurnDispatchedEvent {
|
||||
pub thread_id: ThreadId,
|
||||
pub turn_has_input: bool,
|
||||
}
|
||||
|
||||
/// User's decision in response to an ExecApprovalRequest.
|
||||
#[derive(Debug, Default, Clone, Deserialize, Serialize, PartialEq, Eq, Display, JsonSchema, TS)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
|
||||
Reference in New Issue
Block a user