Skip to content

fix: mark read_checkpoint as read-only - #112

Open
MatthewFeroz wants to merge 1 commit into
excalidraw:mainfrom
MatthewFeroz:fix/read-checkpoint-readonly-hint
Open

MatthewFeroz wants to merge 1 commit into
excalidraw:mainfrom
MatthewFeroz:fix/read-checkpoint-readonly-hint

Conversation

@MatthewFeroz

Copy link
Copy Markdown

Summary

Add readOnlyHint: true to read_checkpoint. The tool loads a stored checkpoint and returns it. It changes no state.

Why

MCP hosts use readOnlyHint to decide whether a tool call needs user approval. read_checkpoint is app-only, so the widget calls it by itself each time the model passes a restoreCheckpoint element to create_view. Without the hint, hosts that gate app-initiated calls on it show an approval dialog for a plain read. T3 Code does this, even when the user runs the agent with full permissions.

This follows the same goal as #111 and #93, which aim to make the tool hints accurate. Unlike create_view, read_checkpoint has no side effects, so readOnlyHint: true is the accurate value.

Testing

  • tsc -p tsconfig.server.json --noEmit passes.
  • tools/list on the live server returns no annotations for read_checkpoint today. After this change it returns readOnlyHint: true, the same as read_me.

🤖 Generated with Claude Code

read_checkpoint only loads a stored checkpoint. Without readOnlyHint,
hosts that gate app-initiated tool calls on it ask the user to approve
a plain read whenever create_view restores a checkpoint.
@vercel

vercel Bot commented Nov 12, 2026

Copy link
Copy Markdown

@MatthewFeroz is attempting to deploy a commit to the Excalidraw Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant