Skip to content

Add OpenCode support to winui-session-report - #147

Open
Zhanyuanium (Zhanyuanium) wants to merge 1 commit into
microsoft:stagingfrom
Zhanyuanium:zhanyuanium-opencode-session-report
Open

Add OpenCode support to winui-session-report#147
Zhanyuanium (Zhanyuanium) wants to merge 1 commit into
microsoft:stagingfrom
Zhanyuanium:zhanyuanium-opencode-session-report

Conversation

@Zhanyuanium

@Zhanyuanium Zhanyuanium (Zhanyuanium) commented Aug 13, 2026

Copy link
Copy Markdown

Description

winui-session-report can now analyze OpenCode sessions in addition to GitHub Copilot CLI and Claude Code. It parses the official opencode export JSON and emits the same normalized markdown report.

-Format OpenCode accepts two inputs:

  • -SessionId <ses_...> — shells out to opencode session list + opencode export.
  • -EventsFile <path> — a saved opencode export JSON file, format-sniffed.

OpenCode exposes no "current session" environment variable, so its sessions are only analyzed when explicitly requested via -Format OpenCode (no auto-detect). Subagents are spawn-only: the task tool is reported as an agent dispatch with no recursive child-session export, matching Copilot behavior. Existing Copilot/Claude parsers are unchanged.

Related Issue

Part of #149

Type of Change

  • ✨ New skill or feature

Affected area

  • Skill: winui-session-report
  • Repo-level docs / governance

Checklist

  • Tested locally on Windows (validated against real opencode export output)
  • If a skill changed: SKILL.md frontmatter still valid; cross-references to other skills still resolve
  • If a .ps1 script changed: tested under default RemoteSigned execution policy
  • If user-facing: added a bullet to ## [Unreleased] in CHANGELOG.md
  • Did not edit any version field in plugins/winui/plugin.json, .github/plugin/marketplace.json, or .claude-plugin/marketplace.json (versions bump only on the staging → main promotion PR — see RELEASING.md)

Screenshots / Demo

Additional Notes

Base branch is staging.

AI Description

This section is auto-generated by AI when the PR is opened or updated. To opt out, delete this entire section including the marker comments.

Parse OpenCode sessions from the official opencode export JSON and emit the
same normalized report as Copilot CLI and Claude Code. -Format OpenCode
accepts either -SessionId (shells out to opencode session list + opencode
export) or -EventsFile (a saved export JSON, format-sniffed). Includes
OpenCode tool-name normalization, skill and task (subagent) detection, and
cache-token reporting. README skill/tool tables updated to reflect OpenCode.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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.

1 participant