diff options
| author | Claudomator Agent <agent@claudomator> | 2026-03-10 00:28:33 +0000 |
|---|---|---|
| committer | Claudomator Agent <agent@claudomator> | 2026-03-10 00:28:33 +0000 |
| commit | 7d6943c5f9f4124c652377148a35bea5f61be4bf (patch) | |
| tree | fde89ca04af73542c5ca199c0b69660e30e5994b /web/test/start-next-task.test.mjs | |
| parent | a782bbfe25569bae2de2f77b7cdee8b5ffa71671 (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 'web/test/start-next-task.test.mjs')
0 files changed, 0 insertions, 0 deletions
