GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(core): make the report skill gather what maintainers need (#66290) · anomalyco/opencode@fb5ba10

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/core/src/plugin
    • skill.ts
    • skill
      • report.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/core/src/plugin/skill.ts‎

Copy file name to clipboardExpand all lines: packages/core/src/plugin/skill.ts
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { AbsolutePath } from "../schema.js"
99
import { Skill } from "../skill.js"
1010
import { Config } from "../config.js"
1111
import { Flag } from "../flag.js"
12+
import { Global } from "@opencode/util/global"
1213
import os from "os"
1314
import opencodeContent from "./skill/opencode.md" with { type: "text" }
1415
import reportContent from "./skill/report.md" with { type: "text" }
@@ -75,6 +76,7 @@ const reportContentWithDiagnostics = Effect.fn("SkillPlugin.reportContentWithDia
7576
`- Terminal: ${terminal()}`,
7677
`- Shell: ${shell()}`,
7778
`- Active plugins: ${plugins.length === 0 ? "None found in config" : plugins.join(", ")}`,
79+
`- Log directory: ${Global.Path.log}`,
7880
].join("\n")
7981
})
8082

Collapse file

‎packages/core/src/plugin/skill/report.md‎

Copy file name to clipboardExpand all lines: packages/core/src/plugin/skill/report.md
+40-12Lines changed: 40 additions & 12 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -12,37 +12,60 @@ diagnostics plus the context needed to reproduce and resolve it.
1212

1313
## Workflow
1414

15-
1. Collect the standard diagnostics below.
16-
2. Ask only for missing details that are necessary to reproduce or understand
15+
1. Check that it is a bug. Read the documentation page for the area at
16+
<https://opencode.ai/docs/>. If OpenCode works as documented, tell the user
17+
instead of filing an issue.
18+
2. Search for an existing issue with
19+
`gh issue list --repo anomalyco/opencode --state all --search "<keywords>"`.
20+
If one matches, give the user its URL and offer to add their details there
21+
instead of opening a new one.
22+
3. Collect the standard diagnostics below. Compare the opencode version with the
23+
latest release (`gh release view --repo anomalyco/opencode --json tagName`).
24+
If the user is behind, ask them to update and check whether it still happens.
25+
4. Ask only for missing details that are necessary to reproduce or understand
1726
impact.
18-
3. Draft the issue in the standard format below.
19-
4. Publish it with GitHub CLI after the user confirms the title and body.
27+
5. Draft the issue in the standard format below.
28+
6. Publish it with GitHub CLI after the user confirms the title and body.
2029

2130
Do not publish an issue without user confirmation. If GitHub CLI is not
2231
installed or not authenticated, explain the blocker and provide the exact issue
2332
title/body for the user.
2433

2534
## Standard Diagnostics
2635

36+
The runtime diagnostics snapshot at the end of this skill already has most of
37+
these values. Use them, and only run commands for values it marks unavailable or
38+
that the user says differ, for example when the bug is in another install.
39+
2740
Collect these values when possible:
2841

2942
- opencode version: run `opencode --version`.
43+
- Client: the TUI, the desktop app, `opencode run`, the web app, or a server
44+
started with `opencode serve`.
45+
- Model and provider: the provider and model ID in use when the problem
46+
happened, if the problem involves a model.
3047
- Operating system: run `uname -a` on Unix-like systems, or `ver` on Windows.
3148
- Terminal: inspect `$TERM`, `$TERM_PROGRAM`, `$COLORTERM`, and any obvious
3249
terminal app context the user provides.
3350
- Shell: inspect `$SHELL` on Unix-like systems, or `%COMSPEC%`/`$ComSpec` on
3451
Windows when relevant.
3552
- Install/channel context: include whether this appears to be local, dev, beta,
3653
or release if the version output or environment reveals it.
37-
- Active plugins: inspect opencode config for configured plugins when possible.
38-
Check likely config locations such as `opencode.json`, `opencode.jsonc`,
39-
`.opencode/opencode.json`, and `~/.config/opencode/opencode.json`. Record
40-
configured plugin entries, local plugin files under `.opencode/plugin/` or
41-
`.opencode/plugins/`, and note if plugin status could not be determined.
54+
- Active plugins: the snapshot lists plugins from opencode config only. Also
55+
check `plugins` in `~/.config/opencode/cli.json` for terminal plugins, and
56+
local plugin files under `.opencode/plugin/` or `.opencode/plugins/`. Record
57+
plugin names and versions, and note if plugin status could not be determined.
4258

4359
If a diagnostic command fails, include `Unavailable` with the reason instead of
4460
guessing.
4561

62+
## Logs
63+
64+
OpenCode writes logs to `opencode.log` in the log directory named in the
65+
snapshot, or `opencode-<channel>.log` for builds run from source. Find the
66+
lines around the failure, such as the error and the few lines before it, and
67+
include only those, at most about 40 lines. Never attach a whole log file.
68+
4669
## User-Specific Context
4770

4871
Capture the details that make the issue actionable:
@@ -57,8 +80,11 @@ Capture the details that make the issue actionable:
5780
config, installing a plugin, changing terminal, or switching workspace.
5881
- Workarounds tried and whether they helped.
5982

60-
Avoid pasting secrets. Redact tokens, API keys, private URLs, usernames, and
61-
project-specific confidential data unless the user explicitly says it is safe.
83+
Include only what helps someone reproduce or fix the bug. Issues are public.
84+
Redact tokens, API keys, authorization headers, private URLs, usernames in paths,
85+
and project-specific confidential data unless the user explicitly says it is
86+
safe. Do not include prompts, conversation text, or file contents unless they are
87+
needed to reproduce the bug and the user agrees.
6288

6389
## Issue Format
6490

@@ -73,6 +99,8 @@ otherwise:
7399
## Environment
74100

75101
- opencode version: <!-- value or Unavailable: reason -->
102+
- Client: <!-- TUI, desktop, run, web, or serve -->
103+
- Model and provider: <!-- provider/model, or Not relevant -->
76104
- OS: <!-- value or Unavailable: reason -->
77105
- Terminal: <!-- value or Unavailable: reason -->
78106
- Shell: <!-- value or Unavailable: reason -->
@@ -95,7 +123,7 @@ otherwise:
95123

96124
## Additional Context
97125

98-
<!-- Logs, config snippets, screenshots, frequency, workarounds, related notes. -->
126+
<!-- Log excerpt, config snippets, screenshots, frequency, workarounds, related issues. -->
99127
```
100128

101129
Keep the title short and searchable. Prefer the form:

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.