Add OpenCode support to winui-session-report - #147
Open
Zhanyuanium (Zhanyuanium) wants to merge 1 commit into
Open
Add OpenCode support to winui-session-report#147Zhanyuanium (Zhanyuanium) wants to merge 1 commit into
Zhanyuanium (Zhanyuanium) wants to merge 1 commit into
Conversation
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>
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
winui-session-reportcan now analyze OpenCode sessions in addition to GitHub Copilot CLI and Claude Code. It parses the officialopencode exportJSON and emits the same normalized markdown report.-Format OpenCodeaccepts two inputs:-SessionId <ses_...>— shells out toopencode session list+opencode export.-EventsFile <path>— a savedopencode exportJSON 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: thetasktool 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
Affected area
Checklist
opencode exportoutput)SKILL.mdfrontmatter still valid; cross-references to other skills still resolve.ps1script changed: tested under defaultRemoteSignedexecution policy## [Unreleased]inCHANGELOG.mdversionfield inplugins/winui/plugin.json,.github/plugin/marketplace.json, or.claude-plugin/marketplace.json(versions bump only on thestaging → mainpromotion PR — seeRELEASING.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.