Skip to content

fix: correct tool names in error messages and rename pcm_select_save to pcm_validate_save - #21

Merged
mpicciolli merged 2 commits into
mainfrom
fix/tool-name-in-error-messages
Jul 5, 2026
Merged

fix: correct tool names in error messages and rename pcm_select_save to pcm_validate_save#21
mpicciolli merged 2 commits into
mainfrom
fix/tool-name-in-error-messages

Conversation

@mpicciolli

@mpicciolli mpicciolli commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Error messages in src/saves.ts (unsupported platform in getPcmRoot, missing PCM data in listSaves) told the caller to use select_save, but tool names carry the pcm_ prefix. Agents follow these messages to pick the next tool, so the exact name matters.
  • Renamed pcm_select_save to pcm_validate_save: the tool is a stateless validator (it stores nothing and returns the save's metadata), and "select" wrongly implied a stateful session selection. The register function, source file, README, AGENTS.md and error messages were updated accordingly.

Breaking change: clients calling pcm_select_save must switch to pcm_validate_save.

Error messages and a doc comment in saves.ts referred to the tool as
select_save, but the registered tool name is pcm_select_save. Agents
follow these messages to pick the next tool, so use the exact name.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 5, 2026 12:48

Copilot AI 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.

Pull request overview

This PR corrects user-facing guidance in src/saves.ts so error messages and the getPcmRoot doc comment reference the actual registered tool name pcm_select_save (instead of the outdated select_save), which is important for agent-driven tool selection.

Changes:

  • Updated getPcmRoot doc comment to mention pcm_select_save.
  • Updated non-Windows platform error message in getPcmRoot to instruct using pcm_select_save.
  • Updated “no PCM data found” error message in listSaves to instruct using pcm_select_save.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

The tool is a stateless validator — it stores nothing and returns the
save's metadata — but "select" implied a stateful session selection.
Rename the tool, its register function and source file, and update the
README/AGENTS docs and error messages accordingly.

BREAKING CHANGE: clients calling pcm_select_save must switch to
pcm_validate_save.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@mpicciolli mpicciolli changed the title fix: use full pcm_select_save tool name in error messages fix: correct tool names in error messages and rename pcm_select_save to pcm_validate_save Jul 5, 2026
@mpicciolli
mpicciolli merged commit 650ce91 into main Jul 5, 2026
2 checks passed
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.

2 participants