fix: safe stringification of skill args to satisfy no-base-to-string lint rule

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Paul Holstein 2026-02-21 18:05:35 -05:00
parent 820bb124d5
commit 1ad2eca8f0

View file

@ -601,7 +601,10 @@ export function analyzeSession(detail: SessionDetail): SessionReport {
if (toolName === 'Skill') {
skillsInvoked.push({
skill: (inp.skill as string) ?? 'unknown',
argsPreview: String(inp.args ?? '').slice(0, 120),
argsPreview: (typeof inp.args === 'string'
? inp.args
: JSON.stringify(inp.args ?? '')
).slice(0, 120),
});
}