summaryrefslogtreecommitdiff
path: root/internal/executor/question.go
diff options
context:
space:
mode:
authorClaudomator Agent <agent@claudomator>2026-03-10 00:28:33 +0000
committerClaudomator Agent <agent@claudomator>2026-03-10 00:28:33 +0000
commit7d6943c5f9f4124c652377148a35bea5f61be4bf (patch)
treefde89ca04af73542c5ca199c0b69660e30e5994b /internal/executor/question.go
parenta782bbfe25569bae2de2f77b7cdee8b5ffa71671 (diff)
executor: extract handleRunResult to deduplicate error-classification logic
Both execute() and executeResume() shared ~80% identical post-run logic: error classification (BLOCKED, TIMED_OUT, CANCELLED, BUDGET_EXCEEDED, FAILED), state transitions, result emission, and UpdateExecution. Extract this into handleRunResult(ctx, t, exec, err, agentType) on *Pool. Both functions now call it after runner.Run() returns. Also adds TestHandleRunResult_SharedPath which directly exercises the new function via a minimalMockStore, covering FAILED, READY, COMPLETED, and TIMED_OUT classification paths. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/executor/question.go')
0 files changed, 0 insertions, 0 deletions