Add the admin messages, approval ids as numbers, and two turn events

Implemented-By: OpenCode session (model recorded in docs/implementer-log.md)
This commit is contained in:
2026-09-19 00:28:46 -07:00
parent c6395b16f4
commit e8568edf7e
25 changed files with 441 additions and 10 deletions
+4
View File
@@ -51,6 +51,8 @@ fn code_name(code: ErrorCode) -> &'static str {
ErrorCode::NoSuchSession => "no such session",
ErrorCode::SessionExists => "session exists",
ErrorCode::Inference => "inference",
ErrorCode::Forbidden => "forbidden",
ErrorCode::NoSuchApproval => "no such approval",
}
}
@@ -193,6 +195,8 @@ impl Printer {
writeln!(out, "[cache loss: {got} of {expected}]")?;
}
TurnEvent::Queued { .. } | TurnEvent::Progress { .. } => {}
// Printed from task 20 on; until then these events are not sent.
TurnEvent::ApprovalPending { .. } | TurnEvent::ToolDenied { .. } => {}
}
out.flush()
}