Skip to content

fix(claude): a check-back step no longer reads "Edited a file" - #579

Merged
badcuban merged 1 commit into
mainfrom
fix/claude-cron-tool-labels
Oct 22, 2026
Merged

badcuban merged 1 commit into
mainfrom
fix/claude-cron-tool-labels

Conversation

@badcuban

Copy link
Copy Markdown
Collaborator

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: classifyToolItemType in ClaudeAdapter.ts guesses a tool's kind from words in its name, and "create" and "delete" sit in the file-change bucket. TodoWrite and TaskCreate already had their own exceptions for the same reason.

The fix: ClaudeCheckBacks.ts now names Claude's check-back tools (ScheduleWakeup, CronCreate, CronDelete, CronList) in isClaudeCheckBackTool, 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, CronCreate was 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.ts now asserts the CronCreate item is a dynamic_tool_call (it fails without the fix with file_change). ClaudeAdapter.test (160) and ClaudeCheckBacks.test pass, along with vp fmt, vp lint and vp run typecheck. Not tried live in the app after the fix.

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.
@vercel

vercel Bot commented Oct 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
threadlines Skipped Skipped Oct 22, 2026 6:50pm UTC

Request Review

@badcuban
badcuban added this pull request to the merge queue Oct 22, 2026
Merged via the queue into main with commit 489f476 Oct 22, 2026
20 checks passed
@badcuban
badcuban deleted the fix/claude-cron-tool-labels branch October 22, 2026 18:59

This branch was previously deployed

1 inactive deployment
Preview — e745124d Deployed Oct 22, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant