MCPcopy Create free account
hub / github.com/codeaashu/claude-code / renderToolResultMessage

Function renderToolResultMessage

src/tools/FileEditTool/UI.tsx:77–91  ·  view source on GitHub ↗
({
  filePath,
  structuredPatch,
  originalFile
}: FileEditOutput, _progressMessagesForMessage: ProgressMessage[], {
  style,
  verbose
}: {
  style?: 'condensed';
  verbose: boolean;
})

Source from the content-addressed store, hash-verified

75 </FilePathLink>;
76}
77export function renderToolResultMessage({
78 filePath,
79 structuredPatch,
80 originalFile
81}: FileEditOutput, _progressMessagesForMessage: ProgressMessage[], {
82 style,
83 verbose
84}: {
85 style?: 'condensed';
86 verbose: boolean;
87}): React.ReactNode {
88 // For plan files, show /plan hint above the diff
89 const isPlanFile = filePath.startsWith(getPlansDirectory());
90 return <FileEditToolUpdatedMessage filePath={filePath} structuredPatch={structuredPatch} firstLine={originalFile.split('\n')[0] ?? null} fileContent={originalFile} style={style} verbose={verbose} previewHint={isPlanFile ? '/plan to preview' : undefined} />;
91}
92export function renderToolUseRejectedMessage(input: {
93 file_path: string;
94 old_string?: string;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected