MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / WriteRejectionDiff

Function WriteRejectionDiff

source code/tools/FileWriteTool/UI.tsx:210–272  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

208 type: 'error';
209};
210function WriteRejectionDiff(t0) {
211 const $ = _c(20);
212 const {
213 filePath,
214 content,
215 style,
216 verbose
217 } = t0;
218 let t1;
219 if ($[0] !== content || $[1] !== filePath) {
220 t1 = () => loadRejectionDiff(filePath, content);
221 $[0] = content;
222 $[1] = filePath;
223 $[2] = t1;
224 } else {
225 t1 = $[2];
226 }
227 const [dataPromise] = useState(t1);
228 let t2;
229 if ($[3] !== content) {
230 t2 = content.split("\n")[0] ?? null;
231 $[3] = content;
232 $[4] = t2;
233 } else {
234 t2 = $[4];
235 }
236 const firstLine = t2;
237 let t3;
238 if ($[5] !== content || $[6] !== filePath || $[7] !== firstLine || $[8] !== verbose) {
239 t3 = <FileEditToolUseRejectedMessage file_path={filePath} operation="write" content={content} firstLine={firstLine} verbose={verbose} />;
240 $[5] = content;
241 $[6] = filePath;
242 $[7] = firstLine;
243 $[8] = verbose;
244 $[9] = t3;
245 } else {
246 t3 = $[9];
247 }
248 const createFallback = t3;
249 let t4;
250 if ($[10] !== createFallback || $[11] !== dataPromise || $[12] !== filePath || $[13] !== firstLine || $[14] !== style || $[15] !== verbose) {
251 t4 = <WriteRejectionBody promise={dataPromise} filePath={filePath} firstLine={firstLine} createFallback={createFallback} style={style} verbose={verbose} />;
252 $[10] = createFallback;
253 $[11] = dataPromise;
254 $[12] = filePath;
255 $[13] = firstLine;
256 $[14] = style;
257 $[15] = verbose;
258 $[16] = t4;
259 } else {
260 t4 = $[16];
261 }
262 let t5;
263 if ($[17] !== createFallback || $[18] !== t4) {
264 t5 = <Suspense fallback={createFallback}>{t4}</Suspense>;
265 $[17] = createFallback;
266 $[18] = t4;
267 $[19] = t5;

Callers

nothing calls this directly

Calls 1

loadRejectionDiffFunction · 0.70

Tested by

no test coverage detected