Review inbox: show each AI action, result, and the run log
Restructures each held item into Action -> Result -> Run log: - Action: a clear statement of what approving does (write artifact + N child tasks), with a destructive warning where relevant. - Result: the editable proposed artifact + child tasks (with the edit diff). - Run log: lazily fetches the AgentRun and shows latency, the agent/autonomy, skills applied, available + actually-called tools (with ok/failed), memory hits, product- identity inclusion, and collapsible raw model output + assembled prompt. Enriches the assembler run endpoint (Trace, ResultJson, LatencyMs, timestamps) so the approver can see exactly how the agent reached its result before deciding. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -12,7 +12,12 @@ internal sealed record RunResponse(
|
||||
string? ActionRisk,
|
||||
string? Prompt,
|
||||
string? Output,
|
||||
string? Error);
|
||||
string? Error,
|
||||
string? Trace,
|
||||
string? ResultJson,
|
||||
long? LatencyMs,
|
||||
DateTimeOffset CreatedAtUtc,
|
||||
DateTimeOffset? CompletedAtUtc);
|
||||
|
||||
internal sealed record AgentActivityResponse(
|
||||
Guid AgentId,
|
||||
|
||||
@@ -85,5 +85,6 @@ internal static class AssemblerEndpoints
|
||||
|
||||
private static RunResponse ToResponse(AgentRun run) => new(
|
||||
run.Id, run.SeatId, run.WorkItemId, run.AgentId, run.Status.ToString(),
|
||||
run.ActionType, run.ActionRisk, run.Prompt, run.Output, run.Error);
|
||||
run.ActionType, run.ActionRisk, run.Prompt, run.Output, run.Error,
|
||||
run.Trace, run.ResultJson, run.LatencyMs, run.CreatedAtUtc, run.CompletedAtUtc);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user