MCPcopy Index your code
hub / github.com/liuup/claude-code-analysis / ShellDetailDialog

Function ShellDetailDialog

src/components/tasks/ShellDetailDialog.tsx:49–296  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

47 }
48}
49export function ShellDetailDialog(t0) {
50 const $ = _c(57);
51 const {
52 shell,
53 onDone,
54 onKillShell,
55 onBack
56 } = t0;
57 const {
58 columns
59 } = useTerminalSize();
60 let t1;
61 if ($[0] !== shell) {
62 t1 = () => getTaskOutput(shell);
63 $[0] = shell;
64 $[1] = t1;
65 } else {
66 t1 = $[1];
67 }
68 const [outputPromise, setOutputPromise] = useState(t1);
69 const deferredOutputPromise = useDeferredValue(outputPromise);
70 let t2;
71 if ($[2] !== shell) {
72 t2 = () => {
73 if (shell.status !== "running") {
74 return;
75 }
76 const timer = setInterval(_temp, 1000, setOutputPromise, shell);
77 return () => clearInterval(timer);
78 };
79 $[2] = shell;
80 $[3] = t2;
81 } else {
82 t2 = $[3];
83 }
84 let t3;
85 if ($[4] !== shell.id || $[5] !== shell.status) {
86 t3 = [shell.id, shell.status];
87 $[4] = shell.id;
88 $[5] = shell.status;
89 $[6] = t3;
90 } else {
91 t3 = $[6];
92 }
93 useEffect(t2, t3);
94 let t4;
95 if ($[7] !== onDone) {
96 t4 = () => onDone("Shell details dismissed", {
97 display: "system"
98 });
99 $[7] = onDone;
100 $[8] = t4;
101 } else {
102 t4 = $[8];
103 }
104 const handleClose = t4;
105 let t5;
106 if ($[9] !== handleClose) {

Callers

nothing calls this directly

Calls 7

useTerminalSizeFunction · 0.85
useKeybindingsFunction · 0.85
truncateToWidthFunction · 0.85
preventDefaultMethod · 0.80
getTaskOutputFunction · 0.70
onDoneFunction · 0.50
formatDurationFunction · 0.50

Tested by

no test coverage detected