Skip to content
This repository was archived by the owner on Oct 16, 2026. It is now read-only.

fix(skill-trigger): case-insensitive read tool name and support input.path key - #1434

Merged
christso merged 1 commit into
mainfrom
fix/skill-trigger-case-insensitive-read
Jun 19, 2026
Merged

christso merged 1 commit into
mainfrom
fix/skill-trigger-case-insensitive-read

Conversation

@christso

Copy link
Copy Markdown
Collaborator

Summary

Changes

packages/core/src/evaluation/graders/skill-trigger.ts

  • toolName === 'Skill' → toolName.toLowerCase() === 'skill'
  • toolName === 'Read' → toolName.toLowerCase() === 'read'
  • input.file_path ?? '' → input.file_path ?? input.path ?? ''

packages/core/test/evaluation/graders/skill-trigger.test.ts

  • Added: lowercase "read" tool with input.path (pi-sdk style) → should trigger
  • Added: uppercase "Read" with input.file_path (Claude Code style) → existing behaviour preserved

Test plan

  • Existing tests in skill-trigger.test.ts still pass (no regressions)
  • New test: lowercase read + input.path → pass
  • New test: uppercase Read + input.file_path → pass

🤖 Generated with Claude Code

….path key

Fixes #1433. SkillTriggerGrader now matches tool names case-insensitively
so agents using lowercase tool names (e.g. pi-coding-agent / pi-sdk) are
detected correctly. Also falls back to input.path when input.file_path is
absent, covering pi-sdk's Read tool input schema.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying agentv with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3a1d702
Status: ✅  Deploy successful!
Preview URL: https://98ab302b.agentv.pages.dev
Branch Preview URL: https://fix-skill-trigger-case-insen.agentv.pages.dev

View logs

@christso
christso merged commit 07dc873 into main Jun 19, 2026
8 checks passed
@christso
christso deleted the fix/skill-trigger-case-insensitive-read branch June 19, 2026 06:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SkillTriggerGrader misses skill reads from pi-sdk (case mismatch + wrong input key)

1 participant