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:
parent
820bb124d5
commit
1ad2eca8f0
1 changed files with 4 additions and 1 deletions
|
|
@ -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),
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue