Repository navigation
fix: list_public_tokens_tool asks the model to copy the token exactly and check it - #332
Merged
Merged
Conversation
… and check it A ChatGPT-built dashboard failed with "invalid Mapbox access token" because the model retyped the pk. token and changed a character. The result now says to copy it exactly and, when it was written to a file, to check the copy from the file with GET /tokens/v2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-check # Conflicts: # CHANGELOG.md
…-check # Conflicts: # CHANGELOG.md
jussi-sa
approved these changes
Nov 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
list_public_tokens_toolreturned the right token. The model then retyped it into the page instead of copying it, and changed a character.Change
After the recommended token, the result text now says:
"code":"TokenValid"when the copy is right, and"TokenInvalid"when a character changed.The check reads the token back from the file, so it tests what was actually written. Agents that build pages, like Codex and ChatGPT's site builder, can usually run commands.
Checked
TokenValidfor a valid token andTokenInvalidfor the same token with one character changed.greppulls the whole token out of a samplemapboxgl.accessToken = "pk..."page.Not a new tool: a separate validate-token tool would be one more tool for the model to choose between, and the agents that write files are the ones that make this mistake.
🤖 Generated with Claude Code