Skip to content

feat: Structured task management (MCP 2025-11-25)#88

Merged
simonx1 merged 3 commits intomainfrom
feature/tasks
Feb 15, 2026
Merged

feat: Structured task management (MCP 2025-11-25)#88
simonx1 merged 3 commits intomainfrom
feature/tasks

Conversation

@simonx1
Copy link
Owner

@simonx1 simonx1 commented Feb 14, 2026

Adds tasks/create, tasks/get, tasks/cancel methods with progress tracking via progressToken.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3d3c40b798

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

progress: json['progress'] || json[:progress],
total: json['total'] || json[:total],
message: json['message'] || json[:message],
result: json['result'] || json[:result],

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve false task results when parsing task JSON

A completed task can validly return false as its result, but from_json currently uses json['result'] || json[:result], which treats false as missing and stores nil instead. That makes get_task/cancel_task callers unable to distinguish “result is false” from “result not present yet,” which changes task semantics for boolean-returning operations.

Useful? React with 👍 / 👎.

result['progress'] = @progress if @progress
result['total'] = @total if @total
result['message'] = @message if @message
result['result'] = @result if @result

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve false task results when serializing tasks

to_h only emits the result field when @result is truthy, so Task.new(..., result: false) serializes as if no result existed. This drops meaningful data for boolean-returning tasks and can break downstream consumers that rely on the presence of an explicit false result.

Useful? React with 👍 / 👎.

@simonx1 simonx1 force-pushed the feature/tasks branch 4 times, most recently from c63080f to 929e43b Compare February 15, 2026 00:43
@simonx1 simonx1 merged commit 336e160 into main Feb 15, 2026
3 checks 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