feat: isolate agentic worktrees and surface execution evidence
This commit is contained in:
@@ -386,6 +386,11 @@ def _append_iteration_steps(
|
||||
|
||||
lines.append(f"### {_t(config, 'step')}: {step.name} ({agent_name}){duration}\n")
|
||||
|
||||
# Show command preview and exit code for execution evidence
|
||||
if agent_result and agent_result.command_preview:
|
||||
lines.append(f"**Command**: `{agent_result.command_preview}`")
|
||||
lines.append(f"**Exit code**: {agent_result.exit_code}\n")
|
||||
|
||||
if step.verdict and iter_result.verdict:
|
||||
lines.append(f"**{_t(config, 'verdict')}: {iter_result.verdict}**\n")
|
||||
|
||||
@@ -400,6 +405,16 @@ def _append_iteration_steps(
|
||||
lines.append(output)
|
||||
lines.append("")
|
||||
|
||||
# Include transcript excerpt for execution evidence visibility
|
||||
if agent_result and agent_result.transcript:
|
||||
transcript_preview = agent_result.transcript[:1500]
|
||||
if len(agent_result.transcript) > 1500:
|
||||
transcript_preview += "\n... (truncated)"
|
||||
lines.append("<details>")
|
||||
lines.append("<summary>Execution transcript</summary>\n")
|
||||
lines.append(transcript_preview)
|
||||
lines.append("\n</details>\n")
|
||||
|
||||
if not skip_extraction and step.role == "review":
|
||||
oos = _extract_out_of_scope(output)
|
||||
if oos:
|
||||
|
||||
Reference in New Issue
Block a user