Skip to content

Reopen a task - #3

Open
klind wants to merge 1 commit into
mainfrom
agentsatwork/SAMPLE-7
Open

klind wants to merge 1 commit into
mainfrom
agentsatwork/SAMPLE-7

Conversation

@klind

@klind klind commented Oct 4, 2026

Copy link
Copy Markdown
Owner

Spec SAMPLE-7.

What was asked

Let a client mark a task as not done again.

  • POST /tasks/:id/reopen answers 200 with the task, now with done: false.
  • Reopening a task that is not done changes nothing and still answers 200.
  • An id that names no task answers 404.
  • Add a method on TaskList that reopens a task, 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 found nothing.


Opened by AgentsAtWork.

A client could complete a task but not undo it. TaskList.reopen mirrors
complete: it sets done to false and returns the task, or undefined when
there is no such task, so the server answers 200 or 404 through the same
helper. Reopening a task that is not done changes nothing.

The README table, the route comment, and the changelog list the endpoint.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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