spacehub

surshar / claude-code

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.

Built by Anthropic · github.com/anthropics

claude-code / mods / diff / hooks / names / texts / register-failed-text-of.ts
10 lines · 365 BRaw
1/**
2 * The transcript line when `/diff` could not be registered for a reason
3 * other than the built-in holding it: the person learns the pane is off.
4 *
5 * @param reason the refusal's message
6 * @returns the line
7 */
8export const registerFailedTextOf = (reason: string) =>
9 `could not register /diff: ${reason}; the diff panel is unavailable this ` +
10 `session`