Skip to content
Source
Sign inSign up
pingdotgg/t3code

Show pulsing terminal activity icon in thread sidebar #21

Mergedjuliusmarmingemerged 1 commit intomain fromcodething/696df84fmerged by juliusmarminge View on GitHub

Showing 1 changed file with 28 additions and 21 deletions.

x
0 of 1 viewed, 1 left
28 additions and 21 deletionsapps/web/src/components/Sidebar.tsxModified
View file
@@ -1,4 +1,4 @@
-import { MonitorIcon, MoonIcon, SunIcon } from "lucide-react";
+import { MonitorIcon, MoonIcon, SunIcon, TerminalIcon } from "lucide-react";
import { useCallback, useEffect, useMemo, useState } from "react";
import { isElectron } from "../env";
import { useTheme } from "../hooks/useTheme";
@@ -32,12 +32,18 @@
​
interface ThreadStatusPill {
- label: "Working" | "Connecting" | "Completed" | "Awaiting response" | "Terminal";
+ label: "Working" | "Connecting" | "Completed" | "Awaiting response";
colorClass: string;
dotClass: string;
pulse: boolean;
​
+interface TerminalStatusIndicator {
+ label: "Terminal process running";
+ colorClass: string;
+ pulse: boolean;
+}
+​
function hasUnseenCompletion(thread: Thread): boolean {
if (!thread.latestTurnCompletedAt) return false;
const completedAt = Date.parse(thread.latestTurnCompletedAt);
@@ -89,14 +95,13 @@
return null;