MCPcopy
hub / github.com/codeaashu/claude-code / renderFailed

Function renderFailed

src/utils/swarm/It2SetupPrompt.tsx:257–303  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

255 return <Box flexDirection="column"><Text color="success">✓ iTerm2 split pane support is ready</Text><Text dimColor={true}>Teammates will now appear as split panes.</Text></Box>;
256 }
257 function renderFailed() {
258 const options_1 = [{
259 label: "Try again",
260 value: "retry",
261 description: "Verify the connection again"
262 }];
263 if (tmuxAvailable) {
264 options_1.push({
265 label: "Use tmux instead",
266 value: "tmux",
267 description: "Falls back to tmux for teammate panes"
268 });
269 }
270 options_1.push({
271 label: "Cancel",
272 value: "cancel",
273 description: "Skip teammate spawning for now"
274 });
275 return <Box flexDirection="column" gap={1}><Text color="error">Verification failed</Text>{error && <Text dimColor={true}>{error}</Text>}<Text>Make sure:</Text><Box flexDirection="column" paddingLeft={2}><Text>· Python API is enabled in iTerm2 preferences</Text><Text>· You may need to restart iTerm2 after enabling</Text></Box><Box marginTop={1}><Select options={options_1} onChange={value_1 => {
276 bb115: switch (value_1) {
277 case "retry":
278 {
279 setStep("verifying");
280 verifyIt2Setup().then(result_1 => {
281 if (result_1.success) {
282 markIt2SetupComplete();
283 setStep("success");
284 setTimeout(onDone, 1500, "installed" as const);
285 } else {
286 setError(result_1.error || "Verification failed");
287 setStep("failed");
288 }
289 });
290 break bb115;
291 }
292 case "tmux":
293 {
294 handleUseTmux();
295 break bb115;
296 }
297 case "cancel":
298 {
299 onDone("cancelled");
300 }
301 }
302 }} onCancel={() => onDone("cancelled")} /></Box></Box>;
303 }
304 T1 = Pane;
305 t14 = "permission";
306 T0 = Box;

Callers 1

renderContentFunction · 0.85

Calls 5

setStepFunction · 0.85
verifyIt2SetupFunction · 0.85
markIt2SetupCompleteFunction · 0.85
onDoneFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected