Repository navigation
fix(claude): a check-back step no longer reads "Edited a file" - #579
Merged
Merged
Conversation
Claude's CronCreate and CronDelete steps showed as "Edited a file" and counted as file changes, because the adapter guesses a tool's kind from words in its name and "create"/"delete" sit in the file-change bucket. The check-back module now names Claude's check-back tools (ScheduleWakeup, CronCreate, CronDelete, CronList) and the classifier treats them as plain tool calls before the keyword guesses, so the chat words them as "Scheduled a check-back" and their approvals no longer ask to edit a file.
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
This branch was previously deployed
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.
When Claude scheduled a check-back with
CronCreate, the chat showed the step as "Edited a file" and the turn's summary counted it as a changed file.CronDelete(cancelling one) had the same problem. Found while making the 0.7.1 X post pictures.The cause:
classifyToolItemTypeinClaudeAdapter.tsguesses a tool's kind from words in its name, and "create" and "delete" sit in the file-change bucket.TodoWriteandTaskCreatealready had their own exceptions for the same reason.The fix:
ClaudeCheckBacks.tsnow names Claude's check-back tools (ScheduleWakeup,CronCreate,CronDelete,CronList) inisClaudeCheckBackTool, and the classifier treats them as plain tool calls before the keyword guesses. The web already has wording for each one ("Scheduled a check-back", "Cancelled a check-back"), so the chat now uses it. As a side effect, a permission prompt for these tools no longer asks to edit a file.Scope check: across the last 45 days of real Claude history,
CronCreatewas the only built-in tool name the keyword guesses got wrong.Not changed: activity rows saved before this fix keep their old kind, so a past check-back step still reads "Edited a file". 0.7.1 shipped the check-back UI today, so very few such rows exist.
Checks: the existing check-back test in
ClaudeAdapter.test.tsnow asserts theCronCreateitem is adynamic_tool_call(it fails without the fix withfile_change).ClaudeAdapter.test(160) andClaudeCheckBacks.testpass, along withvp fmt,vp lintandvp run typecheck. Not tried live in the app after the fix.