From 170dcdc44f825bb64bedd7eb53fff6127ca94bce Mon Sep 17 00:00:00 2001 From: kaitranntt Date: Thu, 18 Dec 2025 02:30:47 -0500 Subject: [PATCH 1/2] fix(ui): limit Connection Timeline to 100 events to prevent lag - add MAX_TIMELINE_EVENTS constant (100) - slice events in useMemo to cap DOM elements - prevents UI freeze with high request counts --- ui/src/components/account-flow-viz.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ui/src/components/account-flow-viz.tsx b/ui/src/components/account-flow-viz.tsx index 01c3f766..c707e212 100644 --- a/ui/src/components/account-flow-viz.tsx +++ b/ui/src/components/account-flow-viz.tsx @@ -21,6 +21,9 @@ import { RotateCcw, } from 'lucide-react'; +// Maximum events to display in the Connection Timeline to prevent performance issues +const MAX_TIMELINE_EVENTS = 100; + // Earthy, sophisticated color palette for connection lines - works in both light/dark themes const CONNECTION_COLORS = [ '#3b3c36', // Charcoal Brown - urban mystery @@ -398,7 +401,11 @@ export function AccountFlowViz({ providerData, onBack }: AccountFlowVizProps) { }, [accounts]); // Generate connection events for timeline - const connectionEvents = useMemo(() => generateConnectionEvents(accounts), [accounts]); + // Limit events to prevent UI lag with high request counts + const connectionEvents = useMemo( + () => generateConnectionEvents(accounts).slice(0, MAX_TIMELINE_EVENTS), + [accounts] + ); // Calculate SVG paths for bezier curves const calculatePaths = useCallback(() => { From b98c428a896dca7fea70284d61a1b0116d030c0a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 18 Dec 2025 07:32:22 +0000 Subject: [PATCH 2/2] chore(release): 6.3.0-dev.1 [skip ci] --- VERSION | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 798e3899..6f94d16e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -6.3.0 +6.3.0-dev.1 diff --git a/package.json b/package.json index 1e0beb44..9a56e8dc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kaitranntt/ccs", - "version": "6.3.0", + "version": "6.3.0-dev.1", "description": "Claude Code Switch - Instant profile switching between Claude Sonnet 4.5 and GLM 4.6", "keywords": [ "cli",