- {(isRunning || exited || isUnread) && (
+ {(isRunning || exited || isRecentlyCompleted || isUnread) && (
diff --git a/components/SessionSidebar.tsx b/components/SessionSidebar.tsx
index 6c2213d3f..790098fd4 100644
--- a/components/SessionSidebar.tsx
+++ b/components/SessionSidebar.tsx
@@ -15,6 +15,12 @@ import { comparableProjectPath } from "@/lib/comparable-path";
import { Archive, ArrowLeft, ArrowRight, Check, ChevronRight, FileUp, Plus, RefreshCw, Search, Settings2, SlidersHorizontal, X } from "lucide-react";
import { publishSessionsChanged } from "@/lib/session-change-bus";
import { openEventStream } from "@/lib/event-stream";
+import {
+ extractRecentCompletedSet,
+ recordCompletedRun,
+ removeActiveFromCompleted,
+ type RecentRunEntry,
+} from "@/lib/recent-runs";
import {
EMPTY_PROJECT_SET,
INITIAL_RESTORE_MAX_ATTEMPTS,
@@ -126,6 +132,8 @@ export const SessionSidebar = memo(function SessionSidebar({ selectedSessionId,
const [exitedSessions, setExitedSessions] = useState