v1.3.7: show the invoking skill of each subagent in the conversation view - #33
Merged
Merged
Conversation
Attribute each subagent to its invoking skill — primarily from the parent thread's `Skill` tool_use input, with the transcript's "Base directory for this skill:" sentinel line as fallback — and surface it as `type:skill` in the subagent dropdown / inline blocks and as an "Invoked skill" row in the right stats panel (hidden for plain agents). Mirrored across the JS and Tauri backends and the HTML export. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ev7HGAZmHZccXPggTnusjA
There was a problem hiding this comment.
Pull request overview
Adds end-to-end “invoked skill” attribution for subagents in the conversation UI and exports, so users can see which Skill call (or transcript sentinel fallback) produced a given subagent.
Changes:
- Attribute subagents to the spawning
Skilltool_use’sinput.skill, with a fallback derived from the subagent transcript’s “Base directory for this skill:” sentinel. - Display this attribution as
type:skillin the subagent dropdown and inline subagent blocks, and add an “Invoked skill” row in the right-side stats panel. - Mirror the behavior across the JS main process, the Tauri backend, and the HTML export runtime, with tests covering precedence and fallback behavior.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| test/history.test.js | Adds tests for skill attribution precedence (tool_use over sentinel) and sentinel-only fallback, including HTML export parity. |
| src/shared/i18n-dict.js | Adds the conv.stat.skill i18n key across all supported locales. |
| src/renderer/conversations.js | Renders type:skill labels for subagents and shows “Invoked skill” in the stats panel (filtered when absent). |
| src/main/history.js | Implements skillFromRecs (sentinel parsing) and applySkillNames (Skill tool_use override) and wires them into session/subagent shaping. |
| src/main/exportHtml.js | Applies the same skill attribution logic when building HTML export data. |
| src/main/export-assets/runtime.js | Updates HTML export runtime rendering to show type:skill for subagents. |
| src-tauri/src/history.rs | Ports sentinel parsing + Skill tool_use override attribution logic to the Rust backend and includes it in session/subagent output. |
| src-tauri/src/exporthtml.rs | Applies Rust-side skill attribution when building HTML export data. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ev7HGAZmHZccXPggTnusjA
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.
Attribute each subagent to the skill that spawned it (parent thread's
Skilltool_use input, falling back to the transcript's "Base directory for this skill:" sentinel) and show it astype:skillin the subagent dropdown/inline blocks plus an "Invoked skill" row in the right stats panel, mirrored across the JS/Tauri backends and the HTML export; bumps the version to 1.3.7 so merging ships the release.