feat: prompt returns answer to caller + commit on own header line

This commit is contained in:
Helios Agent 2026-03-05 21:22:18 +01:00
parent c5ef006414
commit 996f74b24f
No known key found for this signature in database
GPG key ID: C8259547CD8309B5
5 changed files with 15 additions and 9 deletions

View file

@ -27,12 +27,8 @@ fn banner() {
println!();
// Use same column layout as info_line: 2sp + emoji_cell(2w) + 2sp + name(14) + 2sp + value
// ☀ is 1-wide → emoji_cell pads to 2 → need 1 extra space to match
println!(
" {} {:<14} {}",
"".yellow().bold(), // 1-wide + explicit space = 2 display cols
"HELIOS REMOTE".bold(),
env!("GIT_COMMIT").dimmed()
);
println!(" {} {}", "".yellow().bold(), "HELIOS REMOTE".bold());
display::info_line("🔗", "commit:", &env!("GIT_COMMIT").dimmed().to_string());
}
fn print_session_info(label: &str, sid: &uuid::Uuid) {
@ -369,7 +365,7 @@ async fn handle_message(
input.trim().to_string()
}).await.unwrap_or_default();
display::prompt_done(&message, &answer);
ClientMessage::Ack { request_id }
ClientMessage::PromptResponse { request_id, answer }
}
ServerMessage::ExecRequest { request_id, command, timeout_ms } => {