Skip to content

Fix: Stop get_task returning deleted tasks - #533

Merged
rafaeljusto merged 1 commit into
mainfrom
fix/get-task-hide-deleted
Sep 10, 2026
Merged

Fix: Stop get_task returning deleted tasks#533
rafaeljusto merged 1 commit into
mainfrom
fix/get-task-hide-deleted

Conversation

@rafaeljusto

@rafaeljusto rafaeljusto commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Description

The single task endpoint returns a deleted task with 200 (OK), so the tool handed one back as an ordinary task, and nothing in the response said it was gone. Send hideDeleted on both branches of the handler and on the task summary prompt, turning it into a 404 (Not Found) that the caller can act on.

Related to:
Teamwork/twapi-go-sdk#147

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Testing

  • Tests pass locally (go test -v ./...)
  • Added/updated tests for new functionality

Checklist

  • Code follows project style guidelines
  • Self-reviewed the code
  • Added necessary documentation
  • No new warnings or errors

The single task endpoint serves a deleted task with 200, so the tool
handed one back as an ordinary task and nothing in the response said it
was gone. Send hideDeleted on both branches of the handler and on the
task summary prompt, turning it into a 404 the caller can act on.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@rafaeljusto
rafaeljusto force-pushed the fix/get-task-hide-deleted branch from 4710995 to 284f761 Compare September 10, 2026 12:24
@rafaeljusto
rafaeljusto marked this pull request as ready for review September 10, 2026 12:24
@rafaeljusto
rafaeljusto requested a review from a team as a code owner September 10, 2026 12:24
@rafaeljusto
rafaeljusto merged commit 23f043f into main Sep 10, 2026
4 checks passed
@rafaeljusto
rafaeljusto deleted the fix/get-task-hide-deleted branch September 10, 2026 12:37
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