Skip to content

Conversation

@tlinhart
Copy link
Contributor

@tlinhart tlinhart commented Feb 3, 2026

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.

According to the SDK documentation (https://opencode.ai/docs/sdk#examples-1), the fields need to be wrapped in a top-level `body` field. I confirmed it won't work without it.
@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2026

Hey! Your PR title Fix logging example for plugin doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2026

The following comment was made by an LLM, it may be inaccurate:

Potential Duplicate Found:

@tlinhart tlinhart changed the title Fix logging example for plugin docs: fix logging example for plugin Feb 3, 2026
@rekram1-node rekram1-node merged commit 0a5d5bc into anomalyco:dev Feb 3, 2026
7 checks passed
@tlinhart tlinhart deleted the patch-1 branch February 3, 2026 21:23
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.

2 participants