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

+18
View File
@@ -189,6 +189,24 @@ impl Db {
Ok(self.conn.last_insert_rowid())
}
/// A choice an agent reported with `hx/decision`; the goal view lists them for veto.
pub fn add_decision(&self, session: &str, text: &str, state: &str) -> Result<()> {
self.conn.execute(
"insert into decisions(session_id, text, state, at) values (?1, ?2, ?3, ?4)",
params![session, text, state, crate::state::now_ms() as i64],
)?;
Ok(())
}
pub fn decision_count(&self, session: &str) -> Result<usize> {
let n: i64 = self.conn.query_row(
"select count(*) from decisions where session_id = ?1",
[session],
|r| r.get(0),
)?;
Ok(n as usize)
}
/// Events oldest first, optionally one session, only those after `after` (event id).
pub fn events(&self, session: Option<&str>, after: i64) -> Result<Vec<Event>> {
let mut q = self.conn.prepare(