feat: dispatch queued user messages from thread idle

This commit is contained in:
Edward Frazer
2026-06-16 06:14:24 +00:00
parent 19d58dfe9a
commit 2aa714e273
18 changed files with 780 additions and 13 deletions
+10
View File
@@ -1275,6 +1275,9 @@ pub enum EventMsg {
/// Updated long-running goal metadata for the thread.
ThreadGoalUpdated(ThreadGoalUpdatedEvent),
/// The durable user-submission queue for a thread changed.
ThreadQueueChanged(ThreadQueueChangedEvent),
/// Incremental MCP startup progress updates.
McpStartupUpdate(McpStartupUpdateEvent),
@@ -3769,6 +3772,13 @@ 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 ThreadQueueChangedEvent {
pub thread_id: ThreadId,
}
/// User's decision in response to an ExecApprovalRequest.
#[derive(Debug, Default, Clone, Deserialize, Serialize, PartialEq, Eq, Display, JsonSchema, TS)]
#[serde(rename_all = "snake_case")]