Add ACP agent steps, JUnit reports and session detail screen

- acp.rs: ACP client for hx serve --acp, hx/* events into the event table
- tests/fake_acp_hx.py: Python fake hx for the runner tests
- runner.rs: agent steps, blocked catches, failure context, junit test events
- junit.rs: JUnit XML parser (counts, failing tests, locations)
- detail.rs + tui/session.rs: session detail screen with machine view
- tui: enter/esc navigation, pagers for test output, diff and transcript

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
johannesandClaude Sonnet 5.5 committed 2026-11-14 12:14:25 +01:00
1 parent d66a014bc5
commit 5b659fa8ba
14 files changed
+2676 -91

No files matched your search

+14
View File
@@ -344,6 +344,7 @@ fn describe(e: &Event) -> String {
"resume" => "resumed".into(),
"status" => str_of(p, "label"),
"intent" => str_of(p, "text"),
"tool" => str_of(p, "title"),
k => k.to_string(),
}
}
@@ -375,6 +376,19 @@ fn line_text(e: &Event) -> String {
"status" => format!("■ {}", str_of(p, "label")),
"resume" => format!("resumed in {}", str_of(p, "state")),
"edit" => format!("{} +{} −{}", str_of(p, "path"), p["added"], p["removed"]),
"tool" => str_of(p, "title"),
"permission" => format!(
"permission {}: {}",
str_of(p, "decision"),
str_of(p, "tool")
),
"plan" => {
let steps = p["steps"].as_array().map_or(0, Vec::len);
format!(
"{steps} steps, {} files",
p["files"].as_array().map_or(0, Vec::len)
)
}
_ => p["text"]
.as_str()
.map_or_else(|| e.kind.clone(), String::from),