Skip to content

fix: use full pcm_validate_save tool name in error messages - #22

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

fix: use full pcm_validate_save tool name in error messages#22
mpicciolli merged 7 commits into
mainfrom
fix/tool-name-in-error-messages

Conversation

@mpicciolli

@mpicciolli mpicciolli commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Rename pcm_select_save to pcm_validate_save for clarity (the tool validates a path, it doesn't select anything stateful).
  • Use the full tool name in error messages so users know exactly which tool to call.
  • Realign markdown tables in AGENTS.md/README.md that were left misaligned by the rename.

mpicciolli and others added 3 commits July 5, 2026 08:48
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>
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>
Column padding in AGENTS.md and README.md wasn't adjusted when
pcm_select_save was renamed to pcm_validate_save, leaving the table
rows misaligned.
Copilot AI review requested due to automatic review settings July 5, 2026 13:01

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 renames the save-path validation tool from pcm_select_save to pcm_validate_save, updates user-facing error messages to reference the full tool name, and refreshes related documentation to match the new name.

Changes:

  • Rename the registered tool name and registration function to pcm_validate_save / registerValidateSave.
  • Update error/help text in src/saves.ts to reference pcm_validate_save rather than select_save.
  • Update README/AGENTS documentation references and table entries to the new tool name.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/tools/validate-save.ts Renames the registered tool name and title to pcm_validate_save.
src/tools/index.ts Updates tool registration wiring to call registerValidateSave.
src/saves.ts Updates comments and thrown error messages to reference pcm_validate_save.
README.md Updates documentation references and the tools table/usage flow to pcm_validate_save.
AGENTS.md Updates tool list references to pcm_validate_save (but still needs follow-up corrections per comments).
Comments suppressed due to low confidence (1)

src/tools/validate-save.ts:19

  • Renaming the tool from pcm_select_save to pcm_validate_save is a breaking change for any existing clients calling the old tool name. If backward compatibility matters, consider keeping pcm_select_save registered as a deprecated alias that forwards to the same implementation for at least one release cycle.

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

Comment thread AGENTS.md
Comment thread AGENTS.md

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

Copilot reviewed 3 out of 4 changed files in this pull request and generated 3 comments.

Comment thread src/tools/update-save.ts
Comment thread src/tools/update-cyclist-ratings.ts
Comment thread README.md Outdated

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

Comment thread src/tools/update-save.ts
Comment thread src/tools/update-cyclist-ratings.ts
Comment thread AGENTS.md
Comment thread README.md
Comment thread README.md
@mpicciolli
mpicciolli merged commit 79f7328 into main Jul 5, 2026
3 checks passed
@mpicciolli
mpicciolli deleted the fix/tool-name-in-error-messages branch August 6, 2026 12:29
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