feat: add model connectivity tests and harden cursor heartbeats

This commit is contained in:
leookun committed 2026-08-24 09:57:28 +08:00
1 parent 6170778de9
commit 81a1afdae9
24 files changed
+790 -111

No files matched your search

+7
View File
@@ -1,6 +1,7 @@
use prost::Message;
use crate::{
cursor::interaction,
cursor::proto::{agent::v1 as agent, aiserver::v1 as ai},
cursor::{CursorCommand, CursorParent, CursorSessionRegistry},
Error, Result,
@@ -166,6 +167,12 @@ pub async fn append(
if let Some(parent) = parent {
handle.set_parent(parent)?;
}
if matches!(
request.message.message.as_ref(),
Some(agent::agent_client_message::Message::ClientHeartbeat(_))
) {
handle.emit(&interaction::heartbeat())?;
}
handle
.command(CursorCommand::Append {
seqno: request.seqno,