[PR #10990] fix: add SubtaskPart with metadata reference #13624

Closed
opened 2026-02-16 18:18:28 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/10990

State: closed
Merged: Yes


Fixes #10991

What does this PR do?

This PR adds the missing .meta({ ref: "SubtaskPart" }) to the SubtaskPart Zod definition in packages/opencode/src/session/message-v2.ts. This change ensures that the SubtaskPart schema is correctly identified and generated in the openapi.json file.

How did you verify your code works?

I verified the fix by regenerating the openapi.json file.

  • Before this change, the SubtaskPart content in the generated openapi.json was incorrect.
  • With this change, the openapi.json is now generated correctly with the proper SubtaskPart definition.
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/10990 **State:** closed **Merged:** Yes --- Fixes #10991 ### What does this PR do? This PR adds the missing `.meta({ ref: "SubtaskPart" })` to the `SubtaskPart` Zod definition in `packages/opencode/src/session/message-v2.ts`. This change ensures that the `SubtaskPart` schema is correctly identified and generated in the `openapi.json` file. ### How did you verify your code works? I verified the fix by regenerating the `openapi.json` file. - Before this change, the `SubtaskPart` content in the generated `openapi.json` was incorrect. - With this change, the `openapi.json` is now generated correctly with the proper `SubtaskPart` definition.
yindo added the pull-request label 2026-02-16 18:18:28 -05:00
yindo closed this issue 2026-02-16 18:18:28 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13624