Skip to content

fix(hook): trace forked skill subagents - #117

Open
wzxsdf wants to merge 1 commit into
langfuse:mainfrom
wzxsdf:codex/fix-forked-skill-subagent
Open

wzxsdf wants to merge 1 commit into
langfuse:mainfrom
wzxsdf:codex/fix-forked-skill-subagent

Conversation

@wzxsdf

@wzxsdf wzxsdf commented Nov 13, 2026

Copy link
Copy Markdown

Forked Claude Code skills can omit toolUseId from their subagent metadata. The plugin then skips their transcripts, so the trace shows the Skill tool but none of the subagent's calls.

When the metadata has no tool-use ID, match the subagent file's agent ID to the structured forked Skill result in the parent transcript. Emit the discovered subagent under the corresponding Skill tool span.

Fixes langfuse/langfuse#19930.

Validation:

  • Added an integration test that reproduces the missing subagent and checks its span parent and LLM generation.
  • Full plugin suite: 282 passed.
  • Ruff (F,E9) and git diff --check passed.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@CLAassistant

CLAassistant commented Nov 13, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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.

bug: [Claude Code plugin] Subagents of forked skills (context: fork, e.g. built-in /code-review) are never traced

2 participants