Skip to content

Clear done tasks - #6

Merged
klind merged 3 commits into
mainfrom
agentsatwork/SAMPLE-10
Oct 17, 2026
Merged

klind merged 3 commits into
mainfrom
agentsatwork/SAMPLE-10

Conversation

@klind

@klind klind commented Oct 17, 2026

Copy link
Copy Markdown
Owner

Spec SAMPLE-10.

What was asked

Let a client remove every task that is done in one call.

  • DELETE /tasks/done removes every task that is done and answers 200 with { "removed": <count> }.
  • Tasks that are not done stay as they are, with their ids.
  • With no done tasks it answers 200 with { "removed": 0 }.
  • Add a method on TaskList that removes the done tasks and says how many it removed, and use it from the server.
  • Add tests for the method and for the endpoint.
  • List the endpoint in the README's table.

Review

1 review round by: reviewer.

The last review left nothing open.


Opened by AgentsAtWork.

klind and others added 2 commits October 17, 2026 12:25
DELETE /tasks/done removes every done task and answers 200 with
{"removed": <count>}, which is 0 when no task is done. Tasks that are not
done keep their ids. The work lives in a new TaskList.removeDone method,
which the server calls. The route is matched before a task id is read
from the path, because "done" is not an id.

Adds tests for the method and the endpoint, a row in the README's API
table, and a changelog line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The build check's Changelog entry step failed because the new line in
CHANGELOG.md for DELETE /tasks/done did not end with (#6).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	CHANGELOG.md
@klind
klind merged commit c134cd3 into main Oct 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant