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

Function AutoRunIssueNotification

source code/utils/autoRunIssue.tsx:19–78  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

17 * with the ability to cancel via ESC key
18 */
19export function AutoRunIssueNotification(t0) {
20 const $ = _c(8);
21 const {
22 onRun,
23 onCancel,
24 reason
25 } = t0;
26 const hasRunRef = useRef(false);
27 let t1;
28 if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
29 t1 = {
30 context: "Confirmation"
31 };
32 $[0] = t1;
33 } else {
34 t1 = $[0];
35 }
36 useKeybinding("confirm:no", onCancel, t1);
37 let t2;
38 let t3;
39 if ($[1] !== onRun) {
40 t2 = () => {
41 if (!hasRunRef.current) {
42 hasRunRef.current = true;
43 onRun();
44 }
45 };
46 t3 = [onRun];
47 $[1] = onRun;
48 $[2] = t2;
49 $[3] = t3;
50 } else {
51 t2 = $[2];
52 t3 = $[3];
53 }
54 useEffect(t2, t3);
55 let t4;
56 if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
57 t4 = <Box><Text bold={true}>Running feedback capture...</Text></Box>;
58 $[4] = t4;
59 } else {
60 t4 = $[4];
61 }
62 let t5;
63 if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
64 t5 = <Box><Text dimColor={true}>Press <KeyboardShortcutHint shortcut="Esc" action="cancel" /> anytime</Text></Box>;
65 $[5] = t5;
66 } else {
67 t5 = $[5];
68 }
69 let t6;
70 if ($[6] !== reason) {
71 t6 = <Box flexDirection="column" marginTop={1}>{t4}{t5}<Box><Text dimColor={true}>Reason: {reason}</Text></Box></Box>;
72 $[6] = reason;
73 $[7] = t6;
74 } else {
75 t6 = $[7];
76 }

Callers

nothing calls this directly

Calls 1

useKeybindingFunction · 0.85

Tested by

no test coverage detected