You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Studio chat: classify destructive tool approvals by name tokens, not word boundaries #2224
\b doesn't separate words inside camelCase or snake_case names, so tools such as DeleteFile, delete_file, removeBranch or drop_table don't match and get the warning treatment. The bug predates #2212. It became visible once #2212 coloured badge ink, because the badge now reads amber where it should read red.
Scope
Classify by name tokens, not raw word boundaries: split on case changes, _, -, . and /, then match any token against the destructive verbs.
If the daemon's permission ask carries a structured risk or kind signal (check permission.ask events and the approval payload in the SDK), prefer it over name heuristics and keep the name check as the fallback. Record what you find.
Unit tests: DeleteFile, delete_file, delete-file, fs.delete, RemoveBranch, drop_table are destructive; Read, Edit, deleted_items_report (a read that only mentions "deleted") and Bash are not, unless the structured signal says otherwise.
Acceptance
Destructive tools get the destructive card and badge regardless of naming style; non-destructive tools aren't misclassified.
Before/after screenshots of both card treatments (desktop and mobile, light and dark).
Activity
chore: screenshots for the Studio approval classification PR (#2224)
test(studio): pin the chat approval card's tone for today's tool names
fix(studio): classify destructive tool approvals by name tokens
test(studio): pin the chat approval card's tone for today's tool names
fix(studio): classify destructive tool approvals by name tokens
fix(studio): NFKC-normalize tool names before finding destructive verbs
fix(studio): skip the MCP server segment and treat rmdir as destructive
test(studio): pin the chat approval card's tone for today's tool names
fix(studio): classify destructive tool approvals by name tokens
fix(studio): NFKC-normalize tool names before finding destructive verbs
fix(studio): skip the MCP server segment and treat rmdir as destructive
fix(studio): keep compatibility characters from hiding a destructive …
test(studio): pin the chat approval card's tone for today's tool names
fix(studio): classify destructive tool approvals by name tokens
fix(studio): NFKC-normalize tool names before finding destructive verbs
fix(studio): skip the MCP server segment and treat rmdir as destructive
fix(studio): keep compatibility characters from hiding a destructive …
test(studio): pin the chat approval card's tone for today's tool names
fix(studio): classify destructive tool approvals by name tokens
fix(studio): NFKC-normalize tool names before finding destructive verbs
fix(studio): skip the MCP server segment and treat rmdir as destructive
fix(studio): keep compatibility characters from hiding a destructive …