summaryrefslogtreecommitdiff
path: root/internal/cli/run_test.go
diff options
context:
space:
mode:
authorClaudomator Agent <agent@claudomator>2026-03-09 07:30:18 +0000
committerClaudomator Agent <agent@claudomator>2026-03-09 07:30:24 +0000
commit933af819ae3ee7ea0cf6b750815ab185043e19fc (patch)
treed3de98a3168e578cbe06222e7141c66e678eb82a /internal/cli/run_test.go
parentb33566b534185a444a392c36e3f307a5ecad8d4b (diff)
api: validate ?state= param in handleListTasks; standardize operation response shapes
- handleListTasks: validate ?state= against known states, return 400 with clear error for unrecognized values (e.g. ?state=BOGUS) - handleCancelTask: replace {"status":"cancelling"|"cancelled"} with {"message":"...","task_id":"..."} to match run/resume shape - handleAnswerQuestion: replace {"status":"queued"} with {"message":"task queued for resume","task_id":"..."} - Tests: add TestListTasks_InvalidState_Returns400, TestListTasks_ValidState_Returns200, TestCancelTask_ResponseShape, TestAnswerQuestion_ResponseShape, TestRunTask_ResponseShape, TestResumeTimedOut_ResponseShape Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/cli/run_test.go')
0 files changed, 0 insertions, 0 deletions