Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
fix(ui): guard stale channel refresh followups
cyhedbaefabc017
diff --git a/ui/src/components/steps/ChannelList.tsx b/ui/src/components/steps/ChannelList.tsxindex bdad05671..a795e4e4f 100644--- a/ui/src/components/steps/ChannelList.tsx+++ b/ui/src/components/steps/ChannelList.tsx@@ -135,6 +135,7 @@ export const ChannelList: React.FC<ChannelListProps> = ({ data = {}, onNext, onBconst [telegramSummary, setTelegramSummary] = useState<TelegramDiscoverySummary | null>(null);const [refreshMetaByPlatform, setRefreshMetaByPlatform] = useState<Record<string, ChannelRefreshMeta>>({});const refreshFollowupTimersRef = useRef<Record<string, ReturnType<typeof setTimeout>>>({});+ const refreshFollowupVersionRef = useRef(0);// Directory browser state — tracks which channel's cwd picker is openconst [browsingCwdFor, setBrowsingCwdFor] = useState<string | null>(null);// Page-mode tab/search/collapse state (only used when isPage is true)@@ -297,6 +298,7 @@ export const ChannelList: React.FC<ChannelListProps> = ({ data = {}, onNext, onBuseEffect(() => {return () => {+ refreshFollowupVersionRef.current += 1;Object.values(refreshFollowupTimersRef.current).forEach((timer) => clearTimeout(timer));refreshFollowupTimersRef.current = {};};@@ -377,8 +379,10 @@ export const ChannelList: React.FC<ChannelListProps> = ({ data = {}, onNext, onBconst scheduleRefreshFollowup = (platformId: string, all?: boolean) => {const existing = refreshFollowupTimersRef.current[platformId];if (existing) clearTimeout(existing);+ const scheduledVersion = refreshFollowupVersionRef.current;refreshFollowupTimersRef.current[platformId] = setTimeout(() => {delete refreshFollowupTimersRef.current[platformId];+ if (refreshFollowupVersionRef.current !== scheduledVersion) return;void loadChannels(all, false);}, 3000);};