Skip to content

armgit / avibe

Public Imported from GitHub
0

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.

Merge remote-tracking branch 'origin/master' into feat/message-search

cyhd3e66d2ede2f
diff --cc ui/src/components/workbench/ChatPage.tsx
index d2557bd4e,dccd0fa5c..b8246340e
--- a/ui/src/components/workbench/ChatPage.tsx
+++ b/ui/src/components/workbench/ChatPage.tsx
@@@ -1,7 -1,7 +1,7 @@@
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
- import { useLocation, useNavigate, useParams, useSearchParams } from 'react-router-dom';
- import { ArrowLeft, Bell, Bot, ChevronDown, Clock, Info, Loader2, MessageSquare, Pencil, Presentation, UploadCloud, X } from 'lucide-react';
-import { Link, useLocation, useNavigate, useParams } from 'react-router-dom';
++import { Link, useLocation, useNavigate, useParams, useSearchParams } from 'react-router-dom';
+ import { ArrowLeft, Bell, Bot, ChevronDown, Clock, GitFork, Info, Loader2, MessageSquare, Pencil, Presentation, UploadCloud, X } from 'lucide-react';
import clsx from 'clsx';
import { useApi } from '../../context/ApiContext';
@@@ -1737,15 -1436,22 +1743,29 @@@ const Transcript: React.FC<TranscriptPr
onQuickReply,
}) => {
const { t } = useTranslation();
+ const forkSourceSessionId =
+ typeof session.metadata?.fork_source_session_id === 'string'
+ ? session.metadata.fork_source_session_id
+ : null;
+ const forkSourceSessionTitle =
+ typeof session.metadata?.fork_source_session_title === 'string' &&
+ session.metadata.fork_source_session_title.trim()
+ ? session.metadata.fork_source_session_title.trim()
+ : null;
+ const isForkedSession = session.metadata?.created_via === 'session_fork';
+ const forkSourceBanner =
+ isForkedSession && forkSourceSessionId ? (
+ <ForkSourceBanner sourceSessionId={forkSourceSessionId} sourceTitle={forkSourceSessionTitle} />
+ ) : null;
const scrollRef = useRef<HTMLDivElement | null>(null);
const contentRef = useRef<HTMLDivElement | null>(null);
+ // Set just before a programmatic deep-link jump scroll and cleared once it
+ // settles. While set, the manual scroll-anchor (captureAnchor + the
+ // ResizeObserver restore) early-returns so it can't fight the jump — the jump
+ // moves scrollTop to center the target, and the anchor logic would otherwise
+ // immediately yank it back to the row it had remembered. A ref (not state) so
+ // the scroll handler + observer read it synchronously with no re-render.
+ const suppressAnchorRef = useRef(false);
// ``true`` while the viewport is FOLLOWING the bottom (at/near it) — drives the
// auto-follow of new content and hides the jump button. A ref, not state, so the
// scroll handler + ResizeObserver read it without stale closures or extra renders.