Compare commits
1 commit
26a0fcf57c
...
35dd1aadc7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
35dd1aadc7 |
1 changed files with 2 additions and 2 deletions
|
|
@ -455,9 +455,9 @@ Closing as already implemented."
|
||||||
|
|
||||||
log "ERROR: no branch pushed after agent_run"
|
log "ERROR: no branch pushed after agent_run"
|
||||||
# Dump diagnostics
|
# Dump diagnostics
|
||||||
diag_file="${DISINTO_LOG_DIR:-/tmp}/dev/agent-run-last.json"
|
local diag_file="${DISINTO_LOG_DIR:-/tmp}/dev/agent-run-last.json"
|
||||||
if [ -f "$diag_file" ]; then
|
if [ -f "$diag_file" ]; then
|
||||||
result_text=""; cost_usd=""; num_turns=""
|
local result_text cost_usd num_turns
|
||||||
result_text=$(jq -r '.result // "no result field"' "$diag_file" 2>/dev/null | head -50) || result_text="(parse error)"
|
result_text=$(jq -r '.result // "no result field"' "$diag_file" 2>/dev/null | head -50) || result_text="(parse error)"
|
||||||
cost_usd=$(jq -r '.cost_usd // "?"' "$diag_file" 2>/dev/null) || cost_usd="?"
|
cost_usd=$(jq -r '.cost_usd // "?"' "$diag_file" 2>/dev/null) || cost_usd="?"
|
||||||
num_turns=$(jq -r '.num_turns // "?"' "$diag_file" 2>/dev/null) || num_turns="?"
|
num_turns=$(jq -r '.num_turns // "?"' "$diag_file" 2>/dev/null) || num_turns="?"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue