@devries-cameron20 / t3code-1 / commits / 5da67c40eb
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Show pulsing terminal icon for active thread processes

- Replace terminal text badge with a right-aligned `TerminalIcon` - Add accessible label/title: "Terminal process running" - Keep pulse animation and terminal-active color styling

Julius Marminge committed Feb 12, 2026 at 22:21 UTC 5da67c40ebab884911f3fb1d51121d42b0fd1fba
1 file changed +28 -21
apps/web/src/components/Sidebar.tsx
+28 -21
@@ -1,4 +1,4 @@
1 -import { MonitorIcon, MoonIcon, SunIcon } from "lucide-react";
1 +import { MonitorIcon, MoonIcon, SunIcon, TerminalIcon } from "lucide-react";
2 import { useCallback, useEffect, useMemo, useState } from "react";
3 import { isElectron } from "../env";
4 import { useTheme } from "../hooks/useTheme";
@@ -32,12 +32,18 @@ function inferProjectName(cwd: string): string {
32 }
33
34 interface ThreadStatusPill {
35 - label: "Working" | "Connecting" | "Completed" | "Awaiting response" | "Terminal";
35 + label: "Working" | "Connecting" | "Completed" | "Awaiting response";
36 colorClass: string;
37 dotClass: string;
38 pulse: boolean;
39 }
40
41 +interface TerminalStatusIndicator {
42 + label: "Terminal process running";
43 + colorClass: string;
44 + pulse: boolean;
45 +}
46 +
47 function hasUnseenCompletion(thread: Thread): boolean {
48 if (!thread.latestTurnCompletedAt) return false;
49 const completedAt = Date.parse(thread.latestTurnCompletedAt);
@@ -89,14 +95,13 @@ function threadStatusPill(thread: Thread, hasPendingApprovals: boolean): ThreadS
95 return null;
96 }
97
92 -function terminalStatusPill(thread: Thread): ThreadStatusPill | null {
98 +function terminalStatusIndicator(thread: Thread): TerminalStatusIndicator | null {
99 if (thread.runningTerminalIds.length === 0) {
100 return null;
101 }
102 return {
97 - label: "Terminal",
103 + label: "Terminal process running",
104 colorClass: "text-teal-600 dark:text-teal-300/90",
99 - dotClass: "bg-teal-500 dark:bg-teal-300/90",
105 pulse: true,
106 };
107 }
@@ -401,7 +406,7 @@ export default function Sidebar() {
406 thread,
407 pendingApprovalByThreadId.get(thread.id) === true,
408 );
404 - const terminalStatus = terminalStatusPill(thread);
409 + const terminalStatus = terminalStatusIndicator(thread);
410 return (
411 <button
412 key={thread.id}
@@ -426,18 +431,6 @@ export default function Sidebar() {
431 }}
432 >
433 <div className="flex min-w-0 flex-1 items-center gap-1.5">
429 - {terminalStatus && (
430 - <span
431 - className={`inline-flex items-center gap-1 text-[10px] ${terminalStatus.colorClass}`}
432 - >
433 - <span
434 - className={`h-1.5 w-1.5 rounded-full ${terminalStatus.dotClass} ${
435 - terminalStatus.pulse ? "animate-pulse" : ""
436 - }`}
437 - />
438 - <span className="hidden md:inline">{terminalStatus.label}</span>
439 - </span>
440 - )}
434 {threadStatus && (
435 <span
436 className={`inline-flex items-center gap-1 text-[10px] ${threadStatus.colorClass}`}
@@ -452,9 +445,23 @@ export default function Sidebar() {
445 )}
446 <span className="min-w-0 flex-1 truncate text-xs">{thread.title}</span>
447 </div>
455 - <span className="shrink-0 text-[10px] text-muted-foreground/40">
456 - {formatRelativeTime(thread.createdAt)}
457 - </span>
448 + <div className="ml-2 flex shrink-0 items-center gap-1.5">
449 + {terminalStatus && (
450 + <span
451 + role="img"
452 + aria-label={terminalStatus.label}
453 + title={terminalStatus.label}
454 + className={`inline-flex items-center justify-center ${terminalStatus.colorClass}`}
455 + >
456 + <TerminalIcon
457 + className={`size-3 ${terminalStatus.pulse ? "animate-pulse" : ""}`}
458 + />
459 + </span>
460 + )}
461 + <span className="text-[10px] text-muted-foreground/40">
462 + {formatRelativeTime(thread.createdAt)}
463 + </span>
464 + </div>
465 </button>
466 );
467 })}