summaryrefslogtreecommitdiff
path: root/internal/task/task.go
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-03-05 22:53:02 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-03-05 22:53:02 +0000
commit4c0ee5c215b6b1965ee2ac30d9341f5e8fb6f569 (patch)
tree63c2a13e48d5d1ce7781d34b63391c94792f8b46 /internal/task/task.go
parent9e790e35708f834abe1a09af52e43742e164cb63 (diff)
executor: detect stream-level failures when claude exits 0
Rename streamAndParseCost → parseStream (returns float64, error). Detect two failure modes that claude reports via exit 0: - result message with is_error:true - tool_result permission denial ("haven't granted it yet") Also fix cost extraction to read total_cost_usd from the result message (the actual field name), keeping cost_usd as legacy fallback. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/task/task.go')
0 files changed, 0 insertions, 0 deletions