Back to Pull RequestsView on GitHub
#6852Open
Simple Review
feat: add ctx.log() for custom tools
by elithrar•Jan 4, 2026
Summary
This pull request adds a `ctx.log()` function for custom tools in OpenCode. This allows custom tools to log messages to OpenCode's internal log files instead of potentially leaking output to stdout, improving debugging and preventing unintended console output.
Changes
+55 additions-2 deletions
Impact Areas
Custom ToolsLoggingDeveloper ExperienceDocumentation