refactor: move queued turn dispatch into core

This commit is contained in:
Edward Frazer
2026-05-11 13:08:51 -07:00
parent 0c81f7874c
commit 6ec5e2626d
18 changed files with 682 additions and 406 deletions

View File

@@ -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")]