Conversation
Member
|
Hi @suolongcn. I鈥檓 currently preparing the plugin for OpenCode 2 and expect to release it officially on Monday. This may cause some conflicts; if you could resolve them afterward, that would be great. I鈥檒l take another look once everything is finalized. Ideally, please monitor the releases for the OpenCode 2-compatible version. Thanks! |
Author
Okay! Looking forward to the new release! |
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.
OpenCode exports all skill invocations as
skilland all subagent spawns astask, preventing Langfuse dashboards from grouping usage by skill name or subagent type.Name these tool observations
skill:<name>andtask:<subagent_type>, trimming surrounding whitespace and falling back to the original tool name for missing, blank, or non-string values. Preserve the original inputs and tool metadata. The shared span creation path covers execution hooks and observations reconstructed from completed or failed message parts.Add README documentation and integration coverage for semantic names, fallback values, unchanged inputs and metadata, parent relationships, and duplicate hook/message events.
Validation:
pnpm run formatpnpm run buildpnpm run lintpnpm run test:integration(27 tests passed)Closes #38.
Local Langfuse verification
Verified commit
17496b8against self-hosted Langfuse4.37.0. The built plugin received deterministic OpenCode hook/event fixtures and exported through the real Langfuse span processor. Persisted data was checked through the API and in the UI. This tests plugin-to-Langfuse integration, not live LLM or subagent execution.pnpm run format,pnpm run build, and all 27 integration tests passed.Trace hierarchy
Skill input and output
Subagent input and output
Failed tool observation