Complete Rig tool lifecycle migration

This commit is contained in:
2026-08-04 16:00:20 -05:00
parent 91d8bd0381
commit a3c68e9c30
30 changed files with 1494 additions and 176 deletions
@@ -186,7 +186,7 @@ impl ResponseStream {
ctx: &mut ModelContext<Self>,
) {
ctx.emit(ResponseStreamEvent::ReceivedEvent(Consumable::new(Ok(
event,
api::StreamEvent::Response(event),
))));
}
#[cfg(test)]
@@ -718,7 +718,16 @@ impl ResponseStream {
self.time_to_latest_event = Local::now().signed_duration_since(self.start_time);
match &event {
Ok(response_event) => {
Ok(api::StreamEvent::ToolProposed(action)) => {
self.has_received_client_actions = true;
log::debug!(
"Rig proposed domain tool action {} for task {}",
action.id,
action.task_id
);
ctx.emit(ResponseStreamEvent::ReceivedEvent(Consumable::new(event)));
}
Ok(api::StreamEvent::Response(response_event)) => {
let event_type_name = match &response_event.r#type {
Some(warp_multi_agent_api::response_event::Type::Init(_)) => "Init",
Some(warp_multi_agent_api::response_event::Type::ClientActions(a)) => {