Skip to content
This repository was archived by the owner on Mar 25, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions web/components/ChatHistory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -732,10 +732,9 @@ const ActivityItem: React.FC<{
className="text-zinc-500 hover:text-zinc-300 transition-colors p-1 hover:bg-white/10 rounded"
title="Download"

aria-label="Download generated artifact"


aria-label="Download Generated Artifact"

>
<Download size={14} />
</a>
Expand All @@ -751,10 +750,9 @@ const ActivityItem: React.FC<{
className="text-zinc-500 hover:text-zinc-300 transition-colors p-1 hover:bg-white/10 rounded"
title="Open in new window"

aria-label="Open generated artifact in new window"


aria-label="Open Generated Artifact in new window"

>
<ExternalLink size={14} />
</a>
Expand Down
9 changes: 6 additions & 3 deletions web/hooks/useSessionList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ export function useSessionList(service: GeminiService | null) {
setSessions(allSessions);

// Calculate sessions in last 24 hours
const twentyFourHoursAgoIso = new Date(Date.now() - 24 * 60 * 60 * 1000).toISOString();
// ⚑ Bolt: Direct lexical comparison of ISO 8601 strings avoids allocating Date objects for each session
const usedCount = allSessions.filter(s => s.createTime > twentyFourHoursAgoIso).length;
const twentyFourHoursAgo = new Date(Date.now() - 24 * 60 * 60 * 1000);
// ⚑ Bolt: Direct lexical comparison of ISO 8601 strings is much faster than allocating Date objects in loops
const twentyFourHoursAgoIso = twentyFourHoursAgo.toISOString();
const usedCount = allSessions.filter(s => {
return s.createTime > twentyFourHoursAgoIso;
}).length;

setSessionsUsed(usedCount);
} catch (e) {
Expand Down
Loading