fix: test missing timeout_ms field, unused title warning

This commit is contained in:
Helios Agent 2026-03-03 16:20:23 +01:00
parent b86717f7dc
commit 20e97b932b
No known key found for this signature in database
GPG key ID: C8259547CD8309B5
2 changed files with 4 additions and 1 deletions

View file

@ -362,7 +362,9 @@ async fn handle_message(
}
ServerMessage::PromptRequest { request_id, message, title } => {
let title = title.unwrap_or_else(|| "Helios Remote".to_string());
let _title = title.unwrap_or_else(|| "Helios Remote".to_string());
#[cfg(windows)]
let title = _title.clone();
log_cmd!("prompt {}", &message[..message.len().min(60)]);
#[cfg(windows)]
{

View file

@ -154,6 +154,7 @@ mod tests {
let msg = ServerMessage::ExecRequest {
request_id: Uuid::nil(),
command: "echo hello".into(),
timeout_ms: None,
};
let json = serde_json::to_string(&msg).unwrap();
assert!(json.contains("exec_request"));