GeezerVison is showing github.com — feat(core): make the report skill gather what maintainers need by rekram1-node · Pull Request #66290 · anomalyco/opencode
Conversation
Issue for this PR
No issue. Many bug reports from the built-in report skill are hard to act on. Of 67 recent skill-format issues (Nov 22–25), about 28% named a model or provider, 13% pointed to a log file, several were on old releases, and of 12 that were closed or had comments, 3 were duplicates and 4 were closed as not planned.
Type of change
- Bug fix
- New feature
- Refactor / code improvement
- Documentation
What does this PR do?
Changes to the report skill (packages/core/src/plugin/skill/report.md):
- Before drafting: check the docs and tell the user if OpenCode works as documented, search existing issues with
gh issue list --search and offer to add to a match, and compare the version with the latest release.
- Adds client and model/provider to the diagnostics and the issue format. Model is "Not relevant" when the bug doesn't involve one.
- Tells the agent to use the runtime diagnostics snapshot and only rerun commands for missing values.
- Checks terminal plugins in
cli.json and local plugin folders, which the snapshot doesn't cover.
- Adds a Logs section: at most about 40 lines around the failure, never a whole log file.
- Tightens privacy: issues are public, so include only what helps reproduce or fix the bug, redact authorization headers and usernames in paths, and leave out prompts, conversation text and file contents unless needed and the user agrees.
packages/core/src/plugin/skill.ts adds a Log directory: line to the snapshot so the agent doesn't guess per platform.
How did you verify your code works?
bun run test test/plugin/skill.test.ts in packages/core: 2 pass, 0 fail.
bun run check and bun run lint:effect-simplifications pass.
Screenshots / recordings
N/A
Checklist
- I have tested my changes locally
- I have not included unrelated changes in this PR
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks sound. I printed the generated report skill from this branch: the runtime snapshot now ends with a Log directory: line from Global.Path.log. I also checked the new instructions against the code. Release builds write opencode.log there, OPENCODE_LOG_LEVEL=DEBUG is the variable the logger reads, and plugins in cli.json and .opencode/plugins are where TUI plugins are loaded from. One small mismatch, not blocking: builds run from source on the local channel write opencode-local.log instead, which only affects developers. bun test test/plugin/skill.test.ts passes and tsc -b on packages/core is clean.
Public API: unchanged. Only the built-in skill text and its diagnostics snapshot change.
No blocking concerns.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new commit addresses my earlier note about the log file name: the skill now names opencode-<channel>.log for builds run from source, which matches Logging.file. No new concerns. Public API: unchanged.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new commit removes the debug-log rerun step from the Logs section and keeps the earlier log file name fix. No new concerns. Public API: unchanged.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 26, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|