[PR #11989] docs: fix logging example for plugin #14017

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

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

State: closed
Merged: Yes


What does this PR do?

It fixes the example for logging from a plugin. According to the SDK documentation (https://opencode.ai/docs/sdk#examples-1), the fields need to be wrapped in a top-level body field.

How did you verify your code works?

I tried to create a plugin and checked which approach works.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/11989 **State:** closed **Merged:** Yes --- ### What does this PR do? It fixes the example for logging from a plugin. According to the SDK documentation (https://opencode.ai/docs/sdk#examples-1), the fields need to be wrapped in a top-level `body` field. ### How did you verify your code works? I tried to create a plugin and checked which approach works.
yindo added the pull-request label 2026-02-16 18:18:50 -05:00
yindo closed this issue 2026-02-16 18:18:50 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14017