feat: add update indicators and stabilize Cursor streams

This commit is contained in:
leookun committed 2026-08-24 05:24:07 +08:00
1 parent 0f23a9a9c3
commit 6170778de9
21 files changed
+360 -105

No files matched your search

+6
View File
@@ -66,6 +66,12 @@ pub fn thinking_completed(elapsed: Duration) -> pb::AgentServerMessage {
))
}
pub fn heartbeat() -> pb::AgentServerMessage {
server_interaction(pb::interaction_update::Message::Heartbeat(
pb::HeartbeatUpdate {},
))
}
pub fn arguments_delta(call: &ToolCall, delta: &str) -> Result<pb::AgentServerMessage> {
Ok(server_interaction(
pb::interaction_update::Message::PartialToolCall(pb::PartialToolCallUpdate {