Skip to content

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

TypeScript

diff: the command.run hook names its command by the literal the engine's scan reads (#96570)

Alice T'Poteat384e28e6c3ad
diff --git a/mods/diff/hooks/register.ts b/mods/diff/hooks/register.ts
index 1dccfe1b..289f5f11 100644
--- a/mods/diff/hooks/register.ts
+++ b/mods/diff/hooks/register.ts
@@ -741,7 +741,7 @@ export function register(on: On) {
)
})
- on('command.run', { command: Names.COMMAND_NAME }, async ($, e, next) => {
+ on('command.run', { command: 'diff' }, async ($, e, next) => {
if (!host) {
return next(e)
}