Cursor: Apply local changes for cloud agent

This commit is contained in:
2026-02-22 22:29:52 +01:00
parent 6b8b61c6ae
commit 41c57a1181
21 changed files with 616 additions and 142 deletions

View File

@@ -15,7 +15,9 @@ use quicnprotochat_proto::node_capnp::{auth, node_service};
use crate::AUTH_CONTEXT;
use super::retry::{anyhow_is_retriable, retry_async, DEFAULT_BASE_DELAY_MS, DEFAULT_MAX_RETRIES};
use super::retry::{
anyhow_is_retriable, base_delay_ms_from_env, max_retries_from_env, retry_async,
};
/// Establish a QUIC/TLS connection and return a `NodeService` client.
///
@@ -174,8 +176,8 @@ pub async fn enqueue(
Ok(seq)
}
},
DEFAULT_MAX_RETRIES,
DEFAULT_BASE_DELAY_MS,
max_retries_from_env(),
base_delay_ms_from_env(),
anyhow_is_retriable,
)
.await
@@ -228,8 +230,8 @@ pub async fn fetch_all(
Ok(payloads)
}
},
DEFAULT_MAX_RETRIES,
DEFAULT_BASE_DELAY_MS,
max_retries_from_env(),
base_delay_ms_from_env(),
anyhow_is_retriable,
)
.await
@@ -285,8 +287,8 @@ pub async fn fetch_wait(
Ok(payloads)
}
},
DEFAULT_MAX_RETRIES,
DEFAULT_BASE_DELAY_MS,
max_retries_from_env(),
base_delay_ms_from_env(),
anyhow_is_retriable,
)
.await